/* RentMesh interface
   Dutch-first, touch-first and dependency-free. */

:root {
    --ink-950: #101c17;
    --ink-900: #17251f;
    --ink-800: #22372e;
    --ink-700: #345044;
    --ink-600: #4f685d;
    --ink-500: #6d8178;
    --ink-400: #93a29b;
    --ink-300: #bdc7c1;
    --ink-200: #d8ded9;
    --ink-150: #e4e9e5;
    --ink-100: #edf0ed;
    --ink-50: #f6f7f4;
    --paper: #ffffff;
    --canvas: #f2f4ef;
    --yellow-500: #f4ca3e;
    --yellow-400: #ffda55;
    --yellow-100: #fff5ca;
    --green-600: #187957;
    --green-100: #def3e9;
    --blue-600: #2e68a0;
    --blue-100: #e4eff9;
    --amber-700: #9a6308;
    --amber-100: #fff0cf;
    --red-600: #b53b38;
    --red-100: #fce8e6;
    --sidebar-width: 300px;
    --radius-xs: 7px;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --shadow-xs: 0 1px 2px rgba(16, 28, 23, .06);
    --shadow-sm: 0 7px 22px rgba(16, 28, 23, .07);
    --shadow-md: 0 18px 48px rgba(16, 28, 23, .12);
    --focus: 0 0 0 3px rgba(244, 202, 62, .55);
    --font-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    min-height: 100vh;
    color: var(--ink-900);
    background: var(--canvas);
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.5;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
    color: inherit;
    font: inherit;
}

button,
summary,
select {
    cursor: pointer;
}

a {
    color: inherit;
    text-decoration: none;
}

img,
svg {
    display: block;
    max-width: 100%;
}

svg {
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.75;
}

p,
h1,
h2,
h3,
h4,
dl,
dd {
    margin: 0;
}

ul,
ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

:focus-visible {
    outline: none;
    box-shadow: var(--focus);
}

::selection {
    color: var(--ink-950);
    background: var(--yellow-400);
}

.skip-link {
    position: fixed;
    z-index: 9999;
    top: 12px;
    left: 12px;
    padding: 10px 15px;
    border-radius: var(--radius-sm);
    color: var(--ink-950);
    background: var(--yellow-400);
    font-weight: 750;
    transform: translateY(-150%);
    transition: transform .16s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
}

.brand__mark {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--ink-900);
}

.brand__mark svg {
    width: 34px;
    height: 34px;
    fill: var(--yellow-500);
    stroke: var(--ink-900);
    stroke-width: 1.45;
}

.brand__mark .brand__mark-cut {
    fill: var(--ink-900);
    stroke: var(--ink-900);
}

.brand__word {
    color: var(--ink-900);
    font-size: 25px;
    font-weight: 820;
    letter-spacing: -.045em;
}

.brand__word span {
    color: var(--green-600);
}

.brand--inverse .brand__word {
    color: var(--paper);
}

.brand--inverse .brand__word span {
    color: var(--yellow-400);
}

.brand--inverse .brand__mark svg {
    stroke: var(--paper);
}

.brand--inverse .brand__mark .brand__mark-cut {
    fill: var(--ink-900);
    stroke: var(--paper);
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 17px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-weight: 750;
    letter-spacing: -.01em;
    transition: border-color .16s ease, background .16s ease, box-shadow .16s ease, transform .16s ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(0);
}

.button svg {
    width: 19px;
    height: 19px;
    stroke-width: 2;
}

.button--primary {
    color: var(--ink-950);
    background: var(--yellow-500);
    box-shadow: 0 7px 18px rgba(178, 139, 6, .15);
}

.button--primary:hover {
    background: var(--yellow-400);
    box-shadow: 0 9px 22px rgba(178, 139, 6, .2);
}

.button--secondary {
    border-color: var(--ink-200);
    color: var(--ink-900);
    background: var(--paper);
}

.button--secondary:hover {
    border-color: var(--ink-400);
    background: var(--ink-50);
}

.button--large {
    min-height: 50px;
    padding-inline: 20px;
}

.button--block {
    width: 100%;
}

.eyebrow {
    margin-bottom: 6px;
    color: var(--green-600);
    font-size: 15px;
    font-weight: 820;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

/* Application shell */

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    z-index: 50;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    padding: 26px 18px 18px;
    color: var(--ink-200);
    background:
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        var(--ink-950);
    background-size: 26px 26px;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.sidebar__top {
    display: grid;
    gap: 28px;
    padding: 0 8px;
}

.sidebar-nav {
    display: grid;
    gap: 5px;
    margin-top: 33px;
}

.sidebar-nav__label {
    padding: 0 12px 8px;
    color: var(--ink-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.sidebar-nav__item {
    position: relative;
    display: flex;
    min-height: 51px;
    align-items: center;
    gap: 13px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    color: var(--ink-300);
    font-size: 18px;
    font-weight: 650;
    transition: color .15s ease, background .15s ease;
}

.sidebar-nav__item svg {
    width: 21px;
    height: 21px;
    flex: 0 0 auto;
    stroke-width: 1.7;
}

.sidebar-nav__item:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, .055);
}

.sidebar-nav__item.is-active {
    color: var(--paper);
    background: rgba(255, 255, 255, .09);
}

.sidebar-nav__item.is-active::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -10px;
    width: 3px;
    border-radius: 4px;
    background: var(--yellow-400);
    content: "";
}

.sidebar-nav__item.is-active svg {
    color: var(--yellow-400);
}

.sidebar__footer {
    display: grid;
    gap: 12px;
    margin-top: auto;
    padding-top: 28px;
}

.sidebar-language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0 10px;
    padding-top: 13px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    color: var(--ink-400);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: .04em;
}

.language-switcher {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-500);
}

.language-switcher button {
    min-width: 25px;
    padding: 4px 2px;
    border: 0;
    color: inherit;
    background: transparent;
    font-size: 15px;
    font-weight: 750;
}

.language-switcher button:hover,
.language-switcher button.is-active {
    color: var(--ink-900);
}

.sidebar .language-switcher button:hover,
.sidebar .language-switcher button.is-active {
    color: var(--paper);
}

.language-switcher > span {
    width: 1px;
    height: 12px;
    background: var(--ink-300);
}

.sidebar .language-switcher > span {
    background: var(--ink-700);
}

.account-menu {
    position: relative;
}

.account-menu > summary {
    display: flex;
    min-height: 62px;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .035);
    list-style: none;
}

.account-menu > summary::-webkit-details-marker,
.branch-switcher > summary::-webkit-details-marker {
    display: none;
}

.avatar {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 50%;
    color: var(--ink-950);
    background: var(--yellow-400);
    font-size: 17px;
    font-weight: 850;
}

.account-menu__identity {
    min-width: 0;
    flex: 1;
}

.account-menu__identity strong,
.account-menu__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-menu__identity strong {
    color: var(--paper);
    font-size: 16px;
    font-weight: 720;
}

.account-menu__identity small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 14px;
}

.account-menu > summary > svg {
    width: 16px;
    height: 16px;
    transition: transform .15s ease;
}

.account-menu[open] > summary > svg {
    transform: rotate(180deg);
}

.account-menu__panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 7px);
    left: 0;
    padding: 6px;
    border: 1px solid var(--ink-700);
    border-radius: var(--radius-sm);
    background: var(--ink-900);
    box-shadow: var(--shadow-md);
}

.menu-action {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border: 0;
    border-radius: var(--radius-xs);
    color: var(--ink-200);
    background: transparent;
    font-size: 16px;
    font-weight: 650;
    text-align: left;
}

.menu-action:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, .07);
}

.menu-action svg {
    width: 17px;
    height: 17px;
}

.branch-switcher {
    position: relative;
    color: var(--ink-200);
}

.branch-switcher > summary {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border: 1px solid rgba(255, 255, 255, .09);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .04);
    list-style: none;
    transition: background .15s ease, border-color .15s ease;
}

.branch-switcher > summary:hover {
    border-color: rgba(255, 255, 255, .16);
    background: rgba(255, 255, 255, .065);
}

.branch-switcher__flag {
    display: grid;
    width: 31px;
    height: 25px;
    flex: 0 0 31px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 5px;
    color: var(--ink-900);
    background: var(--paper);
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .04em;
}

.branch-switcher__text {
    min-width: 0;
    flex: 1;
}

.branch-switcher__text small,
.branch-switcher__text strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-switcher__text small {
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 650;
    letter-spacing: .03em;
}

.branch-switcher__text strong {
    margin-top: 1px;
    color: var(--paper);
    font-size: 15px;
    font-weight: 700;
}

.branch-switcher > summary > svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    transition: transform .15s ease;
}

.branch-switcher[open] > summary > svg {
    transform: rotate(180deg);
}

.branch-switcher__panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    left: 0;
    width: min(288px, calc(100vw - 32px));
    padding: 8px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    color: var(--ink-900);
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.branch-switcher__panel > p {
    padding: 6px 8px 9px;
    color: var(--ink-500);
    font-size: 14px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.branch-switcher__panel ul {
    display: grid;
    gap: 3px;
}

.branch-switcher__panel form {
    width: 100%;
}

.branch-switcher__panel button {
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    padding: 7px 8px;
    border: 0;
    border-radius: 8px;
    color: inherit;
    background: transparent;
    text-align: left;
}

.branch-switcher__panel button:hover,
.branch-switcher__panel button.is-active {
    background: var(--ink-50);
}

.branch-switcher__panel button > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.branch-switcher__panel button strong,
.branch-switcher__panel button small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.branch-switcher__panel button strong {
    font-size: 16px;
}

.branch-switcher__panel button small {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 14px;
}

.branch-switcher__panel button > svg {
    width: 17px;
    height: 17px;
    color: var(--green-600);
    stroke-width: 2.2;
}

.branch-switcher__panel .branch-switcher__flag {
    border-color: var(--ink-200);
    background: var(--ink-50);
}

.branch-switcher__empty {
    padding: 15px 10px;
    color: var(--ink-500);
    font-size: 16px;
}

.app-frame {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
}

.mobile-header,
.bottom-nav {
    display: none;
}

.mobile-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.mobile-account-menu {
    position: relative;
}

.mobile-account-menu > summary {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--ink-150);
    border-radius: 50%;
    background: var(--ink-50);
    list-style: none;
    cursor: pointer;
}

.mobile-account-menu > summary::-webkit-details-marker {
    display: none;
}

.mobile-account-menu > summary:hover {
    border-color: var(--ink-300);
    background: var(--ink-100);
}

.mobile-account-menu .avatar {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
    border-color: var(--yellow-500);
    font-size: 15px;
}

.mobile-account-menu__panel {
    position: absolute;
    z-index: 80;
    top: calc(100% + 8px);
    right: 0;
    width: min(278px, calc(100vw - 28px));
    padding: 9px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-md);
}

.mobile-account-menu__identity {
    padding: 8px 9px 12px;
    border-bottom: 1px solid var(--ink-100);
}

.mobile-account-menu__identity strong,
.mobile-account-menu__identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-account-menu__identity strong {
    color: var(--ink-900);
    font-size: 16px;
}

.mobile-account-menu__identity small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 14px;
}

.mobile-account-menu__language {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 6px 9px;
    border-bottom: 1px solid var(--ink-100);
    color: var(--ink-600);
    font-size: 15px;
    font-weight: 700;
}

.mobile-account-menu__action {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 10px 9px;
    border: 0;
    border-radius: var(--radius-xs);
    color: var(--ink-700);
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}

.mobile-account-menu__action:hover {
    color: var(--ink-950);
    background: var(--ink-50);
}

.main-content {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 46px clamp(28px, 4vw, 66px) 70px;
}

.flash-stack {
    position: fixed;
    z-index: 100;
    top: 20px;
    right: 24px;
    display: grid;
    width: min(400px, calc(100vw - 32px));
    gap: 8px;
}

.flash {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border: 1px solid var(--ink-150);
    border-left: 3px solid var(--blue-600);
    border-radius: var(--radius-sm);
    background: var(--paper);
    box-shadow: var(--shadow-md);
    font-size: 17px;
    font-weight: 600;
}

.flash svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: var(--blue-600);
}

.flash--success {
    border-left-color: var(--green-600);
}

.flash--success svg {
    color: var(--green-600);
}

.flash--error {
    border-left-color: var(--red-600);
}

.flash--error svg {
    color: var(--red-600);
}

/* Dashboard */

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.page-heading h1 {
    max-width: 760px;
    color: var(--ink-950);
    font-size: clamp(36px, 3.4vw, 48px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.07;
}

.page-heading__intro {
    max-width: 650px;
    margin-top: 10px;
    color: var(--ink-600);
    font-size: 18px;
}

.summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 13px;
    margin-top: 32px;
}

.summary-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 132px;
    align-items: flex-start;
    gap: 14px;
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.summary-card::after {
    position: absolute;
    right: -30px;
    bottom: -58px;
    width: 118px;
    height: 118px;
    border: 18px solid rgba(23, 37, 31, .025);
    border-radius: 50%;
    content: "";
}

.summary-card__icon {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    color: var(--ink-700);
    background: var(--ink-100);
}

.summary-card__icon svg {
    width: 21px;
    height: 21px;
}

.summary-card__body {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.summary-card__body > strong {
    color: var(--ink-950);
    font-size: 34px;
    font-weight: 800;
    letter-spacing: -.04em;
    line-height: 1;
}

.summary-card__body > span {
    margin-top: 7px;
    color: var(--ink-800);
    font-size: 16px;
    font-weight: 750;
}

.summary-card__body > small {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
}

.summary-card--green .summary-card__icon {
    color: var(--green-600);
    background: var(--green-100);
}

.summary-card--amber .summary-card__icon {
    color: var(--amber-700);
    background: var(--amber-100);
}

.summary-card--blue .summary-card__icon {
    color: var(--blue-600);
    background: var(--blue-100);
}

.dashboard-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.85fr) minmax(280px, .72fr);
    align-items: start;
    gap: 22px;
    margin-top: 42px;
}

.dashboard-section {
    min-width: 0;
}

.section-heading {
    display: flex;
    min-height: 46px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.section-heading h2,
.rail-card h2 {
    color: var(--ink-950);
    font-size: 24px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.section-heading__count {
    padding: 5px 9px;
    border: 1px solid var(--ink-150);
    border-radius: 999px;
    color: var(--ink-600);
    background: rgba(255, 255, 255, .5);
    font-size: 14px;
    font-weight: 700;
}

.project-list {
    display: grid;
    gap: 10px;
}

.project-card {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: stretch;
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-xs);
    transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.project-card:hover {
    border-color: var(--ink-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.project-card__main {
    min-width: 0;
    flex: 1;
    padding: 18px 19px;
}

.project-card__main:focus-visible {
    position: relative;
    z-index: 2;
    box-shadow: inset var(--focus);
}

.project-card__topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
}

.status {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 7px;
    padding: 4px 9px;
    border-radius: 999px;
    color: var(--ink-600);
    background: var(--ink-100);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1;
    text-transform: uppercase;
}

.status > span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--ink-400);
}

.status--quote_requested {
    color: var(--amber-700);
    background: var(--amber-100);
}

.status--quote_requested > span {
    background: #d79517;
}

.status--final_quote_uploaded {
    color: var(--blue-600);
    background: var(--blue-100);
}

.status--final_quote_uploaded > span {
    background: var(--blue-600);
}

.status--approved {
    color: var(--green-600);
    background: var(--green-100);
}

.status--approved > span {
    background: var(--green-600);
}

.project-card__type {
    overflow: hidden;
    color: var(--ink-500);
    font-size: 14px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card__identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 11px;
    margin-top: 15px;
}

.project-card__pin {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    color: var(--ink-700);
    background: var(--ink-50);
}

.project-card__pin svg {
    width: 19px;
    height: 19px;
}

.project-card__identity > div {
    min-width: 0;
}

.project-card__identity h3 {
    overflow: hidden;
    color: var(--ink-950);
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card__identity p {
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 15px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card__meta {
    display: grid;
    grid-template-columns: minmax(190px, 1fr) minmax(105px, .65fr) minmax(90px, auto);
    gap: 16px;
    margin-top: 17px;
    padding-top: 14px;
    border-top: 1px solid var(--ink-100);
}

.project-card__meta > div {
    min-width: 0;
}

.project-card__meta dt {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 730;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.project-card__meta dt svg {
    width: 14px;
    height: 14px;
}

.project-card__meta dd {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-800);
    font-size: 15px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card__duration {
    padding-left: 16px;
    border-left: 1px solid var(--ink-100);
}

.project-card__arrow {
    display: grid;
    width: 47px;
    flex: 0 0 47px;
    place-items: center;
    border-left: 1px solid var(--ink-100);
    color: var(--ink-400);
    background: var(--ink-50);
    transition: color .15s ease, background .15s ease;
}

.project-card:hover .project-card__arrow {
    color: var(--ink-900);
    background: var(--yellow-100);
}

.project-card__arrow svg {
    width: 20px;
    height: 20px;
}

.dashboard-rail {
    display: grid;
    gap: 14px;
}

.rail-card {
    padding: 21px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.rail-card__heading {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rail-card__icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 10px;
}

.rail-card__icon--yellow {
    color: var(--ink-900);
    background: var(--yellow-100);
}

.rail-card__icon svg {
    width: 21px;
    height: 21px;
}

.pipeline-list {
    display: grid;
    gap: 1px;
    margin-top: 21px;
}

.pipeline-list li {
    position: relative;
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    min-height: 54px;
    padding-block: 7px;
}

.pipeline-list li:not(:last-child)::after {
    position: absolute;
    top: 35px;
    bottom: -12px;
    left: 7px;
    width: 1px;
    background: var(--ink-150);
    content: "";
}

.pipeline-list__marker {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
    border: 4px solid var(--ink-100);
    border-radius: 50%;
    background: var(--ink-400);
}

.pipeline-list__marker--amber {
    border-color: var(--amber-100);
    background: #d79517;
}

.pipeline-list__marker--blue {
    border-color: var(--blue-100);
    background: var(--blue-600);
}

.pipeline-list__marker--green {
    border-color: var(--green-100);
    background: var(--green-600);
}

.pipeline-list strong,
.pipeline-list small {
    display: block;
}

.pipeline-list strong {
    color: var(--ink-800);
    font-size: 15px;
    font-weight: 730;
}

.pipeline-list small {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 13px;
}

.pipeline-list b {
    display: grid;
    min-width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 7px;
    color: var(--ink-700);
    background: var(--ink-50);
    font-size: 15px;
}

.start-card {
    overflow: hidden;
    background: var(--ink-900);
    color: var(--ink-200);
}

.start-card__visual {
    height: 104px;
    margin: -21px -21px 18px;
    overflow: hidden;
    background:
        linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px),
        var(--ink-950);
    background-size: 18px 18px;
}

.start-card__visual svg {
    width: 100%;
    height: 100%;
    color: var(--ink-400);
    stroke-width: 1.3;
}

.start-card__visual .start-card__ground {
    stroke: var(--ink-600);
}

.start-card__visual .start-card__camera {
    fill: var(--ink-800);
    stroke: var(--yellow-400);
}

.start-card__visual .start-card__lens {
    fill: var(--yellow-400);
    stroke: var(--yellow-400);
}

.start-card__visual .start-card__sun {
    color: var(--yellow-400);
}

.start-card .eyebrow {
    color: var(--yellow-400);
}

.start-card h2 {
    color: var(--paper);
}

.start-card > p:not(.eyebrow) {
    margin-top: 8px;
    color: var(--ink-400);
    font-size: 15px;
    line-height: 1.55;
}

.start-card .button {
    margin-top: 18px;
    border-color: rgba(255, 255, 255, .12);
    color: var(--paper);
    background: rgba(255, 255, 255, .07);
    font-size: 16px;
}

.start-card .button:hover {
    border-color: var(--yellow-400);
    color: var(--ink-950);
    background: var(--yellow-400);
}

.start-card .button svg {
    margin-left: auto;
}

.empty-state {
    display: grid;
    min-height: 430px;
    place-items: center;
    align-content: center;
    padding: 38px 22px;
    border: 1px dashed var(--ink-300);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, .55);
    text-align: center;
}

.empty-state__visual {
    position: relative;
    width: 150px;
    height: 118px;
    margin-bottom: 14px;
}

.empty-state__mesh {
    position: absolute;
    inset: 5px 0 0;
    border-radius: 50%;
    background:
        linear-gradient(rgba(23, 37, 31, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 37, 31, .045) 1px, transparent 1px);
    background-size: 12px 12px;
    mask-image: radial-gradient(circle, #000 20%, transparent 68%);
}

.empty-state__visual svg {
    position: relative;
    width: 100%;
    height: 100%;
    stroke-width: 1.5;
}

.empty-state__platform {
    stroke: var(--ink-300);
}

.empty-state__box {
    fill: var(--paper);
    stroke: var(--ink-700);
}

.empty-state__box-line {
    stroke: var(--ink-300);
}

.empty-state__plus {
    stroke: var(--green-600);
    stroke-width: 3;
}

.empty-state__dot {
    fill: var(--yellow-500);
    stroke: var(--ink-800);
}

.empty-state h3 {
    color: var(--ink-950);
    font-size: 24px;
    font-weight: 780;
    letter-spacing: -.02em;
}

.empty-state > p {
    max-width: 470px;
    margin-top: 7px;
    color: var(--ink-600);
    font-size: 17px;
}

.empty-state .button {
    margin-top: 20px;
}

/* Generic forms for project screens */

.field {
    display: grid;
    gap: 7px;
}

.field > label,
.field__label-row label {
    color: var(--ink-800);
    font-size: 16px;
    font-weight: 720;
}

.field__label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.field__label-row a {
    color: var(--green-600);
    font-size: 15px;
    font-weight: 700;
}

.field__label-row a:hover {
    text-decoration: underline;
}

.field__control {
    position: relative;
}

.field__control > svg {
    position: absolute;
    z-index: 1;
    top: 50%;
    left: 14px;
    width: 19px;
    height: 19px;
    color: var(--ink-400);
    pointer-events: none;
    transform: translateY(-50%);
}

.field__control input,
.field__control select,
.field__control textarea,
.field > input,
.field > select,
.field > textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    outline: 0;
    color: var(--ink-900);
    background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

.field__control > svg + input,
.field__control > svg + select {
    padding-left: 43px;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--ink-400);
}

.field input:hover,
.field select:hover,
.field textarea:hover {
    border-color: var(--ink-400);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(24, 121, 87, .12);
}

.field--error input,
.field--error select,
.field--error textarea {
    border-color: var(--red-600);
    background: #fffafa;
}

.field__error {
    color: var(--red-600);
    font-size: 15px;
    font-weight: 620;
}

.form-alert {
    display: flex;
    gap: 10px;
    margin-bottom: 19px;
    padding: 12px 13px;
    border: 1px solid #f3c9c7;
    border-radius: var(--radius-sm);
    color: var(--red-600);
    background: var(--red-100);
}

.form-alert > svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
}

.form-alert strong {
    display: block;
    font-size: 16px;
}

.form-alert p {
    margin-top: 2px;
    font-size: 15px;
}

/* Shared project, quote and editor screens */

.page-shell {
    width: 100%;
}

.narrow-shell {
    max-width: 760px;
    margin-inline: auto;
}

.page-heading > div > p:not(.eyebrow),
.detail-heading > div > p {
    max-width: 690px;
    margin-top: 9px;
    color: var(--ink-600);
    font-size: 18px;
}

.eyebrow-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 12px;
    color: var(--green-600);
    font-size: 15px;
    font-weight: 780;
    letter-spacing: .03em;
}

.eyebrow-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.card {
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.button-primary {
    color: var(--ink-950);
    background: var(--yellow-500);
    box-shadow: 0 7px 18px rgba(178, 139, 6, .15);
}

.button-primary:hover {
    background: var(--yellow-400);
}

.button-secondary {
    border-color: var(--ink-200);
    color: var(--ink-900);
    background: var(--paper);
}

.button-secondary:hover {
    border-color: var(--ink-400);
    background: var(--ink-50);
}

.button-ghost {
    color: var(--ink-600);
    background: transparent;
}

.button-ghost:hover {
    color: var(--ink-900);
    background: var(--ink-100);
}

.button-block {
    width: 100%;
}

.status-pill {
    display: inline-flex;
    min-height: 27px;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    color: var(--ink-600);
    background: var(--ink-100);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .03em;
    text-transform: uppercase;
}

.status-pill.status-quote_requested {
    color: var(--amber-700);
    background: var(--amber-100);
}

.status-pill.status-final_quote_uploaded {
    color: var(--blue-600);
    background: var(--blue-100);
}

.status-pill.status-approved {
    color: var(--green-600);
    background: var(--green-100);
}

.alert {
    margin-top: 19px;
    padding: 12px 14px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    color: var(--ink-700);
    background: var(--paper);
    font-size: 16px;
}

.alert-error {
    border-color: #f3c9c7;
    color: var(--red-600);
    background: var(--red-100);
}

.alert-warning {
    border-color: #efd99e;
    color: var(--amber-700);
    background: var(--amber-100);
}

.editor-section {
    margin-top: 18px;
    padding: clamp(20px, 3vw, 30px);
}

.editor-section:first-of-type {
    margin-top: 32px;
}

.editor-section > .section-heading {
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 24px;
}

.editor-section > .section-heading > div:not(.live-estimate) {
    min-width: 0;
    flex: 1;
}

.editor-section .section-heading h2,
.detail-card .section-heading h2,
.price-card .section-heading h2,
.signature-card .section-heading h2 {
    color: var(--ink-950);
    font-size: 24px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.editor-section .section-heading p,
.detail-card .section-heading p,
.price-card .section-heading p,
.signature-card .section-heading p {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 15px;
}

.step-badge {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    color: var(--ink-950);
    background: var(--yellow-100);
    font-size: 16px;
    font-weight: 820;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.form-group {
    display: grid;
    min-width: 0;
    gap: 7px;
}

.form-span-2 {
    grid-column: 1 / -1;
}

.form-group > label {
    color: var(--ink-800);
    font-size: 15px;
    font-weight: 720;
}

.form-group > label span {
    color: var(--red-600);
}

.form-control,
.form-group input:not([type="checkbox"]):not([type="radio"]),
.form-group select,
.form-group textarea,
.question-card select,
.question-card > input {
    width: 100%;
    min-height: 47px;
    padding: 10px 12px;
    border: 1px solid var(--ink-200);
    border-radius: var(--radius-sm);
    outline: 0;
    color: var(--ink-900);
    background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease;
}

.form-group textarea {
    min-height: 112px;
    resize: vertical;
}

.form-control:hover,
.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {
    border-color: var(--ink-400);
}

.form-control:focus,
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(24, 121, 87, .12);
}

.form-group > small {
    color: var(--ink-500);
    font-size: 14px;
}

.field-error,
.errorlist {
    color: var(--red-600);
    font-size: 14px;
    font-weight: 620;
}

.errorlist {
    padding: 9px 12px;
    border: 1px solid #f3c9c7;
    border-radius: var(--radius-xs);
    background: var(--red-100);
    list-style: none;
}

.inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 9px 16px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-100);
}

.inline-actions a {
    color: var(--green-600);
    font-size: 15px;
    font-weight: 710;
}

.inline-actions a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.question-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.question-card {
    min-width: 0;
    margin: 0;
    padding: 17px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-sm);
    background: var(--ink-50);
}

.question-card legend {
    padding: 0 5px;
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 730;
}

.question-card > p {
    margin-bottom: 12px;
    color: var(--ink-500);
    font-size: 14px;
}

.segmented-control {
    display: inline-grid;
    grid-template-columns: 1fr 1fr;
    overflow: hidden;
    border: 1px solid var(--ink-200);
    border-radius: 9px;
    background: var(--paper);
}

.segmented-control label {
    position: relative;
    min-width: 76px;
    padding: 9px 15px;
    color: var(--ink-600);
    font-size: 15px;
    font-weight: 680;
    text-align: center;
    cursor: pointer;
}

.segmented-control label + label {
    border-left: 1px solid var(--ink-200);
}

.segmented-control input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.segmented-control label:has(input:checked) {
    color: var(--ink-950);
    background: var(--yellow-100);
    box-shadow: inset 0 0 0 1px var(--yellow-500);
}

.live-estimate {
    display: grid;
    grid-template-columns: auto auto;
    column-gap: 10px;
    min-width: 132px;
    padding: 10px 12px;
    border-radius: 9px;
    color: var(--ink-300);
    background: var(--ink-900);
}

.live-estimate small,
.live-estimate span {
    font-size: 12px;
}

.live-estimate small {
    grid-column: 1 / -1;
    color: var(--ink-400);
    font-weight: 700;
    text-transform: uppercase;
}

.live-estimate strong {
    color: var(--paper);
    font-size: 18px;
}

.live-estimate > span {
    align-self: end;
    padding-bottom: 2px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.product-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 250px;
    flex-direction: column;
    padding: 16px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-sm);
    background: var(--paper);
    transition: border-color .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.product-card:hover {
    border-color: var(--ink-300);
    box-shadow: var(--shadow-sm);
}

.product-card.is-selected {
    border-color: var(--green-600);
    box-shadow: inset 0 0 0 1px var(--green-600), 0 8px 22px rgba(24, 121, 87, .09);
}

.product-card.is-selected::after {
    position: absolute;
    top: -1px;
    right: 13px;
    padding: 3px 7px;
    border-radius: 0 0 6px 6px;
    color: var(--paper);
    background: var(--green-600);
    font-size: 12px;
    font-weight: 800;
    content: "✓";
}

.product-card.is-disabled {
    opacity: .52;
    background: var(--ink-50);
}

.product-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.sku {
    padding: 3px 6px;
    border-radius: 5px;
    color: var(--ink-500);
    background: var(--ink-100);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12px;
    font-weight: 730;
}

.price {
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 780;
}

.price small {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 600;
}

.product-card h3 {
    margin-top: 16px;
    color: var(--ink-950);
    font-size: 18px;
    font-weight: 760;
    letter-spacing: -.015em;
}

.product-card > p {
    display: -webkit-box;
    margin-top: 5px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.product-card .product-reason {
    color: var(--red-600);
    font-weight: 650;
}

.quantity-stepper {
    display: grid;
    grid-template-columns: 36px minmax(40px, 1fr) 36px;
    height: 38px;
    margin-top: auto;
    overflow: hidden;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
}

.quantity-stepper button,
.quantity-stepper input {
    min-width: 0;
    border: 0;
    color: var(--ink-800);
    background: var(--ink-50);
    font-weight: 750;
    text-align: center;
}

.quantity-stepper button {
    font-size: 21px;
}

.quantity-stepper button:hover:not(:disabled) {
    color: var(--ink-950);
    background: var(--yellow-100);
}

.quantity-stepper button:disabled {
    cursor: not-allowed;
    opacity: .45;
}

.quantity-stepper input {
    border-right: 1px solid var(--ink-200);
    border-left: 1px solid var(--ink-200);
    background: var(--paper);
    -moz-appearance: textfield;
}

.quantity-stepper input::-webkit-inner-spin-button,
.quantity-stepper input::-webkit-outer-spin-button {
    margin: 0;
    -webkit-appearance: none;
}

.marker-count {
    margin-top: 7px;
    color: var(--green-600);
    font-size: 13px;
    font-weight: 690;
    text-align: center;
}

.upload-dropzone {
    display: grid;
    min-height: 165px;
    place-items: center;
    align-content: center;
    padding: 25px;
    border: 1px dashed var(--ink-300);
    border-radius: var(--radius-md);
    background: var(--ink-50);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.upload-dropzone:hover {
    border-color: var(--green-600);
    background: #f4faf7;
}

.upload-dropzone input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.upload-dropzone:focus-within {
    box-shadow: var(--focus);
}

.upload-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 9px;
    color: var(--ink-900);
    background: var(--yellow-100);
    font-size: 26px;
}

.upload-dropzone strong {
    margin-top: 8px;
    color: var(--ink-900);
    font-size: 16px;
}

.upload-dropzone small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 13px;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.image-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-sm);
    background: var(--paper);
}

.image-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    background: var(--ink-100);
}

.annotated-image {
    position: relative;
    width: 100%;
    margin: 0;
    overflow: hidden;
    background: var(--ink-100);
}

.annotated-image img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: auto;
    object-fit: contain;
}

.annotated-image__shapes {
    position: absolute;
    z-index: 1;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.annotated-image__marker {
    position: absolute;
    z-index: 2;
    width: 18px;
    height: 18px;
    border: 2px solid var(--ink-950);
    border-radius: 50%;
    outline: 0;
    background: var(--yellow-500);
    box-shadow: 0 2px 7px rgba(16, 28, 23, .28);
    transform: translate(-50%, -50%);
}

.annotated-image__marker:focus-visible {
    box-shadow: var(--focus), 0 2px 7px rgba(16, 28, 23, .28);
}

.annotated-image__marker-label {
    position: absolute;
    z-index: 3;
    bottom: calc(100% + 7px);
    left: 50%;
    width: max-content;
    max-width: 190px;
    padding: 5px 7px;
    border-radius: 6px;
    color: var(--paper);
    background: var(--ink-950);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 4px);
    transition: opacity .15s ease, transform .15s ease;
}

.annotated-image__marker:hover .annotated-image__marker-label,
.annotated-image__marker:focus .annotated-image__marker-label {
    opacity: 1;
    transform: translate(-50%, 0);
}

.image-card > div {
    display: grid;
    gap: 3px;
    padding: 10px 11px;
}

.image-card strong {
    overflow: hidden;
    color: var(--ink-900);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.image-card span {
    color: var(--ink-500);
    font-size: 12px;
}

.image-card a {
    margin-top: 3px;
    color: var(--green-600);
    font-size: 13px;
    font-weight: 720;
}

.sticky-action-bar {
    position: sticky;
    z-index: 30;
    bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 22px;
    padding: 11px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 38px rgba(16, 28, 23, .13);
    backdrop-filter: blur(12px);
}

.sticky-action-bar > div {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    padding-left: 7px;
}

.sticky-action-bar > div small {
    color: var(--ink-500);
    font-size: 12px;
}

.sticky-action-bar > div strong {
    color: var(--ink-950);
    font-size: 18px;
}

/* Project detail and quotation */

.heading-line {
    display: flex;
    align-items: center;
    gap: 12px;
}

.detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(330px, .8fr);
    align-items: start;
    gap: 19px;
    margin-top: 30px;
}

.detail-main,
.detail-sidebar {
    display: grid;
    min-width: 0;
    gap: 15px;
}

.detail-card,
.price-card,
.action-card,
.final-quote-card,
.document-preview-card,
.signature-card,
.standalone-form,
.upload-summary {
    padding: clamp(20px, 3vw, 28px);
}

.detail-card > .section-heading,
.price-card > .section-heading,
.signature-card > .section-heading {
    margin-bottom: 18px;
}

.detail-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 26px;
}

.detail-list > div {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-100);
}

.detail-list dt {
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.detail-list dd {
    margin-top: 3px;
    color: var(--ink-800);
    font-size: 16px;
    font-weight: 620;
}

.compact-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.compact-list dd {
    margin-top: 0;
}

.notes-block {
    margin-top: 19px;
    padding: 15px;
    border-left: 3px solid var(--yellow-500);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    background: var(--yellow-100);
}

.notes-block h3 {
    color: var(--ink-900);
    font-size: 15px;
}

.notes-block p {
    margin-top: 5px;
    color: var(--ink-700);
    font-size: 15px;
}

.price-card {
    overflow: hidden;
}

.quote-lines {
    display: grid;
    gap: 11px;
}

.quote-line {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.quote-line > div {
    min-width: 0;
}

.quote-line strong,
.quote-line small {
    display: block;
}

.quote-line strong {
    overflow: hidden;
    color: var(--ink-800);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.quote-line small {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 12px;
}

.quote-line > span {
    color: var(--ink-900);
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}

.price-totals {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    padding-top: 15px;
    border-top: 1px solid var(--ink-150);
}

.price-totals > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--ink-600);
    font-size: 14px;
}

.price-totals .discount {
    color: var(--green-600);
}

.price-totals .total {
    margin-top: 3px;
    padding-top: 9px;
    border-top: 1px solid var(--ink-100);
    color: var(--ink-800);
}

.price-totals .grand-total {
    margin: 4px -28px -28px;
    padding: 16px 28px;
    color: var(--paper);
    background: var(--ink-900);
    font-size: 16px;
}

.price-totals .grand-total strong {
    color: var(--yellow-400);
    font-size: 20px;
}

.snapshot-note,
.tax-note {
    display: block;
    margin-top: 14px;
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.5;
}

.empty-inline {
    padding: 17px;
    border: 1px dashed var(--ink-300);
    border-radius: var(--radius-sm);
    background: var(--ink-50);
    text-align: center;
}

p.empty-inline {
    color: var(--ink-600);
    font-size: 14px;
}

.empty-inline p {
    color: var(--ink-600);
    font-size: 14px;
}

.empty-inline a {
    display: inline-block;
    margin-top: 8px;
    color: var(--green-600);
    font-size: 14px;
    font-weight: 720;
}

.action-card h3,
.final-quote-card h3 {
    color: var(--ink-950);
    font-size: 18px;
    font-weight: 760;
}

.action-card > p,
.final-quote-card > p {
    margin-top: 6px;
    color: var(--ink-500);
    font-size: 14px;
    line-height: 1.55;
}

.action-card form,
.action-card > .button,
.final-quote-card > .button {
    margin-top: 15px;
}

.staff-card {
    border-color: #efd99e;
    background: linear-gradient(135deg, var(--paper), #fffaf0);
}

.approval-success {
    display: grid;
    gap: 2px;
    margin-top: 14px;
    padding: 11px;
    border-radius: 8px;
    color: var(--green-600);
    background: var(--green-100);
}

.approval-success strong {
    font-size: 14px;
}

.approval-success span {
    font-size: 12px;
}

/* Standalone forms, annotation and approval */

.standalone-form,
.upload-summary {
    margin-top: 24px;
}

.standalone-form {
    display: grid;
    gap: 17px;
}

.form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 6px;
    padding-top: 16px;
    border-top: 1px solid var(--ink-100);
}

.upload-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.upload-summary > div {
    display: grid;
    gap: 3px;
}

.upload-summary span {
    color: var(--ink-500);
    font-size: 13px;
}

.upload-summary strong {
    color: var(--ink-900);
    font-size: 17px;
}

.security-note,
.identity-note,
.finality-note {
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.annotation-form {
    margin-top: 26px;
}

.annotation-shell {
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-md);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
}

.annotation-editor__controls {
    display: flex !important;
    gap: 7px !important;
    padding: 11px;
    border-bottom: 1px solid var(--ink-150);
    background: var(--ink-50);
}

.annotation-editor__controls button,
.annotation-editor__controls label,
.annotation-editor__controls select {
    min-height: 40px;
}

.annotation-editor__controls button {
    padding: 8px 11px;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    color: var(--ink-700);
    background: var(--paper);
    font-size: 14px;
    font-weight: 680;
}

.annotation-editor__controls button:hover,
.annotation-editor__controls button[aria-pressed="true"] {
    border-color: var(--ink-700);
    color: var(--paper);
    background: var(--ink-900);
}

.annotation-editor__controls label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ink-600);
    font-size: 13px;
    font-weight: 700;
}

.annotation-editor__controls select {
    max-width: 180px;
    padding: 7px 28px 7px 9px;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    background: var(--paper);
    font-size: 14px;
}

.annotation-editor__controls input[type="color"] {
    width: 40px;
    height: 40px;
    padding: 4px;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    background: var(--paper);
}

.annotation-editor__stage,
[data-annotation-stage] {
    position: relative;
    min-height: 330px;
    padding: 12px;
    background:
        linear-gradient(45deg, var(--ink-100) 25%, transparent 25%),
        linear-gradient(-45deg, var(--ink-100) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, var(--ink-100) 75%),
        linear-gradient(-45deg, transparent 75%, var(--ink-100) 75%),
        var(--ink-50);
    background-position: 0 0, 0 8px, 8px -8px, -8px 0;
    background-size: 16px 16px;
}

.annotation-editor__canvas {
    margin-inline: auto;
    border-color: var(--ink-300) !important;
    box-shadow: var(--shadow-sm);
}

.approval-layout {
    display: grid;
    grid-template-columns: minmax(0, .78fr) minmax(390px, 1.22fr);
    align-items: start;
    gap: 18px;
    margin-top: 27px;
}

.document-preview-card {
    display: grid;
    gap: 15px;
}

.document-icon {
    display: grid;
    width: 58px;
    height: 70px;
    place-items: center;
    border-radius: 6px 11px 6px 6px;
    color: var(--paper);
    background: var(--red-600);
    font-size: 16px;
    font-weight: 850;
    letter-spacing: .07em;
    box-shadow: var(--shadow-sm);
}

.document-preview-card h2 {
    overflow-wrap: anywhere;
    color: var(--ink-950);
    font-size: 20px;
}

.document-preview-card p {
    margin-top: 5px;
    color: var(--ink-500);
    font-size: 14px;
}

.signature-card {
    display: grid;
}

.signature-pad__canvas {
    border-color: var(--ink-300) !important;
    background-image: linear-gradient(transparent 76%, var(--ink-100) 77%, var(--ink-100) 78%, transparent 79%) !important;
}

[data-signature-controls] {
    justify-content: flex-end;
}

.approval-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 20px;
    padding: 13px;
    border: 1px solid var(--ink-150);
    border-radius: var(--radius-sm);
    color: var(--ink-700);
    background: var(--ink-50);
    font-size: 15px;
    font-weight: 620;
    cursor: pointer;
}

.approval-checkbox input {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    accent-color: var(--green-600);
}

.signature-card .identity-note {
    margin: 11px 0 17px;
}

.signature-card button[type="submit"]:disabled {
    cursor: not-allowed;
    filter: grayscale(.7);
    opacity: .48;
    transform: none;
}

.finality-note {
    margin-top: 9px;
    text-align: center;
}

/* Authentication */

.auth-body {
    min-height: 100vh;
    background: var(--paper);
}

.auth-header {
    position: absolute;
    z-index: 20;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 82px;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4vw, 62px);
}

.auth-header .brand__word,
.auth-header .language-switcher {
    color: var(--paper);
}

.auth-header .brand__word span {
    color: var(--yellow-400);
}

.auth-header .brand__mark svg {
    stroke: var(--paper);
}

.auth-header .brand__mark .brand__mark-cut {
    fill: var(--ink-900);
    stroke: var(--paper);
}

.auth-header .language-switcher > span {
    background: var(--ink-600);
}

.auth-header .language-switcher button:hover,
.auth-header .language-switcher button.is-active {
    color: var(--yellow-400);
}

.auth-main,
.login-layout {
    min-height: 100vh;
}

.login-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(440px, .92fr);
}

.login-showcase {
    position: relative;
    display: flex;
    min-height: 720px;
    flex-direction: column;
    overflow: hidden;
    padding: 136px clamp(46px, 6vw, 100px) 38px;
    color: var(--paper);
    background:
        radial-gradient(circle at 80% 12%, rgba(244, 202, 62, .13), transparent 28%),
        linear-gradient(rgba(255, 255, 255, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .018) 1px, transparent 1px),
        var(--ink-950);
    background-size: auto, 34px 34px, 34px 34px, auto;
}

.login-showcase::before {
    position: absolute;
    top: -310px;
    right: -250px;
    width: 670px;
    height: 670px;
    border: 1px solid rgba(255, 255, 255, .04);
    border-radius: 50%;
    box-shadow: 0 0 0 80px rgba(255, 255, 255, .012), 0 0 0 160px rgba(255, 255, 255, .009);
    content: "";
}

.login-showcase__content {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.login-showcase__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 999px;
    color: var(--ink-300);
    background: rgba(255, 255, 255, .04);
    font-size: 14px;
    font-weight: 750;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.login-showcase__badge > span {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--yellow-400);
    box-shadow: 0 0 0 4px rgba(244, 202, 62, .12);
}

.login-showcase h1 {
    max-width: 540px;
    margin-top: 24px;
    color: var(--paper);
    font-size: clamp(44px, 5vw, 72px);
    font-weight: 790;
    letter-spacing: -.055em;
    line-height: .99;
}

.login-showcase__content > p {
    max-width: 530px;
    margin-top: 19px;
    color: var(--ink-300);
    font-size: 18px;
    line-height: 1.65;
}

.login-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
    margin-top: 27px;
}

.login-benefits li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-200);
    font-size: 14px;
    font-weight: 620;
}

.login-benefits li > span {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink-950);
    background: var(--yellow-400);
}

.login-benefits svg {
    width: 12px;
    height: 12px;
    stroke-width: 2.4;
}

.equipment-scene {
    position: relative;
    width: min(650px, 100%);
    margin: auto auto 0;
}

.equipment-scene__grid {
    position: absolute;
    inset: 10% 0 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(244, 202, 62, .06), transparent 67%);
}

.equipment-scene > svg {
    position: relative;
    z-index: 1;
    width: 100%;
    height: auto;
}

.equipment-scene .scene-ground {
    stroke: var(--ink-700);
}

.equipment-scene .scene-shadow {
    stroke: rgba(0, 0, 0, .25);
    stroke-width: 18;
}

.equipment-scene .scene-leg {
    stroke: var(--ink-400);
    stroke-width: 4;
}

.equipment-scene .scene-body {
    fill: var(--ink-800);
    stroke: var(--ink-300);
    stroke-width: 2;
}

.equipment-scene .scene-side {
    fill: var(--ink-700);
    stroke: var(--yellow-400);
    stroke-width: 2;
}

.equipment-scene .scene-lens-ring {
    fill: var(--ink-950);
    stroke: var(--yellow-400);
    stroke-width: 3;
}

.equipment-scene .scene-lens {
    fill: #273b48;
    stroke: var(--blue-100);
    stroke-width: 2;
}

.equipment-scene .scene-highlight {
    stroke: rgba(255, 255, 255, .3);
}

.equipment-scene .scene-panel-face {
    fill: #233c47;
    stroke: var(--blue-100);
    stroke-width: 2;
}

.equipment-scene .scene-panel-line {
    stroke: rgba(214, 236, 244, .3);
}

.equipment-scene .scene-signal {
    color: var(--yellow-400);
    stroke-width: 3;
}

.equipment-scene .scene-signal circle {
    fill: var(--yellow-400);
}

.equipment-scene .scene-marker {
    color: var(--yellow-400);
    stroke-width: 3;
}

.equipment-scene__tag {
    position: absolute;
    z-index: 3;
    display: grid;
    grid-template-columns: 8px auto;
    column-gap: 8px;
    min-width: 122px;
    padding: 9px 11px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 9px;
    background: rgba(16, 28, 23, .88);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .2);
    backdrop-filter: blur(8px);
}

.equipment-scene__tag > span {
    grid-row: span 2;
    width: 7px;
    height: 7px;
    margin-top: 4px;
    border-radius: 50%;
    background: var(--yellow-400);
}

.equipment-scene__tag strong {
    color: var(--paper);
    font-size: 13px;
}

.equipment-scene__tag small {
    color: var(--ink-500);
    font-size: 12px;
}

.equipment-scene__tag--one {
    top: 19%;
    left: 14%;
}

.equipment-scene__tag--two {
    right: 0;
    bottom: 9%;
}

.equipment-scene__tag--two > span {
    background: var(--green-600);
}

.login-panel {
    display: grid;
    place-items: center;
    align-content: center;
    padding: 115px clamp(38px, 6vw, 100px) 50px;
    background: var(--paper);
}

.login-card {
    width: min(410px, 100%);
}

.login-card h2 {
    color: var(--ink-950);
    font-size: clamp(34px, 3.2vw, 44px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.1;
}

.login-card__intro {
    margin-top: 11px;
    color: var(--ink-600);
    font-size: 17px;
    line-height: 1.6;
}

.login-form {
    display: grid;
    gap: 17px;
    margin-top: 28px;
}

.login-submit {
    margin-top: 5px;
}

.login-submit svg {
    margin-left: auto;
}

.login-help {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--ink-100);
    color: var(--ink-500);
}

.login-help > span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 50%;
    color: var(--ink-600);
    background: var(--ink-100);
}

.login-help svg {
    width: 16px;
    height: 16px;
}

.login-help p {
    padding-top: 2px;
    font-size: 14px;
    line-height: 1.55;
}

.login-help strong {
    color: var(--ink-700);
}

.login-security {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: min(410px, 100%);
    margin-top: 30px;
    color: var(--ink-400);
    font-size: 13px;
    text-align: center;
}

.login-security svg {
    width: 14px;
    height: 14px;
}

.flash-stack--auth {
    top: 90px;
}

/* Responsive layout */

@media (max-width: 1279px) {
    :root {
        --sidebar-width: 270px;
    }

    .sidebar {
        padding-inline: 14px;
    }

    .dashboard-layout {
        grid-template-columns: minmax(0, 1.65fr) minmax(265px, .75fr);
    }

    .summary-card {
        padding: 17px;
    }

    .summary-card__icon {
        width: 34px;
        height: 34px;
        flex-basis: 34px;
    }
}

@media (max-width: 1099px) {
    .summary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .summary-card {
        min-height: 116px;
    }

    .dashboard-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .dashboard-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .annotation-editor__controls {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
    }

    .annotation-editor__controls > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 1099px) {
    .sidebar {
        display: none;
    }

    .app-frame {
        margin-left: 0;
    }

    .mobile-header {
        position: sticky;
        z-index: 45;
        top: 0;
        display: flex;
        height: 74px;
        align-items: center;
        justify-content: space-between;
        padding: 0 max(18px, env(safe-area-inset-left));
        border-bottom: 1px solid var(--ink-150);
        background: rgba(255, 255, 255, .94);
        backdrop-filter: blur(14px);
    }

    .mobile-header .brand__mark,
    .mobile-header .brand__mark svg {
        width: 30px;
        height: 30px;
        flex-basis: 30px;
    }

    .mobile-header .brand__word {
        font-size: 22px;
    }

    .branch-switcher--compact {
        color: var(--ink-800);
    }

    .branch-switcher--compact > summary {
        min-height: 42px;
        padding: 7px 9px;
        border-color: var(--ink-150);
        background: var(--ink-50);
    }

    .branch-switcher--compact > summary:hover {
        border-color: var(--ink-300);
        background: var(--ink-100);
    }

    .branch-switcher--compact > summary > svg {
        width: 14px;
        height: 14px;
    }

    .branch-switcher--compact .branch-switcher__panel {
        right: 0;
        left: auto;
    }

    .bottom-nav {
        position: fixed;
        z-index: 60;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: calc(76px + env(safe-area-inset-bottom));
        grid-template-columns: 1fr 88px 1fr;
        align-items: start;
        padding: 6px max(18px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(18px, env(safe-area-inset-left));
        border-top: 1px solid var(--ink-150);
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 -10px 30px rgba(16, 28, 23, .06);
        backdrop-filter: blur(14px);
    }

    .bottom-nav__item {
        display: flex;
        min-height: 64px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        color: var(--ink-500);
        font-size: 13px;
        font-weight: 700;
    }

    .bottom-nav__item svg {
        width: 22px;
        height: 22px;
    }

    .bottom-nav__item.is-active {
        color: var(--green-600);
    }

    .bottom-nav__create {
        display: grid;
        width: 54px;
        height: 54px;
        place-self: center;
        place-items: center;
        border: 4px solid var(--paper);
        border-radius: 18px;
        color: var(--ink-950);
        background: var(--yellow-400);
        box-shadow: 0 5px 16px rgba(113, 86, 0, .23);
        transform: translateY(-20px) rotate(45deg);
    }

    .bottom-nav__create svg {
        width: 25px;
        height: 25px;
        stroke-width: 2.2;
        transform: rotate(-45deg);
    }

    .main-content {
        padding: 34px clamp(20px, 4vw, 44px) 122px;
    }

    .flash-stack {
        top: 84px;
    }

    .auth-header {
        position: absolute;
    }

    .login-layout {
        grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
    }

    .login-showcase {
        padding-inline: 44px;
    }

    .equipment-scene__tag {
        display: none;
    }
}

@media (max-width: 799px) {
    .auth-body {
        background: var(--ink-950);
    }

    .auth-header {
        height: 74px;
        padding-inline: 20px;
    }

    .auth-header .brand__mark,
    .auth-header .brand__mark svg {
        width: 30px;
        height: 30px;
    }

    .auth-header .brand__word {
        font-size: 22px;
    }

    .login-layout {
        display: block;
        min-height: 100vh;
        padding-top: 74px;
        background: var(--ink-950);
    }

    .login-showcase {
        display: none;
    }

    .login-panel {
        min-height: calc(100vh - 74px);
        align-content: start;
        padding: 52px 24px 36px;
        border-radius: 28px 28px 0 0;
    }

    .login-card {
        width: min(460px, 100%);
    }

    .login-security {
        width: min(460px, 100%);
    }

    .flash-stack--auth {
        top: 80px;
    }
}

@media (max-width: 699px) {
    .main-content {
        padding: 27px 16px 116px;
    }

    .page-heading {
        align-items: flex-start;
    }

    .page-heading h1 {
        font-size: 36px;
    }

    .page-heading__intro {
        font-size: 17px;
    }

    .dashboard-heading > .button {
        position: fixed;
        z-index: 62;
        right: 50%;
        bottom: calc(10px + env(safe-area-inset-bottom));
        width: 54px;
        height: 54px;
        min-height: 54px;
        padding: 0;
        border: 4px solid var(--paper);
        border-radius: 18px;
        box-shadow: 0 5px 16px rgba(113, 86, 0, .23);
        opacity: 0;
        pointer-events: none;
        transform: translateX(50%);
    }

    .summary-grid {
        gap: 9px;
        margin-top: 24px;
    }

    .summary-card {
        min-height: 132px;
        flex-direction: column;
        gap: 9px;
        padding: 15px;
    }

    .summary-card__icon {
        width: 32px;
        height: 32px;
        flex-basis: 32px;
    }

    .summary-card__icon svg {
        width: 18px;
        height: 18px;
    }

    .summary-card__body > strong {
        font-size: 32px;
    }

    .summary-card__body > span {
        margin-top: 3px;
        font-size: 15px;
    }

    .summary-card__body > small {
        max-width: 125px;
        font-size: 13px;
    }

    .dashboard-layout {
        margin-top: 34px;
    }

    .section-heading {
        margin-bottom: 11px;
    }

    .section-heading h2,
    .rail-card h2 {
        font-size: 21px;
    }

    .project-card__main {
        padding: 15px;
    }

    .project-card__identity h3,
    .project-card__identity p {
        overflow: visible;
        text-overflow: clip;
        white-space: normal;
    }

    .project-card__arrow {
        width: 38px;
        flex-basis: 38px;
    }

    .project-card__meta {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .project-card__duration {
        display: none;
    }

    .dashboard-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .empty-state {
        min-height: 370px;
    }
}

@media (max-width: 420px) {
    .mobile-header {
        padding-inline: 14px;
    }

    .mobile-header .brand {
        gap: 7px;
    }

    .branch-switcher--compact .branch-switcher__flag {
        width: 28px;
        flex-basis: 28px;
    }

    .login-panel {
        padding: 42px 19px 30px;
    }

    .login-card h2 {
        font-size: 35px;
    }

    .project-card__type {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}

@media (prefers-contrast: more) {
    :root {
        --ink-150: #b5c1ba;
        --ink-200: #9eaca4;
    }

    .project-card,
    .summary-card,
    .rail-card {
        border-width: 2px;
    }
}

@media (max-width: 1099px) {
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .detail-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .detail-sidebar {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .price-card {
        grid-row: span 3;
    }

    .approval-layout {
        grid-template-columns: minmax(280px, .72fr) minmax(390px, 1.28fr);
    }
}

@media (max-width: 799px) {
    .detail-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-card {
        grid-row: auto;
    }

    .approval-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .document-preview-card {
        grid-template-columns: auto minmax(0, 1fr);
        align-items: center;
    }

    .document-preview-card > .button {
        grid-column: 1 / -1;
    }

    .annotation-editor__controls {
        flex-wrap: nowrap !important;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x proximity;
    }

    .annotation-editor__controls > * {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}

@media (max-width: 699px) {
    .page-heading > div > p:not(.eyebrow),
    .detail-heading > div > p {
        font-size: 16px;
    }

    .project-editor-page > .page-heading,
    .detail-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 13px;
    }

    .editor-section {
        margin-top: 12px;
        padding: 18px 15px;
    }

    .editor-section:first-of-type {
        margin-top: 24px;
    }

    .editor-section > .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
        gap: 10px;
        margin-bottom: 19px;
    }

    .editor-section > .section-heading .live-estimate {
        width: 100%;
        margin-left: 44px;
    }

    .form-grid,
    .question-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 9px;
    }

    .product-card {
        min-height: 260px;
        padding: 13px;
    }

    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .sticky-action-bar {
        bottom: 85px;
        flex-wrap: wrap;
        padding: 9px;
    }

    .sticky-action-bar > div {
        width: 100%;
        flex-basis: 100%;
    }

    .sticky-action-bar > .button {
        flex: 1;
        padding-inline: 10px;
        font-size: 16px;
    }

    .detail-layout {
        margin-top: 22px;
    }

    .detail-card,
    .price-card,
    .action-card,
    .final-quote-card,
    .document-preview-card,
    .signature-card,
    .standalone-form,
    .upload-summary {
        padding: 18px 15px;
    }

    .detail-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .price-totals .grand-total {
        margin: 4px -15px -18px;
        padding: 15px;
    }

    .upload-summary {
        grid-template-columns: minmax(0, 1fr);
    }

    .upload-summary > div {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 16px;
        padding-bottom: 9px;
        border-bottom: 1px solid var(--ink-100);
    }

    .annotation-editor__stage,
    [data-annotation-stage] {
        min-height: 260px;
        padding: 7px;
    }

    .annotation-form .sticky-action-bar {
        flex-wrap: nowrap;
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .button {
        width: 100%;
    }
}

@media (max-width: 599px) {
    .product-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-card {
        min-height: 210px;
    }

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

    .heading-line {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .annotation-form .sticky-action-bar {
        flex-direction: column-reverse;
    }

    .annotation-form .sticky-action-bar .button {
        width: 100%;
    }
}

/* ========================================================================== */
/* RentMesh employee portal                                                  */
/* All portal-specific rules are scoped so the customer workspace stays      */
/* visually and behaviorally independent.                                    */
/* ========================================================================== */

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.employee-body {
    --employee-sidebar-width: 320px;
    min-height: 100vh;
    color: var(--ink-900);
    background: #f3f3ef;
    font-size: 16px;
    line-height: 1.5;
}

.employee-body::before {
    position: fixed;
    z-index: -1;
    inset: 0;
    background:
        radial-gradient(circle at 100% 0, rgba(244, 202, 62, .055), transparent 24%),
        linear-gradient(rgba(23, 37, 31, .018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(23, 37, 31, .018) 1px, transparent 1px);
    background-size: auto, 28px 28px, 28px 28px;
    content: "";
    pointer-events: none;
}

.employee-shell {
    min-height: 100vh;
}

.employee-sidebar {
    position: fixed;
    z-index: 60;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--employee-sidebar-width);
    flex-direction: column;
    overflow-y: auto;
    padding: 23px 15px 16px;
    color: #d5ddd8;
    background:
        linear-gradient(rgba(255, 255, 255, .017) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .017) 1px, transparent 1px),
        #111e18;
    background-size: 24px 24px;
    border-right: 1px solid rgba(255, 255, 255, .05);
}

.employee-sidebar::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--yellow-400), #e6a338 72%, transparent);
    content: "";
}

.employee-sidebar__brand {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 4px 9px 25px;
    border-bottom: 1px solid rgba(255, 255, 255, .07);
}

.employee-sidebar__brand .brand {
    min-width: 0;
    flex: 1;
}

.employee-sidebar__brand .brand__word {
    font-size: 23px;
}

.employee-surface-label {
    display: inline-flex;
    min-height: 20px;
    align-items: center;
    padding: 3px 6px;
    border: 1px solid rgba(244, 202, 62, .28);
    border-radius: 5px;
    color: var(--yellow-400);
    background: rgba(244, 202, 62, .06);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.employee-nav {
    display: grid;
    gap: 4px;
    margin-top: 25px;
}

.employee-nav__label {
    padding: 0 11px 7px;
    color: #60756b;
    font-size: 13px;
    font-weight: 820;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.employee-nav__label--spaced {
    margin-top: 18px;
}

.employee-nav__item {
    position: relative;
    display: flex;
    min-height: 51px;
    align-items: center;
    gap: 12px;
    padding: 9px 11px;
    border-radius: 9px;
    color: #a9b8b0;
    font-size: 16px;
    font-weight: 650;
    transition: color .15s ease, background .15s ease;
}

.employee-nav__item svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    stroke-width: 1.65;
}

.employee-nav__item > span {
    min-width: 0;
    flex: 1;
}

.employee-nav__item > b,
.employee-bottom-nav b {
    display: grid;
    min-width: 21px;
    height: 21px;
    place-items: center;
    padding-inline: 4px;
    border-radius: 999px;
    color: #16231d;
    background: var(--yellow-400);
    font-size: 12px;
    font-weight: 850;
}

.employee-nav__item:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, .055);
}

.employee-nav__item.is-active {
    color: var(--paper);
    background: rgba(255, 255, 255, .085);
}

.employee-nav__item.is-active::before {
    position: absolute;
    top: 12px;
    bottom: 12px;
    left: -7px;
    width: 3px;
    border-radius: 3px;
    background: var(--yellow-400);
    content: "";
}

.employee-nav__item.is-active svg {
    color: var(--yellow-400);
}

.employee-sidebar__footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 27px;
}

.employee-admin-link {
    display: flex;
    min-height: 37px;
    align-items: center;
    gap: 9px;
    margin-inline: 5px;
    padding: 7px 9px;
    border-radius: 7px;
    color: #81968b;
    font-size: 13px;
    font-weight: 650;
}

.employee-admin-link:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, .05);
}

.employee-admin-link svg {
    width: 16px;
    height: 16px;
}

.employee-admin-link > span {
    margin-left: auto;
}

.employee-sidebar__language {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-inline: 8px;
    padding: 12px 2px 2px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #71867b;
    font-size: 13px;
    font-weight: 720;
}

.employee-sidebar .language-switcher button,
.employee-sidebar .language-switcher button:hover,
.employee-sidebar .language-switcher button.is-active {
    color: #a9b8b0;
}

.employee-body .language-switcher button {
    min-width: 30px;
    font-size: 14px;
}

.employee-sidebar .language-switcher button.is-active {
    color: var(--yellow-400);
}

.employee-account {
    position: relative;
}

.employee-account > summary {
    display: flex;
    min-height: 57px;
    align-items: center;
    gap: 10px;
    padding: 8px 9px;
    border: 1px solid rgba(255, 255, 255, .075);
    border-radius: 10px;
    background: rgba(255, 255, 255, .035);
    list-style: none;
}

.employee-account > summary::-webkit-details-marker,
.employee-mobile-menu > summary::-webkit-details-marker {
    display: none;
}

.employee-avatar {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    place-items: center;
    border-radius: 8px;
    color: #16231d;
    background: var(--yellow-400);
    font-size: 16px;
    font-weight: 850;
}

.employee-account > summary > span:nth-child(2) {
    min-width: 0;
    flex: 1;
}

.employee-account strong,
.employee-account small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-account strong {
    color: var(--paper);
    font-size: 14px;
}

.employee-account small {
    margin-top: 1px;
    color: #70857a;
    font-size: 12px;
}

.employee-account > summary > svg {
    width: 15px;
    height: 15px;
    color: #71867b;
    transition: transform .15s ease;
}

.employee-account[open] > summary > svg {
    transform: rotate(180deg);
}

.employee-account__menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 6px);
    left: 0;
    padding: 6px;
    border: 1px solid #405248;
    border-radius: 9px;
    background: #182820;
    box-shadow: var(--shadow-md);
}

.employee-account__menu button {
    width: 100%;
    padding: 8px 10px;
    border: 0;
    border-radius: 6px;
    color: #bdc9c2;
    background: transparent;
    font-size: 14px;
    font-weight: 650;
    text-align: left;
}

.employee-account__menu button:hover {
    color: var(--paper);
    background: rgba(255, 255, 255, .06);
}

.employee-frame {
    min-height: 100vh;
    margin-left: var(--employee-sidebar-width);
}

.employee-main {
    width: 100%;
    max-width: 1580px;
    margin-inline: auto;
    padding: 42px clamp(28px, 4vw, 62px) 70px;
}

.employee-mobile-header,
.employee-bottom-nav {
    display: none;
}

.employee-kicker {
    margin-bottom: 6px;
    color: #9b6c0c;
    font-size: 13px;
    font-weight: 850;
    letter-spacing: .13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.employee-page-header {
    display: flex;
    min-height: 77px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
}

.employee-page-header h1,
.employee-review-header h1 {
    color: #132019;
    font-size: clamp(36px, 3.4vw, 48px);
    font-weight: 800;
    letter-spacing: -.045em;
    line-height: 1.07;
}

.employee-page-header > div:first-child > p:last-child,
.employee-review-header__title p:last-child {
    max-width: 700px;
    margin-top: 8px;
    color: var(--ink-600);
    font-size: 17px;
}

.employee-header-date {
    display: grid;
    min-width: 145px;
    justify-items: end;
    padding-left: 22px;
    border-left: 1px solid var(--ink-200);
}

.employee-header-date span {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.employee-header-date strong {
    margin-top: 3px;
    color: var(--ink-800);
    font-size: 16px;
    text-transform: capitalize;
}

.employee-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 15px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 750;
    letter-spacing: -.005em;
    transition: border-color .15s ease, color .15s ease, background .15s ease, box-shadow .15s ease, transform .15s ease;
}

.employee-button:hover {
    transform: translateY(-1px);
}

.employee-button svg {
    width: 18px;
    height: 18px;
    stroke-width: 2;
}

.employee-button--primary {
    color: #132019;
    background: var(--yellow-500);
    box-shadow: 0 7px 17px rgba(143, 107, 0, .14);
}

.employee-button--primary:hover {
    background: var(--yellow-400);
    box-shadow: 0 9px 21px rgba(143, 107, 0, .2);
}

.employee-button--secondary {
    border-color: var(--ink-200);
    color: var(--ink-800);
    background: var(--paper);
}

.employee-button--secondary:hover {
    border-color: var(--ink-400);
    background: var(--ink-50);
}

.employee-button--ghost {
    color: var(--ink-600);
    background: transparent;
}

.employee-button--ghost:hover {
    color: var(--ink-900);
    background: var(--ink-100);
}

.employee-button--block {
    width: 100%;
}

/* Employee dashboard */

.employee-metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 29px;
}

.employee-metric {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 118px;
    grid-template-columns: 39px minmax(0, 1fr) 26px;
    align-items: start;
    gap: 11px;
    overflow: hidden;
    padding: 17px;
    border: 1px solid var(--ink-150);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.employee-metric::after {
    position: absolute;
    right: -28px;
    bottom: -54px;
    width: 104px;
    height: 104px;
    border: 16px solid rgba(16, 28, 23, .025);
    border-radius: 50%;
    content: "";
}

.employee-metric__icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 9px;
    color: var(--ink-700);
    background: var(--ink-100);
}

.employee-metric__icon svg {
    width: 20px;
    height: 20px;
}

.employee-metric--attention .employee-metric__icon {
    color: var(--amber-700);
    background: var(--amber-100);
}

.employee-metric--blue .employee-metric__icon {
    color: var(--blue-600);
    background: var(--blue-100);
}

.employee-metric--green .employee-metric__icon {
    color: var(--green-600);
    background: var(--green-100);
}

.employee-metric > div {
    display: grid;
    min-width: 0;
}

.employee-metric > div > strong {
    color: #132019;
    font-size: 32px;
    font-weight: 820;
    letter-spacing: -.04em;
    line-height: 1;
}

.employee-metric > div > span {
    margin-top: 7px;
    color: var(--ink-800);
    font-size: 14px;
    font-weight: 740;
}

.employee-metric > div > small {
    overflow: hidden;
    color: var(--ink-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-metric > a {
    position: relative;
    z-index: 1;
    display: grid;
    width: 26px;
    height: 26px;
    place-items: center;
    border-radius: 7px;
    color: var(--ink-500);
    background: var(--ink-50);
    font-size: 18px;
    transition: color .15s ease, background .15s ease;
}

.employee-metric > a:hover {
    color: #132019;
    background: var(--yellow-100);
}

.employee-dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(285px, .68fr);
    align-items: start;
    gap: 17px;
    margin-top: 34px;
}

.employee-panel,
.employee-list-panel,
.employee-review-card,
.employee-action-card,
.employee-timeline-card {
    min-width: 0;
    border: 1px solid var(--ink-150);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.employee-panel__header,
.employee-review-card__header {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.employee-panel__header h2,
.employee-review-card__header h2,
.employee-action-card h2,
.employee-timeline-card h2 {
    color: #132019;
    font-size: 22px;
    font-weight: 780;
    letter-spacing: -.025em;
}

.employee-panel__header > a {
    color: var(--green-600);
    font-size: 14px;
    font-weight: 710;
    white-space: nowrap;
}

.employee-panel__header > a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.employee-queue-panel {
    padding: 21px;
}

.employee-queue-list {
    margin-top: 18px;
    border-top: 1px solid var(--ink-100);
}

.employee-queue-row {
    display: grid;
    min-height: 67px;
    grid-template-columns: 5px minmax(155px, 1fr) minmax(92px, auto) auto 20px;
    align-items: center;
    gap: 12px;
    padding: 10px 4px;
    border-bottom: 1px solid var(--ink-100);
    transition: background .15s ease;
}

.employee-queue-row:hover {
    margin-inline: -8px;
    padding-inline: 12px;
    border-radius: 8px;
    background: var(--ink-50);
}

.employee-queue-row__priority {
    width: 5px;
    height: 26px;
    border-radius: 5px;
    background: var(--yellow-500);
}

.employee-queue-row__identity,
.employee-queue-row__date {
    min-width: 0;
}

.employee-queue-row__identity strong,
.employee-queue-row__identity small,
.employee-queue-row__date strong,
.employee-queue-row__date small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-queue-row__identity strong {
    color: var(--ink-900);
    font-size: 16px;
    font-weight: 740;
}

.employee-queue-row__identity small,
.employee-queue-row__date small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-queue-row__date strong {
    color: var(--ink-700);
    font-size: 13px;
    font-weight: 660;
}

.employee-queue-row__arrow {
    width: 18px;
    height: 18px;
    color: var(--ink-400);
}

.employee-panel-empty {
    display: grid;
    min-height: 260px;
    place-items: center;
    align-content: center;
    text-align: center;
}

.employee-panel-empty > span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    color: var(--green-600);
    background: var(--green-100);
    font-size: 25px;
}

.employee-panel-empty strong {
    margin-top: 11px;
    color: var(--ink-900);
    font-size: 17px;
}

.employee-panel-empty p {
    max-width: 330px;
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 14px;
}

.employee-dashboard-rail {
    display: grid;
    gap: 13px;
}

.employee-quick-actions,
.employee-activity-card {
    padding: 20px;
}

.employee-quick-actions__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 17px;
}

.employee-quick-actions__grid a {
    display: flex;
    min-width: 0;
    min-height: 116px;
    flex-direction: column;
    align-items: flex-start;
    padding: 12px;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    background: var(--ink-50);
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.employee-quick-actions__grid a:hover {
    border-color: var(--ink-300);
    background: var(--paper);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.employee-quick-actions__grid a > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 7px;
    color: #132019;
    background: var(--yellow-100);
}

.employee-quick-actions__grid svg {
    width: 16px;
    height: 16px;
}

.employee-quick-actions__grid strong {
    margin-top: auto;
    overflow: hidden;
    color: var(--ink-900);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-quick-actions__grid small {
    margin-top: 1px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-activity-number {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin-top: 16px;
}

.employee-activity-number strong {
    color: #132019;
    font-size: 40px;
    font-weight: 820;
    letter-spacing: -.05em;
}

.employee-activity-number span {
    color: var(--ink-500);
    font-size: 13px;
}

.employee-activity-bar {
    height: 6px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--ink-100);
}

.employee-activity-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--yellow-500), #e4a936);
}

.employee-activity-card > p {
    margin-top: 9px;
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.5;
}

/* Employee lists, search and pagination */

.employee-page-header--action {
    align-items: flex-end;
}

.employee-list-panel {
    margin-top: 27px;
    overflow: hidden;
}

.employee-list-panel__toolbar {
    display: flex;
    min-height: 68px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 12px 17px;
    border-bottom: 1px solid var(--ink-150);
    background: rgba(248, 249, 246, .75);
}

.employee-list-toolbar {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
}

.employee-search {
    position: relative;
    display: block;
    width: min(340px, 36vw);
}

.employee-search > svg {
    position: absolute;
    top: 50%;
    left: 12px;
    width: 17px;
    height: 17px;
    color: var(--ink-400);
    pointer-events: none;
    transform: translateY(-50%);
}

.employee-search input,
.employee-filter select {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    outline: 0;
    color: var(--ink-800);
    background: var(--paper);
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.employee-search input {
    padding: 8px 12px 8px 38px;
}

.employee-search input::placeholder {
    color: var(--ink-400);
}

.employee-filter select {
    min-width: 145px;
    padding: 8px 30px 8px 10px;
}

.employee-search input:focus,
.employee-filter select:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(24, 121, 87, .11);
}

.employee-list-toolbar .employee-button {
    min-height: 46px;
}

.employee-clear-filter {
    padding: 7px;
    color: var(--green-600);
    font-size: 13px;
    font-weight: 700;
}

.employee-result-count {
    color: var(--ink-500);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
}

.employee-data-table-wrap,
.employee-quotation-table-wrap {
    width: 100%;
    overflow-x: auto;
}

.employee-data-table,
.employee-quotation-table {
    width: 100%;
    min-width: 900px;
    border-collapse: collapse;
    table-layout: fixed;
}

.employee-data-table th,
.employee-quotation-table th {
    padding: 11px 16px;
    color: var(--ink-500);
    background: var(--paper);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: left;
    text-transform: uppercase;
}

.employee-data-table td,
.employee-quotation-table td {
    min-width: 0;
    padding: 13px 16px;
    border-top: 1px solid var(--ink-100);
    color: var(--ink-700);
    font-size: 14px;
    vertical-align: middle;
}

.employee-data-table tbody tr,
.employee-quotation-table tbody tr {
    transition: background .15s ease;
}

.employee-data-table tbody tr:hover,
.employee-quotation-table tbody tr:hover {
    background: var(--ink-50);
}

.employee-data-table th:last-child,
.employee-data-table td:last-child,
.employee-quotation-table th:last-child,
.employee-quotation-table td:last-child {
    width: 54px;
    padding-inline: 8px;
    text-align: center;
}

.employee-cell-value,
.employee-data-table td small,
.employee-quotation-table td > strong,
.employee-quotation-table td > small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-cell-value--primary,
.employee-quotation-table td > strong {
    color: var(--ink-900);
    font-weight: 720;
}

.employee-data-table td small,
.employee-quotation-table td > small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-table-badge {
    display: inline-flex;
    padding: 4px 7px;
    border-radius: 999px;
    color: var(--ink-600);
    background: var(--ink-100);
    font-size: 12px;
    font-weight: 750;
}

.employee-table-badge--green {
    color: var(--green-600);
    background: var(--green-100);
}

.employee-table-badge--amber {
    color: var(--amber-700);
    background: var(--amber-100);
}

.employee-data-table__action a,
.employee-row-action {
    display: grid;
    width: 30px;
    height: 30px;
    margin-inline: auto;
    place-items: center;
    border: 1px solid var(--ink-150);
    border-radius: 7px;
    color: var(--ink-500);
    background: var(--paper);
}

.employee-data-table__action a:hover,
.employee-row-action:hover {
    border-color: var(--ink-300);
    color: #132019;
    background: var(--yellow-100);
}

.employee-data-table__action svg,
.employee-row-action svg {
    width: 16px;
    height: 16px;
}

.employee-fallback-list {
    display: grid;
}

.employee-fallback-list > a {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 11px 17px;
    border-bottom: 1px solid var(--ink-100);
}

.employee-fallback-list strong,
.employee-fallback-list small {
    display: block;
}

.employee-fallback-list strong {
    color: var(--ink-900);
    font-size: 16px;
}

.employee-fallback-list small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-empty-state {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    padding: 35px 20px;
    text-align: center;
}

.employee-empty-state > span {
    display: grid;
    width: 86px;
    height: 86px;
    place-items: center;
    border-radius: 24px;
    color: var(--ink-600);
    background: var(--ink-50);
    transform: rotate(-3deg);
}

.employee-empty-state > span svg {
    width: 55px;
    height: 55px;
    stroke-width: 1.3;
    transform: rotate(3deg);
}

.employee-empty-state h2 {
    margin-top: 16px;
    color: #132019;
    font-size: 22px;
    font-weight: 780;
    letter-spacing: -.02em;
}

.employee-empty-state p {
    max-width: 420px;
    margin-top: 6px;
    color: var(--ink-500);
    font-size: 14px;
}

.employee-empty-state .employee-button {
    margin-top: 17px;
}

.employee-pagination {
    display: flex;
    min-height: 62px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 11px 17px;
    border-top: 1px solid var(--ink-150);
    background: var(--ink-50);
}

.employee-pagination > p,
.employee-pagination strong {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 650;
}

.employee-pagination > div {
    display: flex;
    align-items: center;
    gap: 9px;
}

.employee-pagination a,
.employee-pagination > div > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid var(--ink-200);
    border-radius: 7px;
    color: var(--ink-700);
    background: var(--paper);
}

.employee-pagination a:hover {
    border-color: var(--ink-400);
    color: #132019;
    background: var(--yellow-100);
}

.employee-pagination > div > span {
    opacity: .4;
}

/* Employee create and edit forms */

.employee-form-page {
    max-width: 980px;
    margin-inline: auto;
}

.employee-back-link {
    display: inline-flex;
    margin-bottom: 13px;
    color: var(--green-600);
    font-size: 13px;
    font-weight: 740;
}

.employee-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.employee-form {
    margin-top: 27px;
}

.employee-form-section {
    display: grid;
    grid-template-columns: minmax(190px, .36fr) minmax(0, 1fr);
    gap: 28px;
    padding: 27px;
    border: 1px solid var(--ink-150);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.employee-form-section + .employee-form-section {
    margin-top: 13px;
}

.employee-form-section__intro {
    display: flex;
    align-items: flex-start;
    gap: 11px;
}

.employee-form-section__intro > span {
    display: grid;
    width: 29px;
    height: 29px;
    flex: 0 0 29px;
    place-items: center;
    border-radius: 7px;
    color: #132019;
    background: var(--yellow-100);
    font-size: 12px;
    font-weight: 850;
}

.employee-form-section__intro h2 {
    color: #132019;
    font-size: 20px;
    font-weight: 760;
}

.employee-form-section__intro p {
    max-width: 230px;
    margin-top: 4px;
    color: var(--ink-500);
    font-size: 13px;
    line-height: 1.5;
}

.employee-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 17px;
}

.employee-form-field {
    display: grid;
    min-width: 0;
    align-content: start;
    gap: 6px;
}

.employee-form-field--wide {
    grid-column: 1 / -1;
}

.employee-form-field > label {
    color: var(--ink-800);
    font-size: 13px;
    font-weight: 730;
}

.employee-form-field > label > span {
    color: var(--red-600);
}

.employee-form-field input:not([type="checkbox"]):not([type="radio"]),
.employee-form-field select,
.employee-form-field textarea,
.employee-quote-upload input,
.employee-quote-upload select,
.employee-quote-upload textarea {
    width: 100%;
    min-height: 48px;
    padding: 9px 11px;
    border: 1px solid var(--ink-200);
    border-radius: 8px;
    outline: 0;
    color: var(--ink-900);
    background: var(--paper);
    font-size: 16px;
    transition: border-color .15s ease, box-shadow .15s ease;
}

.employee-form-field textarea,
.employee-quote-upload textarea {
    min-height: 105px;
    resize: vertical;
}

.employee-form-field input:focus,
.employee-form-field select:focus,
.employee-form-field textarea:focus,
.employee-quote-upload input:focus,
.employee-quote-upload select:focus,
.employee-quote-upload textarea:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(24, 121, 87, .11);
}

.employee-form-field.has-error input,
.employee-form-field.has-error select,
.employee-form-field.has-error textarea {
    border-color: var(--red-600);
    background: #fffafa;
}

.employee-form-field__help {
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.45;
}

.employee-form-field__error {
    color: var(--red-600);
    font-size: 12px;
    font-weight: 650;
}

.employee-checkbox {
    display: flex;
    min-height: 50px;
    align-items: flex-start;
    gap: 9px;
    padding: 10px;
    border: 1px solid var(--ink-150);
    border-radius: 8px;
    background: var(--ink-50);
    cursor: pointer;
}

.employee-checkbox input {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    margin-top: 1px;
    accent-color: var(--green-600);
}

.employee-checkbox strong,
.employee-checkbox small {
    display: block;
}

.employee-checkbox strong {
    color: var(--ink-800);
    font-size: 13px;
}

.employee-checkbox small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 500;
}

.employee-form-alert {
    margin-bottom: 13px;
    padding: 12px 14px;
    border: 1px solid #f3c9c7;
    border-radius: 9px;
    color: var(--red-600);
    background: var(--red-100);
    font-size: 13px;
}

.employee-form-alert > strong {
    display: block;
    margin-bottom: 3px;
}

.employee-form-alert .errorlist {
    padding: 0;
    border: 0;
    background: transparent;
}

.employee-form-actions {
    position: sticky;
    z-index: 25;
    bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid var(--ink-150);
    border-radius: 11px;
    background: rgba(255, 255, 255, .95);
    box-shadow: 0 12px 34px rgba(16, 28, 23, .12);
    backdrop-filter: blur(12px);
}

/* Employee quotation inbox */

.employee-inbox-indicator {
    display: grid;
    grid-template-columns: 8px auto;
    align-items: center;
    column-gap: 7px;
    padding: 9px 12px;
    border: 1px solid var(--ink-150);
    border-radius: 8px;
    background: rgba(255, 255, 255, .65);
}

.employee-inbox-indicator > span {
    grid-row: span 2;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-600);
    box-shadow: 0 0 0 4px var(--green-100);
}

.employee-inbox-indicator strong {
    color: var(--ink-700);
    font-size: 13px;
}

.employee-inbox-indicator small {
    color: var(--ink-500);
    font-size: 12px;
}

.employee-inbox-summary {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0;
    margin-top: 27px;
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: 11px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.employee-inbox-summary a {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 78px;
    align-items: baseline;
    justify-content: center;
    flex-direction: column;
    padding: 13px 18px;
    border-right: 1px solid var(--ink-100);
    transition: background .15s ease;
}

.employee-inbox-summary a:last-child {
    border-right: 0;
}

.employee-inbox-summary a:hover,
.employee-inbox-summary a.is-active {
    background: var(--ink-50);
}

.employee-inbox-summary a.is-active::after {
    position: absolute;
    right: 17px;
    bottom: 0;
    left: 17px;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--yellow-500);
    content: "";
}

.employee-inbox-summary strong {
    color: #132019;
    font-size: 28px;
    font-weight: 820;
    letter-spacing: -.04em;
}

.employee-inbox-summary span {
    margin-top: 3px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-inbox-panel {
    margin-top: 13px;
}

.employee-quotation-table th:first-child {
    width: 28%;
}

.employee-quotation-table th:nth-child(2) {
    width: 21%;
}

.employee-quotation-table th:nth-child(3) {
    width: 18%;
}

.employee-quotation-table th:nth-child(4) {
    width: 14%;
}

.employee-project-identity {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
}

.employee-project-identity > span:first-child {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    place-items: center;
    border-radius: 8px;
    color: #132019;
    background: var(--yellow-100);
    font-size: 14px;
    font-weight: 830;
}

.employee-project-identity > span:last-child {
    min-width: 0;
}

.employee-project-identity strong,
.employee-project-identity small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-project-identity strong {
    color: var(--ink-900);
    font-size: 14px;
}

.employee-project-identity small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-status {
    display: inline-flex;
    min-height: 23px;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    border-radius: 999px;
    color: var(--ink-600);
    background: var(--ink-100);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .025em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}

.employee-status > span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ink-400);
}

.employee-status--quote_requested {
    color: var(--amber-700);
    background: var(--amber-100);
}

.employee-status--quote_requested > span {
    background: #d89113;
}

.employee-status--final_quote_uploaded,
.employee-status--manager_approved {
    color: var(--blue-600);
    background: var(--blue-100);
}

.employee-status--final_quote_uploaded > span,
.employee-status--manager_approved > span {
    background: var(--blue-600);
}

.employee-status--sent,
.employee-status--approved,
.employee-status--active {
    color: var(--green-600);
    background: var(--green-100);
}

.employee-status--sent > span,
.employee-status--approved > span,
.employee-status--active > span {
    background: var(--green-600);
}

/* Employee quotation review */

.employee-review-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.employee-review-header__title {
    display: flex;
    align-items: center;
    gap: 13px;
}

.employee-review-header__mark {
    display: grid;
    width: 49px;
    height: 49px;
    flex: 0 0 49px;
    place-items: center;
    border: 1px solid #e4d393;
    border-radius: 12px;
    color: #132019;
    background: var(--yellow-100);
    font-size: 22px;
    font-weight: 840;
}

.employee-review-header h1 {
    font-size: 38px;
}

.employee-review-header__title p:last-child {
    margin-top: 3px;
    font-size: 14px;
}

.employee-review-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(360px, .62fr);
    align-items: start;
    gap: 16px;
    margin-top: 25px;
}

.employee-review-main,
.employee-review-rail {
    display: grid;
    min-width: 0;
    gap: 13px;
}

.employee-review-card,
.employee-action-card,
.employee-timeline-card {
    padding: 22px;
}

.employee-review-card__header > span,
.employee-review-card__header > small {
    padding: 5px 8px;
    border-radius: 6px;
    color: var(--ink-500);
    background: var(--ink-50);
    font-size: 12px;
    font-weight: 650;
    white-space: nowrap;
}

.employee-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0 22px;
    margin-top: 17px;
}

.employee-facts > div {
    min-width: 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--ink-100);
}

.employee-facts dt,
.employee-answer-list dt {
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .055em;
    text-transform: uppercase;
}

.employee-facts dd,
.employee-answer-list dd {
    margin-top: 3px;
    color: var(--ink-800);
    font-size: 14px;
    font-weight: 650;
}

.employee-facts dd small {
    display: block;
    margin-top: 2px;
    overflow: hidden;
    color: var(--ink-500);
    font-size: 12px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-project-note {
    margin-top: 17px;
    padding: 13px 14px;
    border-left: 3px solid var(--yellow-500);
    border-radius: 0 8px 8px 0;
    background: var(--yellow-100);
}

.employee-project-note strong {
    color: var(--ink-900);
    font-size: 13px;
}

.employee-project-note p {
    margin-top: 4px;
    color: var(--ink-700);
    font-size: 13px;
    line-height: 1.5;
}

.employee-answer-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 24px;
    margin-top: 15px;
}

.employee-answer-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0;
    border-bottom: 1px solid var(--ink-100);
}

.employee-answer-list dd {
    margin-top: 0;
    text-align: right;
}

.employee-product-lines {
    margin-top: 17px;
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
}

.employee-product-lines__head,
.employee-product-line {
    display: grid;
    grid-template-columns: minmax(180px, 1fr) 60px 92px 58px 95px;
    align-items: center;
    gap: 9px;
}

.employee-product-lines__head {
    min-height: 35px;
    padding: 8px 12px;
    color: var(--ink-500);
    background: var(--ink-50);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.employee-product-lines__head span:not(:first-child),
.employee-product-line > span:not(:first-child) {
    text-align: right;
}

.employee-product-line {
    min-height: 52px;
    padding: 9px 12px;
    border-top: 1px solid var(--ink-100);
    color: var(--ink-700);
    font-size: 13px;
}

.employee-product-line > span {
    min-width: 0;
}

.employee-product-line strong,
.employee-product-line small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-product-line strong {
    color: var(--ink-900);
    font-size: 13px;
}

.employee-product-line small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-pricing-breakdown {
    width: min(365px, 100%);
    margin: 16px 0 0 auto;
}

.employee-pricing-breakdown > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 5px 0;
    color: var(--ink-600);
    font-size: 13px;
}

.employee-pricing-breakdown .is-discount {
    color: var(--green-600);
}

.employee-pricing-breakdown .is-subtotal {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid var(--ink-150);
    color: var(--ink-800);
}

.employee-pricing-breakdown .is-total {
    margin-top: 5px;
    padding: 11px 12px;
    border-radius: 8px;
    color: var(--paper);
    background: #132019;
}

.employee-pricing-breakdown .is-total strong {
    color: var(--yellow-400);
    font-size: 17px;
}

.employee-inline-empty {
    margin-top: 15px;
    padding: 18px;
    border: 1px dashed var(--ink-300);
    border-radius: 8px;
    color: var(--ink-500);
    background: var(--ink-50);
    font-size: 13px;
    text-align: center;
}

.employee-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 11px;
    margin-top: 17px;
}

.employee-media-grid article {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    background: var(--paper);
}

.employee-media-grid article > div {
    overflow: hidden;
    background: var(--ink-100);
}

.employee-media-grid .annotated-image {
    aspect-ratio: 16 / 10;
    border: 0;
    border-radius: 0;
}

.employee-media-grid .annotated-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.employee-media-grid article > p {
    display: grid;
    gap: 2px;
    padding: 9px 10px;
}

.employee-media-grid article > p strong {
    overflow: hidden;
    color: var(--ink-900);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-media-grid article > p span {
    color: var(--ink-500);
    font-size: 12px;
}

.employee-action-card {
    position: sticky;
    top: 20px;
    overflow: hidden;
    border-top: 3px solid var(--yellow-500);
}

.employee-action-card__header {
    display: flex;
    align-items: center;
    gap: 10px;
}

.employee-action-card__header > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 9px;
    color: #132019;
    background: var(--yellow-100);
}

.employee-action-card__header svg {
    width: 20px;
    height: 20px;
}

.employee-permission-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    color: var(--ink-600);
    background: var(--ink-50);
}

.employee-permission-note svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
}

.employee-permission-note p {
    font-size: 12px;
    line-height: 1.45;
}

.employee-document-row,
.employee-document-empty {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 9px;
    margin-top: 16px;
    padding: 10px;
    border: 1px solid var(--ink-150);
    border-radius: 8px;
    background: var(--ink-50);
}

.employee-document-row > span,
.employee-document-empty > span {
    display: grid;
    width: 35px;
    height: 42px;
    flex: 0 0 35px;
    place-items: center;
    border-radius: 5px 8px 5px 5px;
    color: var(--paper);
    background: var(--red-600);
    font-size: 12px;
    font-weight: 850;
}

.employee-document-row > div,
.employee-document-empty > p {
    min-width: 0;
    flex: 1;
}

.employee-document-row strong,
.employee-document-row small,
.employee-document-empty strong,
.employee-document-empty small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-document-row strong,
.employee-document-empty strong {
    color: var(--ink-900);
    font-size: 12px;
}

.employee-document-row small,
.employee-document-empty small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-document-row > a {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 6px;
    color: var(--ink-700);
    background: var(--paper);
}

.employee-quote-upload {
    display: grid;
    gap: 10px;
    margin-top: 13px;
}

.employee-quote-upload label > span {
    display: block;
    margin-bottom: 5px;
    color: var(--ink-700);
    font-size: 12px;
    font-weight: 700;
}

.employee-quote-upload input[type="file"] {
    padding: 7px;
    font-size: 12px;
}

.employee-quote-upload input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 5px;
    color: var(--ink-800);
    background: var(--ink-100);
    font: inherit;
    font-weight: 700;
}

.employee-action-steps {
    display: grid;
    margin: 17px 0;
    padding: 14px 0;
    border-top: 1px solid var(--ink-100);
    border-bottom: 1px solid var(--ink-100);
}

.employee-action-steps li {
    position: relative;
    display: grid;
    min-height: 47px;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.employee-action-steps li:not(:last-child)::after {
    position: absolute;
    top: 34px;
    bottom: -12px;
    left: 11px;
    width: 1px;
    background: var(--ink-200);
    content: "";
}

.employee-action-steps li > span,
.employee-timeline li > span {
    position: relative;
    z-index: 1;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--ink-200);
    border-radius: 50%;
    color: var(--ink-500);
    background: var(--paper);
    font-size: 12px;
    font-weight: 780;
}

.employee-action-steps li.is-complete > span,
.employee-timeline li.is-complete > span {
    border-color: var(--green-600);
    color: var(--paper);
    background: var(--green-600);
}

.employee-action-steps strong,
.employee-action-steps small {
    display: block;
}

.employee-action-steps strong {
    color: var(--ink-800);
    font-size: 12px;
}

.employee-action-steps small {
    margin-top: 1px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-action-card > form + form,
.employee-action-card > .employee-button {
    margin-top: 9px;
}

.employee-sent-confirmation {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 11px;
    border-radius: 8px;
    color: var(--green-600);
    background: var(--green-100);
}

.employee-sent-confirmation > span {
    display: grid;
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    place-items: center;
    border-radius: 50%;
    color: var(--paper);
    background: var(--green-600);
    font-size: 14px;
}

.employee-sent-confirmation strong,
.employee-sent-confirmation small {
    display: block;
}

.employee-sent-confirmation strong {
    font-size: 12px;
}

.employee-sent-confirmation small {
    margin-top: 1px;
    font-size: 12px;
}

.employee-action-card__footnote {
    margin-top: 10px;
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.5;
    text-align: center;
}

.employee-timeline-card {
    padding: 19px 21px;
}

.employee-timeline {
    display: grid;
    margin-top: 15px;
}

.employee-timeline li {
    position: relative;
    display: grid;
    min-height: 53px;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
}

.employee-timeline li:not(:last-child)::after {
    position: absolute;
    top: 36px;
    bottom: -12px;
    left: 11px;
    width: 1px;
    background: var(--ink-200);
    content: "";
}

.employee-timeline strong,
.employee-timeline small {
    display: block;
}

.employee-timeline strong {
    color: var(--ink-800);
    font-size: 12px;
}

.employee-timeline small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

/* Employee portal responsive behavior */

@media (max-width: 1299px) {
    .employee-body {
        --employee-sidebar-width: 300px;
    }

    .employee-sidebar {
        padding-inline: 12px;
    }

    .employee-metric-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-metric {
        min-height: 104px;
    }

    .employee-review-layout {
        grid-template-columns: minmax(0, 1.5fr) minmax(350px, .68fr);
    }

    .employee-product-lines__head,
    .employee-product-line {
        grid-template-columns: minmax(150px, 1fr) 50px 80px 50px 85px;
    }
}

@media (max-width: 1099px) {
    .employee-dashboard-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-dashboard-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-review-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-review-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .employee-action-card {
        position: static;
    }

    .employee-list-toolbar {
        flex-wrap: wrap;
    }

    .employee-search {
        width: min(300px, 43vw);
    }
}

@media (max-width: 1099px) {
    .employee-sidebar {
        display: none;
    }

    .employee-frame {
        margin-left: 0;
    }

    .employee-mobile-header {
        position: sticky;
        z-index: 70;
        top: 0;
        display: flex;
        height: 72px;
        align-items: center;
        justify-content: space-between;
        padding: 0 max(17px, env(safe-area-inset-left));
        border-top: 3px solid var(--yellow-500);
        border-bottom: 1px solid var(--ink-150);
        background: rgba(255, 255, 255, .96);
        backdrop-filter: blur(14px);
    }

    .employee-mobile-header .brand {
        gap: 7px;
    }

    .employee-mobile-header .brand__mark,
    .employee-mobile-header .brand__mark svg {
        width: 28px;
        height: 28px;
        flex-basis: 28px;
    }

    .employee-mobile-header .brand__word {
        font-size: 22px;
    }

    .employee-mobile-header .employee-surface-label {
        margin-left: 3px;
        color: #8a620f;
        background: var(--yellow-100);
    }

    .employee-mobile-menu {
        position: relative;
    }

    .employee-mobile-menu > summary {
        display: grid;
        width: 40px;
        height: 40px;
        place-items: center;
        border: 1px solid var(--ink-150);
        border-radius: 9px;
        color: var(--ink-800);
        background: var(--ink-50);
        list-style: none;
    }

    .employee-mobile-menu > summary svg {
        width: 21px;
        height: 21px;
    }

    .employee-mobile-menu__panel {
        position: absolute;
        z-index: 90;
        top: calc(100% + 8px);
        right: 0;
        width: min(310px, calc(100vw - 30px));
        padding: 12px;
        border: 1px solid var(--ink-150);
        border-radius: 12px;
        background: var(--paper);
        box-shadow: var(--shadow-md);
    }

    .employee-mobile-menu__identity {
        display: flex;
        align-items: center;
        gap: 10px;
        padding-bottom: 12px;
        border-bottom: 1px solid var(--ink-100);
    }

    .employee-mobile-menu__identity > span:last-child {
        min-width: 0;
    }

    .employee-mobile-menu__identity strong,
    .employee-mobile-menu__identity small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .employee-mobile-menu__identity strong {
        color: var(--ink-900);
        font-size: 14px;
    }

    .employee-mobile-menu__identity small {
        margin-top: 1px;
        color: var(--ink-500);
        font-size: 12px;
    }

    .employee-mobile-menu nav {
        display: grid;
        gap: 2px;
        padding-block: 9px;
    }

    .employee-mobile-menu nav a {
        padding: 9px 10px;
        border-radius: 7px;
        color: var(--ink-700);
        font-size: 14px;
        font-weight: 650;
    }

    .employee-mobile-menu nav a:hover {
        color: var(--ink-900);
        background: var(--ink-50);
    }

    .employee-mobile-menu__utility {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 10px 8px 0;
        border-top: 1px solid var(--ink-100);
    }

    .employee-mobile-menu__utility button {
        border: 0;
        color: var(--red-600);
        background: transparent;
        font-size: 13px;
        font-weight: 680;
    }

    .employee-bottom-nav {
        position: fixed;
        z-index: 65;
        right: 0;
        bottom: 0;
        left: 0;
        display: grid;
        height: calc(72px + env(safe-area-inset-bottom));
        grid-template-columns: repeat(4, 1fr);
        padding: 5px max(12px, env(safe-area-inset-right)) env(safe-area-inset-bottom) max(12px, env(safe-area-inset-left));
        border-top: 1px solid var(--ink-150);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -9px 26px rgba(16, 28, 23, .06);
        backdrop-filter: blur(14px);
    }

    .employee-bottom-nav > a {
        position: relative;
        display: flex;
        min-height: 61px;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 2px;
        color: var(--ink-500);
        font-size: 12px;
        font-weight: 680;
    }

    .employee-bottom-nav svg {
        width: 21px;
        height: 21px;
    }

    .employee-bottom-nav > a.is-active {
        color: var(--green-600);
    }

    .employee-bottom-nav b {
        position: absolute;
        top: 2px;
        left: calc(50% + 7px);
        min-width: 17px;
        height: 17px;
        border: 2px solid var(--paper);
        font-size: 11px;
    }

    .employee-main {
        padding: 31px clamp(19px, 4vw, 40px) 110px;
    }

    .employee-body .flash-stack {
        top: 76px;
    }

    .employee-form-actions {
        bottom: 81px;
    }
}

@media (max-width: 899px) {
    .employee-page-header,
    .employee-review-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }

    .employee-page-header h1,
    .employee-review-header h1 {
        font-size: 36px;
    }

    .employee-header-date {
        justify-items: start;
        padding-left: 0;
        border-left: 0;
    }

    .employee-page-header--action > .employee-button {
        width: 100%;
    }

    .employee-metric-grid {
        gap: 9px;
        margin-top: 23px;
    }

    .employee-metric {
        min-height: 129px;
        grid-template-columns: 34px minmax(0, 1fr);
        padding: 14px;
    }

    .employee-metric__icon {
        width: 34px;
        height: 34px;
    }

    .employee-metric > a {
        position: absolute;
        top: 13px;
        right: 13px;
    }

    .employee-dashboard-grid {
        margin-top: 27px;
    }

    .employee-queue-panel,
    .employee-quick-actions,
    .employee-activity-card {
        padding: 16px;
    }

    .employee-queue-row {
        grid-template-columns: 4px minmax(0, 1fr) auto;
    }

    .employee-queue-row__date,
    .employee-queue-row__arrow {
        display: none;
    }

    .employee-dashboard-rail,
    .employee-review-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-list-panel__toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 9px;
    }

    .employee-list-toolbar {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .employee-search {
        width: 100%;
        grid-column: 1 / -1;
    }

    .employee-filter select {
        min-width: 0;
    }

    .employee-clear-filter {
        align-self: center;
        text-align: center;
    }

    .employee-result-count {
        align-self: flex-end;
    }

    .employee-data-table thead,
    .employee-quotation-table thead {
        display: none;
    }

    .employee-data-table,
    .employee-data-table tbody,
    .employee-data-table tr,
    .employee-data-table td,
    .employee-quotation-table,
    .employee-quotation-table tbody,
    .employee-quotation-table tr,
    .employee-quotation-table td {
        display: block;
        width: 100% !important;
        min-width: 0;
    }

    .employee-data-table tbody,
    .employee-quotation-table tbody {
        display: grid;
        gap: 10px;
        padding: 11px;
        background: var(--ink-50);
    }

    .employee-data-table tr,
    .employee-quotation-table tr {
        position: relative;
        overflow: hidden;
        border: 1px solid var(--ink-150);
        border-radius: 10px;
        background: var(--paper);
    }

    .employee-data-table td,
    .employee-quotation-table td {
        min-height: 43px;
        padding: 9px 13px 9px 42%;
        border-top: 1px solid var(--ink-100);
        text-align: right;
    }

    .employee-data-table td::before,
    .employee-quotation-table td::before {
        position: absolute;
        left: 13px;
        width: calc(40% - 18px);
        color: var(--ink-500);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 800;
        letter-spacing: .04em;
        text-align: left;
        text-transform: uppercase;
    }

    .employee-data-table td:first-child,
    .employee-quotation-table td:first-child {
        min-height: 62px;
        padding: 13px 48px 13px 13px;
        border-top: 0;
        text-align: left;
    }

    .employee-data-table td:first-child::before,
    .employee-quotation-table td:first-child::before,
    .employee-data-table td:last-child::before,
    .employee-quotation-table td:last-child::before {
        display: none;
    }

    .employee-data-table td small,
    .employee-quotation-table td > small {
        white-space: normal;
    }

    .employee-data-table td:last-child,
    .employee-quotation-table td:last-child {
        position: absolute;
        top: 14px;
        right: 11px;
        width: 32px !important;
        min-height: 32px;
        padding: 0;
        border: 0;
    }

    .employee-form-section {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
        padding: 20px;
    }

    .employee-form-section__intro p {
        max-width: none;
    }

    .employee-inbox-summary {
        grid-template-columns: repeat(5, minmax(118px, 1fr));
        overflow-x: auto;
        scroll-snap-type: x proximity;
    }

    .employee-inbox-summary a {
        scroll-snap-align: start;
    }

    .employee-review-header {
        align-items: stretch;
    }

    .employee-review-header > .employee-status {
        width: fit-content;
    }

    .employee-review-card,
    .employee-action-card,
    .employee-timeline-card {
        padding: 17px;
    }

    .employee-facts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .employee-product-lines {
        border: 0;
        border-radius: 0;
    }

    .employee-product-lines__head {
        display: none;
    }

    .employee-product-line {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px 15px;
        margin-top: 8px;
        padding: 12px;
        border: 1px solid var(--ink-150);
        border-radius: 8px;
    }

    .employee-product-line > span:first-child {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--ink-100);
    }

    .employee-product-line > span:not(:first-child) {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
        text-align: right;
    }

    .employee-product-line > span:not(:first-child)::before {
        color: var(--ink-500);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 700;
        text-transform: uppercase;
    }

    .employee-media-grid {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 520px) {
    .employee-main {
        padding: 25px 14px 105px;
    }

    .employee-mobile-header {
        padding-inline: 13px;
    }

    .employee-mobile-header .employee-surface-label {
        display: none;
    }

    .employee-page-header h1,
    .employee-review-header h1 {
        font-size: 34px;
    }

    .employee-page-header > div:first-child > p:last-child {
        font-size: 16px;
    }

    .employee-metric > div > strong {
        font-size: 30px;
    }

    .employee-metric > div > span {
        font-size: 13px;
    }

    .employee-panel__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }

    .employee-quick-actions__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-quick-actions__grid a {
        display: grid;
        min-height: 66px;
        grid-template-columns: 32px minmax(0, 1fr);
        grid-template-rows: auto auto;
        align-items: center;
        column-gap: 10px;
    }

    .employee-quick-actions__grid a > span {
        grid-row: 1 / -1;
    }

    .employee-quick-actions__grid strong {
        margin-top: 0;
        align-self: end;
    }

    .employee-quick-actions__grid small {
        align-self: start;
    }

    .employee-list-toolbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-search {
        grid-column: auto;
    }

    .employee-list-toolbar .employee-button {
        width: 100%;
    }

    .employee-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .employee-form-grid,
    .employee-facts,
    .employee-answer-list {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-form-section {
        padding: 17px 14px;
    }

    .employee-form-actions {
        bottom: 78px;
    }

    .employee-form-actions .employee-button {
        min-width: 0;
        flex: 1;
        padding-inline: 9px;
    }

    .employee-inbox-indicator {
        width: 100%;
    }

    .employee-review-header__title {
        align-items: flex-start;
    }

    .employee-review-header__mark {
        width: 42px;
        height: 42px;
        flex-basis: 42px;
    }

    .employee-review-card__header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .employee-pricing-breakdown {
        width: 100%;
    }
}

/* Employee quotation upload */

.employee-upload-page {
    max-width: 1060px;
    margin-inline: auto;
}

.employee-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(260px, .6fr);
    align-items: start;
    gap: 16px;
    margin-top: 26px;
}

.employee-upload-layout .employee-form {
    margin-top: 0;
}

.employee-upload-layout .employee-form-section {
    grid-template-columns: minmax(160px, .38fr) minmax(0, 1fr);
}

.employee-upload-dropzone {
    display: grid;
}

.employee-upload-dropzone > label {
    display: grid;
    min-height: 205px;
    place-items: center;
    align-content: center;
    padding: 25px;
    border: 1px dashed var(--ink-300);
    border-radius: 10px;
    background: var(--ink-50);
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease;
}

.employee-upload-dropzone > label:hover,
.employee-upload-dropzone > label:focus-within {
    border-color: var(--green-600);
    background: #f4faf7;
}

.employee-upload-dropzone__icon {
    display: grid;
    width: 45px;
    height: 54px;
    place-items: center;
    border-radius: 5px 10px 5px 5px;
    color: var(--paper);
    background: var(--red-600);
    font-size: 12px;
    font-weight: 850;
    box-shadow: var(--shadow-sm);
}

.employee-upload-dropzone strong {
    margin-top: 12px;
    color: var(--ink-900);
    font-size: 16px;
}

.employee-upload-dropzone small {
    margin-top: 3px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-upload-dropzone input[type="file"] {
    width: min(300px, 100%);
    margin-top: 15px;
    padding: 7px;
    border: 1px solid var(--ink-200);
    border-radius: 7px;
    color: var(--ink-600);
    background: var(--paper);
    font-size: 12px;
}

.employee-upload-dropzone input[type="file"]::file-selector-button {
    margin-right: 8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 5px;
    color: var(--ink-800);
    background: var(--ink-100);
    font: inherit;
    font-weight: 700;
}

.employee-upload-summary {
    padding: 20px;
    border: 1px solid var(--ink-150);
    border-top: 3px solid var(--yellow-500);
    border-radius: 12px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.employee-upload-summary h2 {
    overflow: hidden;
    color: #132019;
    font-size: 21px;
    font-weight: 780;
    letter-spacing: -.02em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-upload-summary dl {
    display: grid;
    margin-top: 16px;
}

.employee-upload-summary dl > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px solid var(--ink-100);
}

.employee-upload-summary dt {
    color: var(--ink-500);
    font-size: 12px;
}

.employee-upload-summary dd {
    color: var(--ink-900);
    font-size: 13px;
    font-weight: 720;
    text-align: right;
}

.employee-upload-summary__note {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-top: 15px;
    padding: 10px;
    border-radius: 8px;
    color: var(--ink-600);
    background: var(--ink-50);
    font-size: 12px;
    line-height: 1.45;
}

.employee-upload-summary__note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

@media (max-width: 799px) {
    .employee-upload-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-upload-summary {
        grid-row: 1;
    }
}

@media (max-width: 599px) {
    .employee-upload-layout .employee-form-section {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Employee configuration and guarded form utilities */

.employee-config-groups {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 14px;
    margin-top: 27px;
}

.employee-config-group {
    padding: 20px;
}

.employee-config-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 16px;
}

.employee-config-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--ink-150);
    border-radius: 9px;
    background: var(--ink-50);
}

.employee-config-card > a:first-child {
    display: grid;
    min-height: 82px;
    grid-template-columns: 30px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
    padding: 11px;
    transition: background .15s ease;
}

.employee-config-card > a:first-child:hover {
    background: var(--paper);
}

.employee-config-card__count {
    display: grid;
    width: 29px;
    height: 29px;
    place-items: center;
    border-radius: 7px;
    color: #132019;
    background: var(--yellow-100);
    font-size: 12px;
    font-weight: 830;
}

.employee-config-card strong,
.employee-config-card small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.employee-config-card strong {
    color: var(--ink-900);
    font-size: 13px;
}

.employee-config-card small {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
}

.employee-config-card > a:first-child > span:last-child {
    color: var(--ink-400);
}

.employee-config-card__add {
    display: block;
    padding: 8px 11px;
    border-top: 1px solid var(--ink-150);
    color: var(--green-600);
    background: var(--paper);
    font-size: 12px;
    font-weight: 710;
}

.employee-config-card__add:hover {
    color: #132019;
    background: var(--yellow-100);
}

.employee-kvk-assist,
.employee-danger-zone {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 13px;
    padding: 16px 18px;
    border: 1px solid var(--ink-150);
    border-radius: 10px;
    background: var(--paper);
    box-shadow: var(--shadow-xs);
}

.employee-kvk-assist > div,
.employee-danger-zone > div {
    min-width: 0;
    flex: 1;
}

.employee-kvk-assist strong,
.employee-danger-zone strong {
    color: var(--ink-900);
    font-size: 14px;
}

.employee-kvk-assist p,
.employee-danger-zone p {
    margin-top: 2px;
    color: var(--ink-500);
    font-size: 12px;
    line-height: 1.5;
}

.employee-kvk-assist {
    position: relative;
    border-left: 3px solid var(--yellow-500);
    background: linear-gradient(105deg, #fffdf5, var(--paper));
}

.employee-kvk-assist__status {
    position: absolute;
    right: 18px;
    bottom: 2px;
    color: var(--green-600) !important;
    font-weight: 650;
}

.employee-danger-zone {
    margin-top: 24px;
    border-color: #f0cfcc;
    background: #fffafa;
}

.employee-danger-zone strong {
    color: var(--red-600);
}

.employee-button--danger {
    border-color: #e8b9b6;
    color: var(--red-600);
    background: var(--paper);
}

.employee-button--danger:hover {
    border-color: var(--red-600);
    color: var(--paper);
    background: var(--red-600);
}

@media (max-width: 1099px) {
    .employee-config-groups {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 620px) {
    .employee-config-group {
        padding: 16px;
    }

    .employee-config-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .employee-kvk-assist,
    .employee-danger-zone {
        align-items: stretch;
        flex-direction: column;
    }

    .employee-kvk-assist .employee-button,
    .employee-danger-zone .employee-button {
        width: 100%;
    }

    .employee-kvk-assist__status {
        position: static;
    }
}
