.mimar-wrap {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem 5rem;
}

.mimar-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.mimar-head h1 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.mimar-page p.mimar-sub {
    margin-top: 0.25rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.mimar-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mimar-page a.mimar-outline,
.mimar-page button.mimar-outline,
.mimar-page a.mimar-solid {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.mimar-page a.mimar-outline,
.mimar-page button.mimar-outline {
    border: 1px solid hsl(var(--line));
    background: white;
    color: hsl(var(--fg));
    font: inherit;
    cursor: pointer;
}

.mimar-page a.mimar-outline:hover,
.mimar-page button.mimar-outline:hover {
    background: hsl(var(--accent));
}

.mimar-page a.mimar-solid {
    border: 0;
    color: #fff;
    font-weight: 600;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
}

.mimar-page a.mimar-solid:hover {
    opacity: 0.92;
}

.mimar-cards {
    display: grid;
    gap: 1rem;
    margin-bottom: 2rem;
}

.mimar-card {
    display: block;
    height: 100%;
    padding: 1.25rem;
    background: white;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.mimar-card:hover {
    border-color: hsl(var(--p) / 0.5);
}

.mimar-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    margin-bottom: 0.75rem;
    border-radius: 0.75rem;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.mimar-card-icon .glyph {
    font-size: 1.25rem;
}

.mimar-card h3 {
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.mimar-card p {
    margin: 0.25rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.mimar-list {
    background: white;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.mimar-list-head {
    padding: 1.5rem 1.5rem 0;
}

.mimar-list-head h2 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.mimar-search {
    position: relative;
    margin-top: 0.5rem;
}

.mimar-search .glyph {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted));
    font-size: 1rem;
}

.mimar-search input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    padding-inline-start: 2.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    outline: none;
}

.mimar-search input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px hsl(var(--p));
}

.mimar-list-body {
    display: grid;
    gap: 0.75rem;
    padding: 1.5rem;
}

.mimar-page a.mimar-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    color: inherit;
}

.mimar-page a.mimar-row:hover {
    border-color: hsl(var(--p) / 0.5);
    background: hsl(var(--accent) / 0.4);
}

.mimar-row-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.mimar-row-text {
    flex: 1;
    min-width: 0;
}

.mimar-page p.mimar-title {
    overflow: hidden;
    font-size: 0.875rem;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mimar-page p.mimar-meta {
    color: hsl(var(--muted));
    font-size: 11px;
}

.mimar-badge {
    flex: none;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--accent));
    color: hsl(var(--fg));
    font-size: 10px;
    font-weight: 600;
}

.mimar-badge.is-accepted {
    background: hsl(var(--p));
    color: #fff;
}

.offers-wrap {
    max-width: 56rem;
}

.visits-wrap {
    max-width: 48rem;
}

.mimar-head h1.visits-title,
.mimar-list-head h2.visits-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.visits-title .glyph {
    color: hsl(var(--p));
    font-size: 1.25rem;
}

.visits-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.mimar-page p.visits-when {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.visits-when .glyph {
    color: hsl(var(--p));
    font-size: 0.75rem;
}

.visits-side {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mimar-page a.visits-file {
    padding: 0.25rem 0.75rem;
    font-size: 11px;
}

.visits-lines {
    margin: 0.25rem 0 0;
    padding-inline-start: 1rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.mimar-page p.visits-empty {
    margin: 0;
    padding: 1.5rem 1rem;
    text-align: center;
}

.deliver-wrap {
    max-width: 56rem;
}

.deliver-project {
    overflow: hidden;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.mimar-page button.deliver-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    padding: 0.75rem;
    border: 0;
    background: white;
    color: inherit;
    text-align: start;
    cursor: pointer;
}

.mimar-page button.deliver-toggle:hover {
    background: hsl(var(--accent) / 0.4);
}

.deliver-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.deliver-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.deliver-toggle .glyph {
    flex: none;
    color: hsl(var(--p));
    font-size: 1rem;
    transition: transform 0.15s;
}

.deliver-toggle[aria-expanded="false"] .glyph {
    transform: rotate(-90deg);
}

[dir="rtl"] .deliver-toggle[aria-expanded="false"] .glyph {
    transform: rotate(90deg);
}

.deliver-panel {
    border-top: 1px solid hsl(var(--line));
}

.mimar-page a.deliver-file {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    color: inherit;
}

.mimar-page a.deliver-file + a.deliver-file {
    border-top: 1px solid hsl(var(--line));
}

.mimar-page a.deliver-file:hover {
    background: hsl(var(--accent) / 0.4);
}

.mimar-page [hidden] {
    display: none !important;
}

.mimar-empty {
    padding: 2.5rem 1rem;
    text-align: center;
}

.mimar-empty .glyph {
    margin: 0 auto 0.75rem;
    color: hsl(var(--muted));
    font-size: 2rem;
}

.mimar-page p.mimar-empty-text,
.mimar-page p.mimar-none {
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.mimar-page p.mimar-empty-text {
    margin-bottom: 1rem;
}

.mimar-page p.mimar-none {
    padding: 1rem 0;
    text-align: center;
}

.mimar-tabs {
    display: none;
}

@media (min-width: 768px) {
    .mimar-cards {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1024px) {
    .mimar-cards {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (max-width: 767px) {
    .mimar-tabs {
        display: block;
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 40;
        background: hsl(var(--bg) / 0.95);
        border-top: 1px solid hsl(var(--line));
        backdrop-filter: blur(8px);
    }

    .mimar-tabs ul {
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        margin: 0;
        padding: 0;
        list-style: none;
    }

    .mimar-tabs a {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.125rem;
        padding: 0.5rem 0.25rem;
        color: hsl(var(--muted));
        font-size: 10px;
    }

    .mimar-tabs a.is-active {
        color: hsl(var(--p));
        font-weight: 600;
    }

    .mimar-tabs .glyph {
        font-size: 1.25rem;
    }
}

.contracts-layout {
    display: grid;
    gap: 1.25rem;
    align-items: start;
}

.mimar-page a.contracts-pick {
    display: block;
    width: 100%;
    margin-bottom: 0.5rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    color: inherit;
    text-align: start;
}

.mimar-page a.contracts-pick:last-child {
    margin-bottom: 0;
}

.mimar-page a.contracts-pick:hover {
    background: hsl(var(--accent) / 0.4);
}

.mimar-page a.contracts-pick.is-on {
    border-color: hsl(var(--p));
    background: hsl(var(--p) / 0.05);
}

.contracts-picks {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.contracts-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.contracts-stat {
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.contracts-stat .glyph {
    color: hsl(var(--p));
    font-size: 1rem;
}

.mimar-page p.contracts-label {
    margin-top: 0.35rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.mimar-page p.contracts-value {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.contracts-meter {
    margin-top: 1rem;
}

.contracts-meter-top {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.contracts-bar {
    height: 0.5rem;
    overflow: hidden;
    border-radius: 999px;
    background: hsl(var(--accent));
}

.contracts-bar span {
    display: block;
    height: 100%;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
}

.contracts-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.contracts-select {
    min-width: 12rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
}

.mimar-page button.contracts-save {
    min-height: 2.25rem;
    padding: 0.35rem 0.85rem;
    border: 0;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.contracts-milestone,
.contracts-event {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid hsl(var(--line));
}

.contracts-milestone:last-child,
.contracts-event:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.contracts-event {
    padding: 0.5rem;
    border: 0;
    border-radius: 0.5rem;
    background: hsl(var(--accent) / 0.45);
}

.contracts-event + .contracts-event {
    margin-top: 0.5rem;
}

.mimar-page p.contracts-note {
    flex: 1;
    min-width: 8rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.contracts-stack {
    display: grid;
    gap: 1.25rem;
}

@media (min-width: 768px) {
    .contracts-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .contracts-layout {
        grid-template-columns: minmax(16rem, 1fr) minmax(0, 2fr);
    }
}

.finance-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.finance-stat {
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    text-align: center;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.mimar-page p.finance-figure {
    margin-top: 0.25rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.mimar-page p.finance-figure.is-primary {
    color: hsl(var(--p));
}

.finance-contract {
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.finance-contract-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.mimar-page a.finance-quiet {
    padding: 0.25rem 0.5rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.finance-audit {
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.mimar-head h2.visits-title {
    font-size: 1rem;
}

@media (min-width: 640px) {
    .finance-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.profile-stack {
    display: grid;
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.profile-grid,
.profile-grid-3,
.profile-slots {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.profile-slots {
    grid-template-columns: 1fr 1fr;
}

.mimar-page label.profile-field {
    display: grid;
    gap: 0.25rem;
    color: hsl(var(--fg));
    font-size: 0.75rem;
    font-weight: 500;
}

.mimar-page input.profile-input,
.mimar-page select.profile-input,
.mimar-page textarea.profile-input {
    width: 100%;
    min-height: 2.25rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.375rem;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 400;
    outline: none;
}

.mimar-page textarea.profile-input {
    min-height: 4.5rem;
    resize: vertical;
}

.mimar-page input.profile-input:focus,
.mimar-page select.profile-input:focus,
.mimar-page textarea.profile-input:focus {
    border-color: transparent;
    box-shadow: 0 0 0 2px hsl(var(--p));
}

.profile-check {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.875rem;
}

.profile-check input {
    width: 1rem;
    height: 1rem;
    accent-color: hsl(var(--p));
}

.mimar-page button.profile-save {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    min-height: 2.25rem;
    padding: 0.4rem 0.9rem;
    border: 0;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
    color: white;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.profile-offer,
.profile-slot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.profile-offer .mimar-row-text,
.profile-slot .mimar-row-text {
    flex: 1 1 11rem;
    min-width: 0;
}

.profile-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.profile-works {
    display: grid;
    gap: 0.75rem;
}

.profile-work {
    overflow: hidden;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.profile-work-body {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
}

.profile-add {
    padding: 1rem;
    border: 1px dashed hsl(var(--line));
    border-radius: 0.75rem;
}

.profile-add > p {
    margin-top: 1.25rem;
}

.profile-add-rule {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid hsl(var(--line));
}

.mimar-page button.profile-trash {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: 0;
    border-radius: 0.375rem;
    background: transparent;
    color: hsl(0 72% 51%);
    cursor: pointer;
}

.mimar-page button.profile-trash:hover {
    background: hsl(0 72% 51% / 0.08);
}

.profile-cover {
    margin-top: 0.25rem;
    overflow-wrap: anywhere;
    font-size: 11px;
}

@media (min-width: 640px) {
    .profile-grid-3,
    .profile-works {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-slots {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .profile-grid {
        grid-template-columns: 1fr 1fr;
    }

    .profile-span {
        grid-column: 1 / -1;
    }

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

    .profile-pair {
        grid-column: span 2;
    }

    .profile-wide {
        grid-column: 1 / -1;
    }
}

.portfolio-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.portfolio-stat {
    padding: 1.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}

.portfolio-label {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.mimar-page p.portfolio-value {
    margin: 0;
    color: hsl(var(--fg));
    font-size: 1.125rem;
    font-weight: 700;
}

.portfolio-search {
    position: relative;
    max-width: 28rem;
    margin-bottom: 1.5rem;
}

.portfolio-search .glyph {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.75rem;
    color: hsl(var(--muted));
    transform: translateY(-50%);
    pointer-events: none;
}

.mimar-page .portfolio-search input.profile-input {
    padding-inline-start: 2.25rem;
}

.portfolio-list {
    display: grid;
    gap: 1rem;
}

.portfolio-top,
.portfolio-side,
.portfolio-request {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.portfolio-top {
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.mimar-badge.is-outline {
    border: 1px solid hsl(var(--line));
    background: transparent;
}

.mimar-page a.portfolio-request {
    margin-top: 0.375rem;
    padding: 0.5rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.mimar-page a.portfolio-request:hover {
    background: hsl(var(--accent));
}

.portfolio-request .mimar-title {
    flex: 1 1 10rem;
}

@media (min-width: 1024px) {
    .portfolio-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.mimar-wrap.supervision-wrap {
    max-width: 64rem;
}

.supervision-offers {
    margin-top: 0.75rem;
    padding: 0.5rem;
    border-radius: 0.5rem;
    background: hsl(270 20% 96%);
}

.supervision-offer,
.supervision-contract {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.supervision-offer {
    font-size: 11px;
}

.supervision-contract {
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.supervision-when {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.mimar-wrap.quotes-wrap {
    max-width: 64rem;
}

.quote-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--p) / 0.2);
    border-radius: 0.75rem;
    background: hsl(var(--p) / 0.05);
    color: hsl(var(--fg));
    font-size: 0.75rem;
    line-height: 1.6;
}

.quote-banner .glyph {
    flex: none;
    margin-top: 0.15rem;
    color: hsl(var(--p));
}

.quote-list {
    display: grid;
    gap: 0.75rem;
}

.quote-card {
    overflow: hidden;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.quote-card summary {
    display: block;
    padding: 1rem;
    list-style: none;
    cursor: pointer;
}

.quote-card summary::-webkit-details-marker {
    display: none;
}

.quote-card summary:hover {
    background: hsl(var(--accent) / 0.3);
}

.quote-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.quote-id {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.quote-mark {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--accent));
    color: hsl(var(--p));
}

.quote-side {
    display: flex;
    flex: none;
    align-items: center;
    gap: 0.5rem;
}

.quote-card .quote-chevron {
    color: hsl(var(--muted));
    transition: transform 0.15s ease;
}

.quote-card[open] .quote-chevron {
    transform: rotate(180deg);
}

.quote-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
    margin-inline-start: 3.25rem;
}

.quote-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.125rem 0.5rem;
    border-radius: 9999px;
    background: hsl(var(--accent));
    color: hsl(var(--fg));
    font-size: 10px;
    font-weight: 500;
}

.quote-chip.is-money {
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.quote-chip.is-late {
    background: hsl(0 72% 51% / 0.1);
    color: hsl(0 72% 51%);
}

.quote-body {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border-top: 1px solid hsl(var(--line));
}

.quote-scope {
    padding: 0.75rem;
    border-radius: 0.75rem;
    background: hsl(var(--accent) / 0.5);
}

.quote-state {
    padding: 1rem;
    border-radius: 0.75rem;
    text-align: center;
}

.quote-state.is-sent {
    border: 1px solid hsl(142 70% 80%);
    background: hsl(142 70% 96%);
    color: hsl(142 70% 28%);
}

.quote-state.is-late {
    border: 1px solid hsl(0 72% 51% / 0.2);
    background: hsl(0 72% 51% / 0.05);
    color: hsl(0 72% 45%);
}

.quote-form {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border-radius: 0.75rem;
    background: hsl(var(--accent) / 0.3);
}

.mimar-page button.quote-send,
.mimar-page label.quote-send {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    min-height: 2.75rem;
    border: 0;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
    color: white;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
}

.quote-reply {
    position: relative;
}

.quote-reply-toggle {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.quote-reveal {
    display: none;
}

.quote-reply-toggle:checked ~ .quote-reveal {
    display: grid;
}

.quote-reply-toggle:checked ~ .quote-reply-open {
    display: none;
}

.quote-form-actions {
    display: flex;
    gap: 0.5rem;
}

.mimar-page .quote-form-actions button.quote-send {
    flex: 1;
    width: auto;
}

.mimar-page label.quote-cancel {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    padding: 0 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    color: hsl(var(--fg));
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.quote-scope p:last-child {
    white-space: pre-line;
}

.mq-table-wrap {
    overflow-x: auto;
}

.mq-table {
    width: 100%;
    min-width: 36rem;
    border-collapse: collapse;
    font-size: 0.75rem;
}

.mq-table th {
    padding: 0.5rem;
    border-bottom: 1px solid hsl(var(--line));
    color: hsl(var(--muted));
    font-weight: 600;
    text-align: start;
}

.mq-table td {
    padding: 0.6rem 0.5rem;
    border-bottom: 1px solid hsl(var(--line));
    vertical-align: middle;
}

.mq-table tr.is-low {
    background: hsl(142 70% 96%);
}

.mq-name {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 600;
}

.mq-name .glyph {
    color: hsl(38 92% 40%);
}

.mimar-badge.is-open,
.mimar-badge.is-accepted {
    background: hsl(142 70% 94%);
    color: hsl(142 70% 28%);
}

.mimar-badge.is-pending {
    background: hsl(38 92% 92%);
    color: hsl(32 90% 32%);
}

.mimar-badge.is-rejected {
    background: hsl(0 72% 95%);
    color: hsl(0 72% 40%);
}

.mimar-badge.is-awarded {
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.mimar-page button.mq-award {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 1.75rem;
    padding: 0.15rem 0.6rem;
    border: 0;
    border-radius: 0.5rem;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
    color: white;
    font: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
}

.mq-notes {
    display: grid;
    gap: 0.5rem;
}

.mq-note {
    padding: 0.6rem 0.75rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent) / 0.45);
}

.mq-range {
    color: hsl(var(--muted));
    font-size: 10px;
}

.quote-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 4rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: white;
    text-align: center;
}

.quote-empty .glyph {
    width: 3rem;
    height: 3rem;
    margin-bottom: 0.75rem;
    color: hsl(var(--muted) / 0.35);
}

.quote-results {
    margin-top: 1.5rem;
}

.worker-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.worker-stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.worker-stat .glyph {
    font-size: 1.25rem;
}

.worker-stat .is-ready { color: hsl(142 70% 32%); }
.worker-stat .is-assigned { color: hsl(217 90% 45%); }
.worker-stat .is-live { color: hsl(38 92% 40%); }
.worker-stat .is-total { color: hsl(var(--p)); }

.mimar-page p.worker-count {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
}

.workers-board > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.worker-tabbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent));
}

.worker-tabbar label {
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
    cursor: pointer;
}

#workers-all:checked ~ .worker-tabbar label[for="workers-all"],
#workers-available:checked ~ .worker-tabbar label[for="workers-available"],
#workers-assigned:checked ~ .worker-tabbar label[for="workers-assigned"],
#workers-assignments:checked ~ .worker-tabbar label[for="workers-assignments"] {
    background: white;
    color: hsl(var(--fg));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.worker-panels > .worker-grid,
.worker-panels > .worker-assign-list {
    display: none;
}

#workers-all:checked ~ .worker-panels > .is-all,
#workers-available:checked ~ .worker-panels > .is-available,
#workers-assigned:checked ~ .worker-panels > .is-assigned,
#workers-assignments:checked ~ .worker-panels > .is-assignments {
    display: grid;
}

.worker-panels .quote-empty {
    grid-column: 1 / -1;
}

.worker-card,
.worker-assignment {
    padding: 1.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.worker-person {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.worker-avatar {
    display: grid;
    flex: none;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    background: hsl(var(--accent));
    color: hsl(var(--p));
}

.worker-lines {
    display: grid;
    gap: 0.375rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.worker-lines .glyph,
.worker-skill {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.worker-skill-badge,
.worker-status {
    padding: 0.125rem 0.45rem;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: 600;
}

.worker-skill-badge.is-beginner,
.worker-status.is-inactive,
.worker-status.is-ended {
    background: hsl(var(--accent));
    color: hsl(var(--muted));
}

.worker-skill-badge.is-intermediate,
.worker-status.is-assigned {
    background: hsl(217 90% 94%);
    color: hsl(217 80% 35%);
}

.worker-skill-badge.is-advanced,
.worker-status.is-available,
.worker-status.is-active {
    background: hsl(142 70% 94%);
    color: hsl(142 70% 28%);
}

.worker-skill-badge.is-expert {
    background: hsl(38 92% 92%);
    color: hsl(32 90% 32%);
}

.worker-projects {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--line));
}

.worker-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--line));
}

.worker-actions .profile-save {
    flex: 1;
    justify-content: center;
}

.mimar-page .worker-actions button.profile-save,
.mimar-page .worker-dialog-actions button.profile-save {
    flex: 1;
    width: auto;
    justify-content: center;
}

.mimar-page button.worker-cancel {
    display: inline-flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: hsl(var(--fg));
    font: inherit;
    font-size: 0.875rem;
    cursor: pointer;
}

.worker-dialog {
    width: min(28rem, calc(100vw - 2rem));
    max-height: 90vh;
    padding: 1.5rem;
    overflow: auto;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: white;
    color: inherit;
}

.worker-dialog::backdrop {
    background: rgb(15 10 30 / 0.4);
}

.worker-dialog-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.worker-dialog h2 {
    margin: 0;
    font-size: 1.125rem;
}

.mimar-page button.worker-close {
    color: hsl(var(--muted));
}

.worker-dialog-actions {
    display: flex;
    gap: 0.75rem;
}

.worker-dialog-actions .profile-save,
.worker-dialog-actions .mimar-outline {
    flex: 1;
    justify-content: center;
}

.worker-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (min-width: 768px) {
    .worker-stats,
    .worker-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .worker-stats {
        grid-template-columns: repeat(4, 1fr);
    }

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

.mimar-wrap.guide-wrap {
    max-width: 72rem;
}

.guide-wrap .mimar-head > div:first-child {
    flex: 1 1 18rem;
    min-width: min(100%, 18rem);
}

.guide-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mimar-page a.guide-outline,
.mimar-page button.guide-outline,
.mimar-page button.guide-copy {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    min-height: 2.25rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: hsl(var(--fg));
    font: inherit;
    font-size: 0.875rem;
    text-decoration: none;
    cursor: pointer;
}

.mimar-page button.guide-copy {
    min-height: 2rem;
    padding: 0.25rem 0.5rem;
    border: 0;
    background: transparent;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.mimar-page a.guide-outline:hover,
.mimar-page button.guide-outline:hover,
.mimar-page button.guide-copy:hover {
    background: hsl(var(--accent));
}

.guide-panel {
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.guide-panel h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.guide-panel h2 .glyph {
    color: hsl(var(--p));
}

.guide-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.875rem;
}

.guide-progress-row span:first-child {
    font-weight: 600;
}

.guide-progress-row span:last-child {
    color: hsl(var(--muted));
}

.guide-bar {
    height: 0.5rem;
    overflow: hidden;
    border-radius: 9999px;
    background: hsl(var(--accent));
}

.guide-bar span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(135deg, hsl(var(--p)), hsl(var(--p-glow)));
}

.guide-rules {
    display: grid;
    gap: 0.5rem;
}

.guide-rules p,
.guide-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    margin: 0;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.guide-rules .glyph,
.guide-points .glyph {
    flex: none;
    margin-top: 0.125rem;
    color: hsl(var(--p));
}

.guide-points.is-accept .glyph {
    color: hsl(142 70% 32%);
}

.guide-filters {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.guide-search {
    position: relative;
    display: block;
}

.guide-search .glyph {
    position: absolute;
    top: 50%;
    inset-inline-start: 0.75rem;
    color: hsl(var(--muted));
    transform: translateY(-50%);
    pointer-events: none;
}

.mimar-page .guide-search input {
    width: 100%;
    min-height: 2.5rem;
    padding: 0.5rem 0.75rem;
    padding-inline-start: 2.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
}

.guide-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.mimar-page button.guide-pill {
    padding: 0.375rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 9999px;
    background: white;
    color: hsl(var(--muted));
    font: inherit;
    font-size: 0.75rem;
    cursor: pointer;
}

.mimar-page button.guide-pill.is-stage.is-on {
    border-color: hsl(var(--p));
    background: hsl(var(--p));
    color: white;
}

.mimar-page button.guide-pill.is-actor.is-on {
    border-color: hsl(var(--fg));
    background: hsl(var(--fg));
    color: white;
}

.guide-list {
    display: grid;
    gap: 0.75rem;
    counter-reset: guide;
}

.guide-card {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.guide-card:not([hidden]) {
    counter-increment: guide;
}

.guide-card.is-done {
    border-color: hsl(var(--p) / 0.4);
}

.guide-check {
    margin-top: 0.25rem;
}

.guide-check input {
    width: 1rem;
    height: 1rem;
    accent-color: hsl(var(--p));
}

.guide-details {
    flex: 1;
    min-width: 0;
}

.guide-details summary {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    cursor: pointer;
    list-style: none;
}

.guide-details summary::-webkit-details-marker {
    display: none;
}

.guide-summary-main {
    flex: 1;
    min-width: 0;
}

.guide-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.guide-num::before {
    content: counter(guide) ".";
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.guide-title {
    font-size: 0.875rem;
    font-weight: 600;
}

.guide-goal {
    display: block;
    margin-top: 0.25rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.guide-actor {
    padding: 0.125rem 0.45rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
}

.guide-actor.is-client { background: hsl(var(--p) / 0.1); color: hsl(var(--p)); }
.guide-actor.is-provider { background: hsl(217 90% 94%); color: hsl(217 80% 35%); }
.guide-actor.is-expert { background: hsl(38 92% 92%); color: hsl(32 90% 32%); }
.guide-actor.is-supervisor { background: hsl(142 70% 94%); color: hsl(142 70% 28%); }
.guide-actor.is-executor { background: hsl(24 90% 94%); color: hsl(24 80% 35%); }
.guide-actor.is-admin { background: hsl(275 100% 95%); color: hsl(275 70% 35%); }

.guide-chevron {
    flex: none;
    margin-top: 0.15rem;
    color: hsl(var(--muted));
    transition: transform 0.15s ease;
}

.guide-details[open] .guide-chevron {
    transform: rotate(180deg);
}

.guide-body {
    display: grid;
    gap: 0.75rem;
    padding-top: 1rem;
}

.guide-body h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 0.875rem;
}

.guide-body h3 .glyph {
    color: hsl(var(--p));
}

.guide-points {
    display: grid;
    gap: 0.375rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.guide-fields {
    overflow: hidden;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
}

.guide-field {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.75rem;
    background: hsl(var(--accent) / 0.35);
}

.guide-field + .guide-field {
    border-top: 1px solid hsl(var(--line));
}

.guide-field > div:first-child {
    flex: 1 1 8.75rem;
}

.guide-field-label {
    font-size: 0.75rem;
    font-weight: 600;
}

.guide-req {
    color: hsl(0 72% 51%);
    font-size: 0.75rem;
}

.guide-opt,
.guide-hint,
.guide-route {
    color: hsl(var(--muted));
    font-size: 11px;
}

.guide-example {
    flex: 1 1 12rem;
    margin: 0;
    font-size: 0.875rem;
}

.guide-worked {
    padding: 1rem;
    border: 1px solid hsl(var(--p) / 0.3);
    border-radius: 0.5rem;
    background: hsl(var(--p) / 0.05);
}

.guide-worked ul {
    display: grid;
    gap: 0.25rem;
    margin: 0.5rem 0 0.75rem;
    padding: 0;
    list-style: none;
}

.guide-worked li {
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.guide-worked li::before {
    content: "• ";
}

.guide-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.guide-empty {
    margin-bottom: 1rem;
    padding: 1.5rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    color: hsl(var(--muted));
    text-align: center;
}

.guide-back {
    margin-top: 2rem;
}

.mimar-page a.guide-back,
.guide-back a {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
    text-decoration: none;
}

[dir="rtl"] .guide-back .glyph {
    transform: scaleX(-1);
}

.guide-toast {
    position: fixed;
    bottom: 5rem;
    inset-inline-start: 50%;
    z-index: 30;
    transform: translateX(-50%);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    background: hsl(var(--fg));
    color: white;
    font-size: 0.875rem;
}

.guide-toast:empty {
    display: none;
}

@media (min-width: 640px) {
    .guide-rules {
        grid-template-columns: 1fr 1fr;
    }
}

.guide-wrap .mimar-head {
    align-items: flex-start;
}

.guide-account,
.guide-panel p.guide-hint {
    margin: 0.75rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.guide-account b {
    color: hsl(var(--fg));
}

.guide-ring {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.guide-hop {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.mimar-page button.guide-party {
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    cursor: pointer;
    font: inherit;
}

.mimar-page button.guide-party:hover,
.mimar-page button.guide-party.is-current {
    border-color: hsl(var(--p));
}

.guide-arrow {
    display: inline-flex;
    color: hsl(var(--muted));
}

.guide-stages {
    display: grid;
    gap: 1rem;
}

.guide-stage {
    overflow: hidden;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.guide-stage.is-open {
    border-color: hsl(var(--p) / 0.5);
}

.mimar-page button.guide-stage-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1rem 1.25rem;
    border: 0;
    background: transparent;
    cursor: pointer;
    font: inherit;
    text-align: start;
}

.guide-stage-icon {
    display: flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    background: hsl(var(--p) / 0.1);
    color: hsl(var(--p));
}

.guide-stage-icon .glyph {
    width: 1.25rem;
    height: 1.25rem;
}

.guide-stage-copy {
    flex: 1;
    min-width: 0;
}

.guide-stage-copy strong {
    display: block;
    font-size: 1rem;
}

.guide-stage-copy small {
    display: block;
    margin-top: 0.25rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.guide-count {
    flex: none;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    background: hsl(var(--accent));
    color: hsl(var(--muted));
    font-size: 10px;
    font-weight: 700;
}

.guide-stage-body {
    display: none;
    gap: 0.75rem;
    padding: 0 1.25rem 1.25rem;
}

.guide-stage.is-open .guide-stage-body {
    display: grid;
}

.guide-step {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.guide-step.is-done {
    border-color: hsl(var(--p) / 0.4);
    background: hsl(var(--p) / 0.05);
}

.guide-step-main {
    flex: 1;
    min-width: 12.5rem;
}

.guide-kicker {
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.guide-step-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.guide-step-actions a.mimar-solid,
.guide-step-actions a.mimar-outline,
.guide-step-actions button.mimar-outline {
    min-height: 2rem;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
}

.guide-shortcuts {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
}

.guide-shortcuts a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    color: inherit;
    font-size: 0.875rem;
    text-decoration: none;
}

.guide-shortcuts a:hover {
    border-color: hsl(var(--p) / 0.5);
    background: hsl(var(--accent) / 0.4);
}

.guide-shortcuts .glyph {
    color: hsl(var(--p));
}

@media (min-width: 640px) {
    .guide-shortcuts {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1024px) {
    .guide-shortcuts {
        grid-template-columns: 1fr 1fr 1fr;
    }
}

.invoice-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.invoice-title .glyph {
    color: hsl(var(--p));
}

.invoice-dialog {
    width: min(48rem, calc(100vw - 2rem));
}

.invoice-lines {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    border-top: 1px solid hsl(var(--line));
}

.invoice-line {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    align-items: end;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.invoice-line-total,
.invoice-totals {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.invoice-totals {
    justify-content: flex-end;
    padding-top: 0.5rem;
    border-top: 1px solid hsl(var(--line));
}

.invoice-totals b,
.invoice-line-total b {
    color: hsl(var(--fg));
}

.mimar-page .invoice-totals .is-primary,
.mimar-page .invoice-totals .is-primary b {
    color: hsl(var(--p));
}

.mimar-page button.profile-save.invoice-issue {
    width: 100%;
    justify-content: center;
}

.invoice-history {
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.invoice-history-head,
.invoice-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.invoice-history h2 {
    margin: 0;
    font-size: 1rem;
}

.invoice-search {
    position: relative;
    display: block;
}

.invoice-search .glyph {
    position: absolute;
    top: 0.55rem;
    inset-inline-start: 0.75rem;
    color: hsl(var(--muted));
}

.mimar-page .invoice-search input.profile-input {
    width: 14rem;
    padding-inline-start: 2.25rem;
}

.mimar-page .invoice-filters select.profile-input {
    width: 9rem;
}

.invoice-empty {
    margin: 0;
    padding: 2rem 1rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
    text-align: center;
}

.invoice-list {
    display: grid;
    gap: 0.5rem;
}

.invoice-card {
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: hsl(var(--bg));
}

.invoice-card summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    list-style: none;
    cursor: pointer;
}

.invoice-card summary::-webkit-details-marker {
    display: none;
}

.invoice-card summary > .mimar-row-text {
    flex: 1 1 10rem;
    min-width: 0;
}

.invoice-total {
    font-size: 0.875rem;
    font-weight: 700;
}

.invoice-body {
    display: grid;
    gap: 0.75rem;
    padding: 0.75rem;
    border-top: 1px solid hsl(var(--line));
}

.invoice-line-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.mimar-page .invoice-line-row span:first-child {
    color: hsl(var(--fg));
}

.invoice-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    color: hsl(var(--muted));
    font-size: 11px;
}

.invoice-meta code {
    max-width: 14rem;
    overflow: hidden;
    padding: 0.1rem 0.4rem;
    border-radius: 0.25rem;
    background: hsl(var(--accent));
    text-overflow: ellipsis;
    white-space: nowrap;
}

.invoice-facts {
    display: grid;
    gap: 0.25rem;
}

@media (min-width: 768px) {
    .invoice-line {
        grid-template-columns: minmax(0, 1.6fr) repeat(4, minmax(0, 0.7fr)) auto;
    }

    .invoice-line-total {
        grid-column: 1 / -1;
    }
}

.catalog-title .glyph {
    color: hsl(var(--p));
}

.catalog-board > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.catalog-tabbar {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent));
}

.catalog-tabbar label {
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
    cursor: pointer;
}

#catalog-new:checked ~ .catalog-tabbar label[for="catalog-new"],
#catalog-index:checked ~ .catalog-tabbar label[for="catalog-index"],
#catalog-mine:checked ~ .catalog-tabbar label[for="catalog-mine"] {
    background: white;
    color: hsl(var(--fg));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.catalog-panels > .catalog-panel {
    display: none;
}

#catalog-new:checked ~ .catalog-panels > .is-new,
#catalog-index:checked ~ .catalog-panels > .is-index,
#catalog-mine:checked ~ .catalog-panels > .is-mine {
    display: grid;
}

.catalog-panel {
    gap: 0.75rem;
}

.catalog-card {
    display: grid;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.catalog-card h2 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-size: 1rem;
}

.catalog-card h2 .glyph {
    color: hsl(var(--p));
}

.catalog-specs {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0.75rem 0 0;
    border: 0;
    border-top: 1px solid hsl(var(--line));
}

.catalog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalog-list {
    display: grid;
    gap: 0.5rem;
}

.catalog-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: hsl(var(--bg));
}

.catalog-row .mimar-row-text {
    flex: 1 1 12rem;
    min-width: 0;
}

.catalog-search {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.catalog-search .profile-input {
    flex: 1 1 16rem;
}

.request-wrap {
    max-width: 64rem;
}

.request-head,
.request-side,
.request-next-row,
.request-offer {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.request-head {
    margin-bottom: 1rem;
}

.request-head h1,
.request-card h2,
.request-card h3,
.request-next-title,
.request-offer-name {
    margin: 0;
}

.request-card h2,
.request-next-title,
.request-offer-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
}

.request-side,
.request-next {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
}

.request-next,
.request-card {
    margin-bottom: 1rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 1rem;
    background: white;
}

.request-next {
    border-color: hsl(var(--p) / 0.4);
    background: hsl(var(--p) / 0.05);
}

.request-next-title {
    color: hsl(var(--p));
    font-weight: 800;
}

.request-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-top: 0.5rem;
}

.request-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0;
}

.request-facts p {
    margin: 0;
    font-weight: 600;
}

.request-journey {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.75rem 0;
    padding: 0;
    list-style: none;
}

.request-journey li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.request-journey li span {
    display: grid;
    width: 1.25rem;
    height: 1.25rem;
    place-items: center;
    border: 2px solid hsl(var(--muted));
    border-radius: 999px;
    color: hsl(var(--muted));
    font-size: 0.625rem;
    font-weight: 700;
}

.request-journey .is-done {
    border-color: hsl(var(--p) / 0.5);
    background: hsl(var(--p) / 0.05);
}

.request-journey .is-active {
    border-color: hsl(var(--p));
    background: hsl(var(--p) / 0.1);
}

.request-journey .is-wait {
    opacity: 0.7;
}

.request-wait {
    display: inline-flex;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.request-board {
    position: relative;
}

.request-board > input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.request-tabbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 1rem;
    padding: 0.25rem;
    border-radius: 0.5rem;
    background: hsl(var(--accent));
}

.request-tabbar label,
.request-tab-off {
    padding: 0.35rem 0.75rem;
    border-radius: 0.375rem;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.request-tabbar label {
    cursor: pointer;
}

.request-tab-off {
    opacity: 0.55;
}

#req-offers:checked ~ .request-tabbar label[for="req-offers"],
#req-inquiries:checked ~ .request-tabbar label[for="req-inquiries"],
#req-visit:checked ~ .request-tabbar label[for="req-visit"],
#req-agreement:checked ~ .request-tabbar label[for="req-agreement"],
#req-changes:checked ~ .request-tabbar label[for="req-changes"],
#req-media:checked ~ .request-tabbar label[for="req-media"],
#req-project:checked ~ .request-tabbar label[for="req-project"],
#req-deliverables:checked ~ .request-tabbar label[for="req-deliverables"],
#req-audit:checked ~ .request-tabbar label[for="req-audit"],
#req-review:checked ~ .request-tabbar label[for="req-review"] {
    background: white;
    color: hsl(var(--fg));
    box-shadow: 0 1px 2px rgb(0 0 0 / 0.08);
}

.request-panels > .request-panel {
    display: none;
}

#req-offers:checked ~ .request-panels > .is-offers,
#req-inquiries:checked ~ .request-panels > .is-inquiries,
#req-visit:checked ~ .request-panels > .is-visit,
#req-agreement:checked ~ .request-panels > .is-agreement,
#req-changes:checked ~ .request-panels > .is-changes,
#req-media:checked ~ .request-panels > .is-media,
#req-project:checked ~ .request-panels > .is-project,
#req-deliverables:checked ~ .request-panels > .is-deliverables,
#req-audit:checked ~ .request-panels > .is-audit,
#req-review:checked ~ .request-panels > .is-review {
    display: grid;
}

.request-stack {
    display: grid;
    gap: 0.75rem;
}

.request-offer {
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
}

.request-form {
    display: grid;
    gap: 0.75rem;
}

.request-form label {
    display: grid;
    gap: 0.25rem;
    font-size: 0.875rem;
}

.request-list {
    margin: 0.5rem 0 0;
    padding-inline-start: 1.1rem;
}

.mimar-page .request-next label.mimar-outline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    padding: 0.5rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: hsl(var(--fg));
    font-size: 0.875rem;
    cursor: pointer;
}

@media (min-width: 768px) {
    .request-facts,
    .request-journey {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.pricing-steps,
.pricing-options,
.pricing-stats {
    display: grid;
    gap: 0.75rem;
}

.pricing-step,
.pricing-option,
.pricing-stats article {
    padding: 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: hsl(var(--bg));
}

.pricing-step span {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    margin-bottom: 0.5rem;
    place-items: center;
    border-radius: 999px;
    background: hsl(var(--p));
    color: white;
    font-size: 0.6875rem;
    font-weight: 700;
}

.pricing-step p,
.pricing-option h3 {
    margin: 0 0 0.35rem;
    font-size: 0.875rem;
    font-weight: 700;
}

.pricing-step ul,
.pricing-option ul {
    margin: 0;
    padding-inline-start: 1rem;
    color: hsl(var(--muted));
    font-size: 0.6875rem;
}

.pricing-option.is-on {
    border-color: hsl(var(--p));
    background: hsl(var(--p) / 0.05);
}

.pricing-option h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pricing-option > p {
    margin: 0.5rem 0;
    color: hsl(var(--p));
    font-size: 0.6875rem;
    font-weight: 700;
}

.pricing-stats p {
    margin: 0;
}

.pricing-stats article p:last-child {
    font-weight: 700;
}

.pricing-stats .is-share {
    border-color: hsl(var(--p) / 0.5);
    background: hsl(var(--p) / 0.05);
}

.pricing-stats .is-share p:last-child {
    color: hsl(var(--p));
}

.pricing-note {
    margin: 0.75rem 0 0;
    padding: 0.75rem;
    border: 1px dashed hsl(var(--line));
    border-radius: 0.75rem;
    color: hsl(var(--muted));
    font-size: 0.6875rem;
}

@media (min-width: 768px) {
    .pricing-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .pricing-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dir-page .dir-signin {
    padding: 0.45rem 0.9rem;
    font-size: 0.875rem;
}

.dir-page .mimar-head > div:first-child {
    flex: 1 1 20rem;
    min-width: min(100%, 20rem);
}

.dir-page .dir-note {
    margin: 0 0 1rem;
    padding: 0.75rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    color: hsl(var(--fg));
    font-size: 0.875rem;
}

.dir-page .dir-note.ok {
    border-color: hsl(var(--p) / 0.35);
    background: hsl(var(--p) / 0.06);
}

.dir-page .dir-note span {
    display: block;
    margin-top: 0.25rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.dir-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.dir-search {
    position: relative;
}

.dir-search .glyph {
    position: absolute;
    inset-inline-start: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: hsl(var(--muted));
}

.dir-filters input,
.dir-filters select,
.dir-dialog select {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: inherit;
    font: inherit;
    font-size: 0.875rem;
}

.dir-search input {
    padding-inline-start: 2.25rem;
}

.dir-label {
    display: block;
    margin-bottom: 0.25rem;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.dir-empty {
    padding: 3rem 1rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
    text-align: center;
}

.dir-empty p {
    margin: 0;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.dir-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}

.dir-card {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.25rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.75rem;
    background: white;
}

.dir-card:hover {
    border-color: hsl(var(--p) / 0.4);
}

.dir-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

.dir-card h2 {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.875rem;
    font-weight: 700;
}

.dir-card .dir-verified {
    width: 1rem;
    height: 1rem;
    color: hsl(var(--p));
}

.dir-place {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin: 0.15rem 0 0;
    color: hsl(var(--muted));
    font-size: 0.6875rem;
}

.dir-place .glyph {
    width: 0.75rem;
    height: 0.75rem;
}

.dir-type,
.dir-chips span {
    display: inline-flex;
    align-items: center;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.625rem;
    line-height: 1.4;
}

.dir-type {
    flex: none;
    background: hsl(var(--muted) / 0.12);
    color: hsl(var(--fg));
}

.dir-bio,
.dir-cover {
    margin: 0;
    color: hsl(var(--muted));
    font-size: 0.75rem;
}

.dir-bio {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.dir-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}

.dir-chips span {
    border: 1px solid hsl(var(--line));
    background: transparent;
}

.dir-offers {
    margin: 0;
    padding: 0.5rem 0 0;
    border-top: 1px solid hsl(var(--line));
    list-style: none;
}

.dir-offers li + li {
    margin-top: 0.35rem;
}

.dir-offers div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    font-size: 0.6875rem;
}

.dir-offers span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.dir-offers strong,
.dir-offers p {
    color: hsl(var(--muted));
    font-size: 0.6875rem;
    font-weight: 400;
}

.dir-offers strong {
    flex: none;
}

.dir-offers p {
    margin: 0.1rem 0 0;
}

.dir-card-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: auto;
    padding-top: 0.5rem;
}

.dir-card-foot p {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin: 0;
    color: hsl(var(--muted));
    font-size: 0.6875rem;
}

.dir-star {
    color: hsl(var(--p));
}

.dir-page a.dir-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    height: 1.75rem;
    padding: 0 0.6rem;
    border: 1px solid hsl(var(--line));
    border-radius: 0.5rem;
    background: white;
    color: inherit;
    font-size: 0.6875rem;
    white-space: nowrap;
}

.dir-page a.dir-link:hover {
    border-color: hsl(var(--p) / 0.4);
}

.dir-dialog-empty {
    margin: 0;
    color: hsl(var(--muted));
    font-size: 0.875rem;
}

.dir-dialog-field {
    display: block;
    margin-bottom: 0.75rem;
}

.dir-dialog-field span {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.875rem;
}

.dir-page .dir-submit {
    width: 100%;
    justify-content: center;
    border: 0;
    cursor: pointer;
}

.dir-page a.dir-close {
    color: hsl(var(--muted));
}

@media (min-width: 768px) {
    .dir-filters {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr);
        align-items: end;
    }

    .dir-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 1280px) {
    .dir-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
