* {
    box-sizing: border-box;
}

body {
    margin: 0;
}

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

button,input,select {
    font: inherit;
}

button,a,input,select,summary {
    outline-offset: 4px;
}

button {
    cursor: pointer;
}

svg {
    width: 20px;
    height: 20px;
    stroke-width: 1.7;
    flex-shrink: 0;
}

h1 {
    font-size: 32px;
    letter-spacing: -1.2px;
    margin: 0 0 12px;
    font-weight: 650;
}

h2 {
    font-size: 18px;
    margin: 0 0 12px;
    letter-spacing: -.4px;
}

h3 {
    font-size: 15px;
    margin: 12px 0 8px;
}

p {
    line-height: 1.65;
}

small {
    font-size: 12px;
}

.muted,.intro {
    color: var(--muted);
}

.intro {
    margin: 0 0 28px;
    font-size: 15px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 1.8px;
    color: var(--green);
    font-weight: 750;
    margin: 0 0 14px;
}

.sidebar {
    position: fixed;
    width: 254px;
    inset: 0 auto 0 0;
    background: #fff;
    border-right: 1px solid var(--line);
    padding: 28px 20px;
    display: flex;
    flex-direction: column;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    font-weight: 700;
    font-size: 15px;
}

.brand small {
    display: block;
    color: #72878c;
    font-size: 9px;
    letter-spacing: 1.8px;
    margin-top: 6px;
}

.brand-icon {
    display: inline-flex;
    background: var(--green);
    color: white;
    padding: 11px;
    border-radius: 12px;
}

.brand-icon svg {
    width: 25px;
    height: 25px;
}

.workspace {
    margin: 38px 0 30px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f7f9fa;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
}

.workspace small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
    font-weight: 400;
}

.nav-label {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #8b999d;
    padding: 0 12px;
    margin-bottom: 12px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 12px;
    margin: 4px 0;
    border-radius: 8px;
    color: #586d73;
    font-size: 12px;
    font-weight: 550;
}

.nav-item:hover {
    background: #f3f7f6;
}

.sidebar-note {
    margin-top: auto;
    background: #f8faf9;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 16px;
    font-size: 12px;
}

.sidebar-note svg {
    color: var(--green);
    display: block;
    margin-bottom: 12px;
}

.sidebar-note p {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 0;
}

.account {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
}

.account small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
    font-size: 10px;
}

.account form {
    margin-left: auto;
}

.main {
    margin-left: 254px;
}

.topbar {
    height: 72px;
    background: #ffffffc9;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 38px;
    font-size: 12px;
    color: #53686e;
}

.topbar .muted {
    margin: 0 14px;
}

.local-badge {
    display: flex;
    gap: 7px;
    align-items: center;
    font-size: 11px;
}

.local-badge span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #35a786;
}

.page {
    padding: 38px;
    max-width: 1700px;
    margin: auto;
}

.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 6px;
}

.icon-button {
    background: transparent;
    border: 0;
    color: #60777d;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    border-radius: 6px;
}

.icon-button:hover {
    background: #eaf1ef;
}

.count {
    display: inline-flex;
    align-items: center;
    vertical-align: middle;
    background: #e8eeef;
    font-size: 13px;
    letter-spacing: 0;
    padding: 5px 9px;
    border-radius: 7px;
    margin-left: 8px;
}

.hero h2 {
    font-size: 30px;
    margin: 24px 0 12px;
}

.pill {
    background: white;
    color: var(--green);
    padding: 7px 11px;
    border-radius: 30px;
    font-size: 10px;
    font-weight: 650;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.card,.panel {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 3px 10px #173b3b03;
}

.card {
    padding: 24px;
}

.card p {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 0;
}

.team-grid {
    display: grid;
    grid-template-columns: minmax(0,1fr) 260px;
    gap: 22px;
    align-items: start;
}

.panel-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}

.panel-toolbar h2 {
    font-size: 14px;
    margin: 0;
}

.search {
    display: flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding-left: 10px;
    max-width: 290px;
    gap: 6px;
}

.search svg {
    width: 16px;
    color: #73878e;
}

.search input {
    border: 0;
    width: 100%;
    min-width: 60px;
    padding: 9px 3px;
    font-size: 11px;
}

.table-scroll {
    overflow: auto;
}

table {
    border-collapse: collapse;
    width: 100%;
    text-align: left;
}

th {
    font-size: 10px;
    font-weight: 600;
    color: #7a8a8f;
    background: #fbfcfd;
    padding: 14px 18px;
}

td {
    padding: 19px 18px;
    border-top: 1px solid #edf1f3;
    font-size: 12px;
}

.person {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 160px;
}

.person small {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}

.tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag,.role-tag {
    padding: 5px 8px;
    border-radius: 5px;
    background: #f1f4f6;
    color: #596c73;
    font-size: 10px;
    white-space: nowrap;
}

.role-tag {
    background: #eef3fb;
    color: #506a93;
}

.badge {
    font-size: 10px;
    border-radius: 30px;
    padding: 5px 9px;
    white-space: nowrap;
}

.badge.active {
    background: #e8f5ed;
    color: #23804b;
}

.badge.inactive {
    background: #f2eeee;
    color: #856467;
}

.department-panel {
    padding: 22px;
}

.department-panel h2 {
    margin-top: 16px;
}

.department-panel p {
    font-size: 12px;
}

.department-list {
    margin: 22px 0;
}

.department-list>div {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    font-size: 12px;
}

.department-list svg {
    width: 16px;
    color: #84979c;
}

.stack {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

label {
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12px;
    font-weight: 550;
}

input,select {
    border: 1px solid #dce3e6;
    border-radius: 7px;
    background: #fff;
    color: #20363c;
    padding: 11px 12px;
    min-width: 0;
}

fieldset {
    border: 0;
    padding: 0;
    margin: 0;
}

legend {
    font-size: 12px;
    font-weight: 650;
    margin-bottom: 12px;
}

.checks {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 9px;
}

.checks label {
    flex-direction: row;
    align-items: center;
    background: #f8fafb;
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 10px;
    font-size: 11px;
    font-weight: 400;
}

.checks input {
    accent-color: var(--green);
}

dialog {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 0;
    width: min(640px,94vw);
    max-height: 90vh;
    box-shadow: 0 24px 100px #102f3940;
}

dialog::backdrop {
    background: #142f3c66;
    backdrop-filter: blur(3px);
}

.dialog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    border-bottom: 1px solid var(--line);
}

.dialog-header h2 {
    margin: 0;
}

.dialog-header .eyebrow {
    margin-bottom: 8px;
}

.dialog-body {
    padding: 24px;
}

.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    background: #fafcfc;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.footnote {
    font-size: 11px;
    color: var(--muted);
    line-height: 1.7;
    display: flex;
    gap: 8px;
    align-items: center;
}

.footnote svg {
    width: 16px;
}

.pagination {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    font-size: 11px;
    color: var(--muted);
}

.notice {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 12px;
}

.success {
    background: #edf8f1;
    border-color: #cce8d5;
    color: #225a39;
}

.error {
    background: #fff3f1;
    border-color: #f1d4cf;
    color: #943b32;
}

.error ul {
    padding-left: 18px;
    margin-bottom: 0;
}

.login-card .brand-icon {
    margin-bottom: 28px;
}

.login-card h1 {
    font-size: 29px;
}

.login-card .footnote {
    margin-top: 24px;
}

.event {
    display: flex;
    gap: 16px;
    padding: 22px;
    border-bottom: 1px solid var(--line);
}

.event h3 {
    margin: 0;
}

.event p {
    margin: 7px 0;
    font-size: 12px;
}

.event details {
    font-size: 12px;
}

.event summary {
    cursor: pointer;
    color: var(--green);
}

pre {
    font-size: 11px;
    white-space: pre-wrap;
    word-break: break-word;
    background: #f4f7f8;
    border-radius: 8px;
    padding: 14px;
}

.empty {
    text-align: center;
    padding: 45px;
    color: var(--muted);
}

.empty svg {
    width: 35px;
    height: 35px;
}

.sr-only,.skip:not(:focus) {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}

.skip:focus {
    position: fixed;
    z-index: 100;
    background: white;
    padding: 15px;
}

:root {
    font-family: Inter,"Segoe UI",sans-serif;
    color: var(--color-text);
    background: var(--color-surface-soft);
    font-size: 14px;
    --green: var(--color-brand);
    --line: var(--color-border);
    --muted: var(--color-muted);
    --color-brand: #17639F;
    --color-brand-hover: #124D7C;
    --color-surface-soft: #F3F8FC;
    --color-text: #0A1D2E;
    --color-muted: #5E6C78;
    --color-border: #D8E2EA;
}

.work-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.work-filters input {
    min-width: 160px;
}

.work-subline {
    display: block;
    margin-top: 5px;
}

.work-description {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.detail-label {
    margin-top: 24px;
}

textarea {
    font: inherit;
    color: var(--color-text);
    border: 1px solid var(--line);
    border-radius: 7px;
    padding: 12px;
    resize: vertical;
    min-height: 100px;
}

textarea:focus {
    outline: 2px solid var(--color-brand);
    outline-offset: 2px;
}

.work-journey {
    margin-bottom: 24px;
    overflow: hidden;
}

.journey-header {
    background: var(--color-brand);
    color: #fff;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.journey-header .eyebrow {
    color: #fff;
    display: block;
    margin-bottom: 10px;
}

.journey-header h2 {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    font-size: 23px;
}

.journey-header strong {
    display: block;
    margin-top: 8px;
}

.journey-header>div:last-child {
    text-align: right;
}

.journey-steps {
    display: grid;
    grid-template-columns: repeat(7,minmax(130px,1fr));
    list-style: none;
    overflow: auto;
    padding: 28px 24px 20px;
    margin: 0;
}

.journey-steps li {
    position: relative;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
    padding: 0 8px;
    gap: 10px;
}

.journey-steps li:before {
    content: "";
    position: absolute;
    top: 19px;
    height: 2px;
    background: var(--color-border);
    left: 0;
    right: 0;
}

.journey-steps li:first-child:before {
    left: 50%;
}

.journey-steps li:last-child:before {
    right: 50%;
}

.step-number {
    position: relative;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    font-weight: 600;
    color: var(--muted);
}

.current .step-number {
    color: #fff;
    background: var(--color-brand);
    border-color: var(--color-brand);
    box-shadow: 0 0 0 5px #F3F8FC;
}

.journey-steps strong {
    font-size: 12px;
    line-height: 1.5;
    max-width: 130px;
}

.journey-steps small {
    font-size: 10px;
    color: var(--muted);
}

.journey-steps .current strong {
    color: var(--color-brand);
}

.journey-note {
    display: flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 18px 24px;
    border-top: 1px solid var(--line);
    font-size: 11px;
    color: var(--muted);
    background: #F3F8FC;
}

.dashboard-metrics {
    display: grid;
    grid-template-columns: repeat(4,minmax(0,1fr));
    gap: 16px;
}

.metric-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    font-size: 13px;
}

.metric-card:hover {
    border-color: var(--color-brand);
}

.metric-card:focus-visible,.attention-row:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

.metric-number {
    font-size: 32px;
    color: var(--color-text);
    line-height: 1;
}

.metric-card small {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-brand);
    margin-top: auto;
}

.metric-card small svg {
    width: 16px;
}

.dashboard-attention {
    margin: 24px 0 30px;
    overflow: hidden;
}

.dashboard-attention .panel-toolbar p {
    font-size: 12px;
    margin: 8px 0 0;
}

.attention-row {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 16px 22px;
    border-bottom: 1px solid var(--line);
    font-size: 13px;
}

.attention-row:hover {
    background: var(--color-surface-soft);
}

.attention-row>span:nth-child(2) {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.attention-row small {
    display: block;
    color: var(--muted);
    margin-top: 6px;
    line-height: 1.6;
}

.attention-empty,.attention-note {
    padding: 16px 22px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.attention-note {
    background: var(--color-surface-soft);
    font-size: 11px;
}

@media(max-width:1150px){.dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

@media(max-width:450px){.dashboard-metrics{grid-template-columns:1fr}}

.home-dashboard .metric-card {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding: 20px 22px;
    align-items: center;
}

.home-dashboard .metric-card .feature-icon {
    grid-column: 2;
    grid-row: 1;
    padding: 10px;
}

.home-dashboard .metric-number {
    grid-column: 1;
    grid-row: 1;
    font-size: 30px;
}

.home-dashboard .metric-label {
    grid-column: 1/-1;
    min-height: 36px;
    line-height: 1.5;
}

.home-dashboard .metric-card small {
    grid-column: 1/-1;
    font-size: 11px;
}

.home-dashboard .metric-pending {
    border-color: #E5D4AE;
}

.home-dashboard .metric-pending .feature-icon {
    background: #FFF6E6;
    color: #8A570B;
}

.dashboard-help {
    margin: 12px 0 22px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.dashboard-help summary {
    cursor: pointer;
    width: fit-content;
}

.dashboard-help summary:focus-visible {
    outline: 2px solid var(--color-brand);
}

.dashboard-help p {
    max-width: 950px;
    margin: 10px 0;
}

.home-dashboard .dashboard-attention {
    margin: 0 0 28px;
}

.home-dashboard .dashboard-attention .panel-toolbar {
    padding: 18px 22px;
}

.attention-counter {
    font-size: 11px;
    color: var(--muted);
    white-space: nowrap;
}

.dashboard-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 16px;
}

.dashboard-section-heading h2 {
    font-size: 18px;
    margin: 0;
}

.dashboard-section-heading span {
    font-size: 12px;
    color: var(--muted);
}

.module-card.module-card--compact {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 16px;
    padding: 22px;
}

.module-card.module-card--compact .feature-icon {
    padding: 10px;
    margin: 0;
}

.module-card.module-card--compact .feature-icon svg {
    width: 22px;
    height: 22px;
}

.module-card.module-card--compact h2 {
    font-size: 17px;
    margin: 0;
    align-self: center;
}

.module-card.module-card--compact p {
    grid-column: 1/-1;
    font-size: 13px;
    margin: 0;
    min-height: 44px;
}

.module-card.module-card--compact .button {
    grid-column: 1/-1;
    justify-self: start;
    padding: 9px 14px;
    min-height: 38px;
}

.module-grid.module-grid--compact {
    gap: 18px;
}

@media(max-width:600px){.dashboard-section-heading{align-items:flex-start;flex-direction:column}.attention-counter{white-space:normal}.module-card.module-card--compact p{min-height:0}.home-dashboard .dashboard-attention .panel-toolbar{gap:8px}}

.module-list-page .page-heading {
    align-items: center;
    margin-bottom: 24px;
}

.module-list-page .eyebrow {
    margin-bottom: 10px;
}

.module-list-page h1 {
    font-size: 29px;
    margin-bottom: 8px;
}

.module-list-page .intro {
    font-size: 14px;
    margin: 0;
}

.module-list-page .count {
    font-size: 12px;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--muted);
    padding: 4px 9px;
}

.module-list-page .button {
    padding: 9px 14px;
    min-height: 40px;
}

.module-list-page .list-context {
    font-size: 12px;
    color: var(--muted);
    margin: -10px 0 18px;
}

.module-list-page .panel {
    overflow: hidden;
}

.module-list-page .panel-toolbar {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 14px;
}

.module-list-page .panel-toolbar h2 {
    font-size: 14px;
}

.module-list-page .search {
    max-width: none;
    width: 330px;
    min-height: 40px;
    background: #fff;
    gap: 8px;
    padding-left: 12px;
}

.module-list-page .search input {
    font-size: 12px;
    padding: 10px 0;
}

.module-list-page .search .icon-button {
    min-width: 36px;
    min-height: 36px;
    justify-content: center;
}

.module-list-page .work-filters {
    align-items: center;
    gap: 8px;
}

.module-list-page .work-filters input,.module-list-page .work-filters select {
    font-size: 12px;
    min-height: 40px;
    padding: 9px 12px;
}

.module-list-page th {
    font-size: 11px;
    background: var(--color-surface-soft);
    padding: 13px 16px;
    white-space: nowrap;
    color: var(--muted);
}

.module-list-page td {
    padding: 15px 16px;
    font-size: 12px;
    line-height: 1.5;
}

.module-list-page .person {
    gap: 10px;
    min-width: 190px;
    max-width: 340px;
}

.module-list-page .person strong {
    font-size: 13px;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.module-list-page .person small {
    font-size: 11px;
    line-height: 1.4;
}

.module-list-page .avatar {
    width: 34px;
    height: 34px;
    border-radius: 9px;
}

.module-list-page .avatar svg {
    width: 18px;
    height: 18px;
}

.module-list-page .numeric {
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

.module-list-page .amount {
    font-weight: 600;
}

.module-list-page .badge,.module-list-page .role-tag,.module-list-page .pill {
    display: inline-flex;
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 6px;
    line-height: 1.5;
    white-space: normal;
}

.module-list-page .pill {
    background: #F3F8FC;
    border: 1px solid var(--line);
}

.module-list-page .pagination {
    align-items: center;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
}

.module-list-page .pagination a {
    display: inline-flex;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 7px;
    margin-left: 6px;
}

.module-list-page .pagination a:hover {
    background: var(--color-surface-soft);
}

.module-list-page .empty {
    padding: 42px 20px;
}

.module-list-page .empty>svg {
    color: var(--color-brand);
    margin-bottom: 12px;
}

.module-list-page .empty h2 {
    font-size: 17px;
}

.module-list-page .footnote {
    margin-top: 16px;
}

.module-list-page .table-scroll:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: -2px;
}

.module-list-page .client-link:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
    border-radius: 4px;
}

@media(max-width:1000px){.module-list-page .panel-toolbar{align-items:flex-start;flex-direction:column}.module-list-page .search{width:100%}.module-list-page .work-filters{width:100%}.module-list-page .work-filters input{flex:1;min-width:160px}}

@media(max-width:760px){.module-list-page .page-heading{align-items:flex-start;gap:16px}.module-list-page h1{font-size:26px}.module-list-page .panel-toolbar{padding:14px}.module-list-page .pagination{flex-wrap:wrap;gap:10px;padding:14px}.module-list-page .work-filters input{width:100%;flex-basis:100%}.module-list-page .work-filters select{flex:1;min-width:0}}

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

.module-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    min-width: 0;
}

.module-card .feature-icon {
    padding: 13px;
    margin-bottom: 22px;
}

.module-card .feature-icon svg {
    width: 26px;
    height: 26px;
}

.module-card h2 {
    font-size: 20px;
    margin: 0 0 12px;
}

.module-card p {
    font-size: 14px;
    margin: 0 0 26px;
    line-height: 1.7;
}

.module-card .button {
    margin-top: auto;
}

.module-empty {
    grid-column: 1/-1;
}

.module-empty h2 {
    margin-top: 18px;
}

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

@media(max-width:600px){.module-grid{grid-template-columns:1fr;gap:16px}.module-card{padding:24px}}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-brand);
    font-size: 12px;
    margin-bottom: 24px;
}

.client-form {
    max-width: 960px;
}

.client-form h2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.section-divider {
    border: 0;
    border-top: 1px solid var(--line);
    width: 100%;
    margin: 8px 0;
}

.client-link:hover {
    color: var(--color-brand);
}

.client-owners .owner-name {
    font-size: 17px;
    color: var(--color-text);
    font-weight: 600;
    margin: 8px 0;
}

.client-details {
    padding: 24px;
    margin-bottom: 24px;
}

.client-details dt {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}

.client-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.client-owners p,td {
    overflow-wrap: anywhere;
}

.pagination a {
    color: var(--color-brand);
    margin-left: 14px;
}

.offer-lines {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.offer-line {
    border: 1px solid var(--line);
    padding: 16px;
    border-radius: 10px;
    background: #F3F8FC;
}

.offer-line legend {
    padding: 0 8px;
    margin: 0;
    color: var(--color-brand);
}

.offer-line-grid {
    display: grid;
    grid-template-columns: minmax(180px,3fr) .7fr 1fr 1fr .8fr auto;
    gap: 12px;
    align-items: end;
}

.offer-line-grid input {
    width: 100%;
}

.offer-actions {
    grid-template-columns: 1fr 1fr;
    margin-top: 24px;
}

.offer-actions .stack {
    margin-top: 18px;
}

.offer-totals {
    display: flex;
    justify-content: flex-end;
    padding: 24px;
    border-top: 1px solid var(--line);
}

.offer-totals dl {
    width: min(100%,380px);
    margin: 0;
}

.offer-totals dl>div {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 0;
}

.offer-totals dd {
    margin: 0;
    font-weight: 600;
}

.grand-total {
    border-top: 1px solid var(--line);
    color: var(--color-brand);
    font-size: 18px;
}

.offer-history {
    padding: 20px;
    border-top: 1px solid var(--line);
}

.offer-history summary {
    cursor: pointer;
    color: var(--color-brand);
    font-weight: 600;
}

.offer-history p {
    font-size: 12px;
}

.related-offers {
    margin-bottom: 24px;
}

.form-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

button:disabled {
    opacity: .5;
    cursor: not-allowed;
}

@media(max-width:900px){.offer-line-grid{grid-template-columns:1fr 1fr}.offer-line-grid label:first-child{grid-column:1/-1}.offer-actions{grid-template-columns:1fr}}

.brand-logo {
    display: block;
    width: 100%;
    max-width: 214px;
    height: auto;
    object-fit: contain;
}

.login-logo {
    display: block;
    width: 100%;
    max-width: 290px;
    height: auto;
    margin: 0 auto 28px;
}

.workspace,.sidebar-note,.checks label,.dialog-footer {
    background: #F3F8FC;
}

.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #F3F8FC;
    color: var(--color-brand);
    border: 1px solid #dfe8e4;
    font-weight: 650;
    border-radius: 10px;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-color: var(--color-border);
}

.nav-item:hover,.icon-button:hover {
    background: #F3F8FC;
}

.nav-item.selected {
    background: #F3F8FC;
    color: var(--color-brand);
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    padding: 12px 17px;
    font-size: 12px;
    font-weight: 650;
    border: 1px solid transparent;
    white-space: nowrap;
    min-height: 42px;
    transition: background-color 200ms cubic-bezier(.2,.8,.2,1),border-color 200ms cubic-bezier(.2,.8,.2,1),color 200ms cubic-bezier(.2,.8,.2,1),transform 120ms cubic-bezier(.2,.8,.2,1);
}

.primary {
    background: var(--color-brand);
    color: #fff;
    box-shadow: none;
}

.primary:hover {
    background: var(--color-brand-hover);
}

.secondary {
    background: #fff;
    border-color: var(--color-border);
    color: #0F172A;
}

.secondary:hover {
    border-color: var(--color-brand);
    color: var(--color-brand);
}

.button:active {
    transform: scale(.98);
}

.button:focus-visible,.icon-button:focus-visible,.nav-item:focus-visible {
    outline: 2px solid var(--color-brand);
    outline-offset: 3px;
}

@media(prefers-reduced-motion:reduce){.button{transition:none}.button:active{transform:none}}

.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #F3F8FC;
    border: 1px solid #dae8e1;
    border-radius: 15px;
    padding: 38px;
    margin-bottom: 24px;
    overflow: hidden;
    border-color: #dce9f3;
}

.hero p {
    max-width: 540px;
    color: #577286;
    margin-bottom: 24px;
}

.hero-art {
    width: 170px;
    height: 170px;
    background: #ffffff80;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: rotate(-9deg);
    border-radius: 40px;
    box-shadow: 20px 20px 0 #dcebf655;
    margin: 15px 30px;
}

.hero-art svg {
    width: 85px;
    height: 85px;
    color: var(--color-brand);
}

.feature-icon {
    display: inline-flex;
    background: #F3F8FC;
    color: var(--green);
    padding: 9px;
    border-radius: 9px;
}

input:focus,select:focus {
    outline: 2px solid #93c8b5;
    border-color: #5d9ecb;
    outline-color: #a1cbea;
}

.login-main {
    min-height: 100vh;
    display: grid;
    place-items: center;
    background: radial-gradient(at 10% 10%,#e3f0fa,transparent 55%),#F3F8FC;
}

.login-card {
    width: min(430px,90vw);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 70px #246a9b10;
}

tbody tr:hover {
    background: #F3F8FC;
}

@media(max-width:1250px){.team-grid{grid-template-columns:1fr}.department-list{display:flex;flex-wrap:wrap;gap:15px}.hero-art{display:none}.page{padding:28px}.sidebar{width:230px}.main{margin-left:230px}}

@media(max-width:760px){.sidebar{position:relative;width:auto;padding:18px}.sidebar .workspace,.nav-label,.sidebar-note{display:none}.sidebar nav{display:flex;overflow:auto;margin-top:14px}.nav-item{white-space:nowrap;font-size:11px}.account{margin-top:10px;padding-top:10px}.main{margin-left:0}.topbar{padding:0 20px;height:52px}.page{padding:22px 16px}.page-heading{align-items:flex-start;flex-direction:column;margin-bottom:20px}.page-heading .intro{margin-bottom:0}h1{font-size:27px}.cards{grid-template-columns:1fr}.hero{padding:25px}.hero h2{font-size:25px}.panel-toolbar{align-items:flex-start;flex-direction:column}.search{max-width:none;width:100%}.form-grid,.checks{grid-template-columns:1fr}.login-card{padding:28px}.local-badge{font-size:10px}.event{padding:16px}}

.badge.badge--nowrap {
    white-space: nowrap;
}

.document-preview {
    padding: 32px;
    margin-bottom: 24px;
}

.document-frame {
    display: block;
    width: 100%;
    height: 1000px;
    border: 0;
    background: #fff;
}

@media (max-width: 760px) {
    .document-preview { padding: 20px; }
}
