:root {
    --bg: #2b122b;
    --card: #fff8ea;
    --ink: #251222;
    --muted: #826f7a;
    --plum: #421d3f;
    --plum-deep: #241022;
    --gold: #d9ad55;
    --gold-light: #f2d991;
    --gold-dark: #9d7222;
    --line: #ead6ad;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding-top: 76px;
    background:
        radial-gradient(circle at 50% -10%, rgba(217, 173, 85, 0.22), transparent 34%),
        linear-gradient(180deg, var(--bg), var(--plum-deep));
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    min-height: 100vh;
}

a {
    color: var(--gold-dark);
    text-decoration: none;
    font-weight: 700;
}

.topbar {
    background: #411f3a;
    border-bottom: 1px solid rgba(231, 207, 148, 0.22);
    left: 0;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1000;
}

.topbar-inner {
    align-items: center;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1428px;
    min-height: 76px;
    padding: 0 34px;
}

.brand {
    align-items: center;
    color: var(--gold-light);
    display: inline-flex;
    font-weight: 800;
    gap: 12px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-logo {
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.24));
    height: 62px;
    object-fit: contain;
    width: 156px;
}

.nav-links {
    align-items: center;
    display: flex;
    gap: 16px;
    font-size: 0.94rem;
}

.nav-links a {
    color: rgba(255, 250, 240, 0.78);
}

.nav-links a:hover {
    color: var(--gold-light);
}

.account-link {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 40px;
    min-width: 32px;
}

.account-card {
    margin-left: auto;
    margin-right: auto;
    max-width: 620px;
}

.logout-form {
    margin: 0;
}

.logout-button {
    background: transparent;
    border: 0;
    color: rgba(255, 250, 240, 0.78);
    cursor: pointer;
    padding: 0;
}

.logout-button:hover {
    color: var(--gold-light);
}

.account-form {
    margin-top: 24px;
}

.account-form .muted {
    font-size: 14px;
    margin: -6px 0 0;
}

.container {
    margin: 0 auto;
    max-width: 1180px;
    padding: 34px;
}

.container-wide {
    max-width: 1428px;
}

.hero,
.card,
.stats article,
.notice {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 22px 60px rgba(18, 6, 17, 0.22);
}

.notice.success {
    background: #eff9ef;
    border-color: #b9dfb9;
    color: #245c2c;
}

.notice.danger {
    background: #fff0f0;
    border-color: #e4b7b7;
    color: #842424;
}

.hero {
    align-items: center;
    background: linear-gradient(135deg, rgba(66, 29, 63, 0.96), rgba(43, 18, 43, 0.94));
    color: #fff8ea;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
    padding: 34px;
}

.dashboard-actions {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 22px;
}

.finance-back {
    color: var(--gold-light);
    display: inline-block;
    margin: 0 0 18px;
}

.hero p {
    color: rgba(255, 248, 234, 0.78);
}

.hero-logo {
    border-radius: 22px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.28);
    display: block;
    margin-bottom: 22px;
    max-width: 360px;
    width: min(100%, 360px);
}

.hero h1 {
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.02;
    margin: 0 0 12px;
    max-width: 760px;
}

.eyebrow {
    color: var(--gold-light);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 10px;
    text-transform: uppercase;
}

.stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(4, 1fr);
    margin-bottom: 22px;
}

.vat-stats {
    margin-top: 22px;
}

.stats article,
.card,
.notice {
    padding: 24px;
}

.vat-panel {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px;
}

.stats article {
    background: linear-gradient(180deg, #fffaf0, #f8ecd2);
}

.stats span,
.muted,
small {
    color: var(--muted);
}

.stats strong {
    display: block;
    font-size: 30px;
    margin-top: 8px;
}

.grid {
    display: grid;
    gap: 22px;
}

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

.compact {
    gap: 14px;
}

.narrow {
    max-width: 720px;
}

.invoice-card {
    max-width: 1040px;
}

.invoice-detail-card {
    max-width: none;
    width: 100%;
}

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

h1,
h2 {
    margin: 0 0 12px;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 13px 10px;
    text-align: left;
}

th {
    color: var(--muted);
    font-size: 13px;
}

.right {
    text-align: right;
}

.badge {
    background: rgba(217, 173, 85, 0.22);
    border: 1px solid rgba(157, 114, 34, 0.22);
    border-radius: 999px;
    color: #6d4c12;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 5px 10px;
}

.button {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-weight: 800;
    justify-content: center;
    padding: 11px 18px;
}

.button.primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: var(--plum-deep);
}

.button.danger-button,
.danger-button {
    background: #fff0f0;
    border-color: #e4b7b7;
    color: #842424;
}

.button.danger-button:hover,
.danger-button:hover {
    background: #ffdede;
}

.button.small {
    font-size: 13px;
    padding: 8px 12px;
}

.form {
    display: grid;
    gap: 16px;
}

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

.expense-form .full-width,
.expense-form button {
    grid-column: 1 / -1;
}

.offer-form {
    grid-template-columns: minmax(160px, 260px) 1fr;
}

.offer-form .checkbox-label,
.offer-form .full-width,
.offer-form button {
    grid-column: 1 / -1;
}

.checkbox-label {
    align-items: center;
    display: flex;
    flex-direction: row;
    gap: 10px;
}

.checkbox-label input {
    width: auto;
}

label {
    color: var(--muted);
    display: grid;
    font-size: 14px;
    font-weight: 800;
    gap: 7px;
}

input,
select,
textarea {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    font: inherit;
    padding: 12px 14px;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 173, 85, 0.18);
    outline: none;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.offer-preview {
    background: linear-gradient(135deg, rgba(66, 29, 63, 0.98), rgba(43, 18, 43, 0.96));
    border: 1px solid rgba(217, 173, 85, 0.32);
    border-radius: 28px;
    box-shadow: 0 22px 60px rgba(18, 6, 17, 0.22);
    color: #fff8ea;
    max-width: 520px;
    padding: 28px;
    position: relative;
}

.offer-preview button {
    align-items: center;
    background: rgba(255, 248, 234, 0.12);
    border: 1px solid rgba(255, 248, 234, 0.22);
    border-radius: 999px;
    color: #fff8ea;
    display: flex;
    font-size: 24px;
    height: 38px;
    justify-content: center;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
}

.offer-preview h2 {
    color: var(--gold-light);
    font-size: clamp(32px, 5vw, 54px);
    margin: 4px 0 12px;
}

.offer-preview p:last-child {
    color: rgba(255, 248, 234, 0.82);
    font-size: 1.08rem;
    margin-bottom: 0;
    max-width: 420px;
}

.list {
    display: grid;
    gap: 12px;
}

.list-row {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    display: block;
    padding: 14px;
}

.customer-card-link {
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.customer-card-link:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(36, 16, 34, 0.12);
    transform: translateY(-1px);
}

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

.agenda-actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.icon-button {
    align-items: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    display: inline-flex;
    font-size: 17px;
    height: 40px;
    justify-content: center;
    width: 42px;
}

.icon-button.danger {
    color: #8f1f1f;
}

.icon-button.danger:hover {
    background: #ffecec;
    border-color: #e3a3a3;
}

.expense-actions {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.expense-actions form {
    margin: 0;
}

.expense-actions .icon-button {
    flex-shrink: 0;
    padding: 0;
}

.treatment-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.treatment-actions .icon-button {
    width: 44px;
    height: 44px;
    padding: 0;
}

.note-row > div {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
}

.note-row form { flex-shrink: 0; }
.treatment-note-text { white-space: pre-wrap; }

dialog.treatment-delete-modal {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100% - 32px));
    height: fit-content;
    max-height: calc(100dvh - 32px);
    margin: auto;
    overflow-y: auto;
}

.treatment-delete-modal::backdrop { background: rgba(36, 16, 34, .72); }
.treatment-delete-modal .treatment-delete-summary { grid-template-columns: 1fr 1fr; }
.treatment-delete-summary dd { margin: 6px 0 0; font-weight: 700; }
.treatment-delete-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.treatment-delete-buttons .button { min-height: 44px; }

@media (max-width: 480px) {
    .treatment-delete-modal .treatment-delete-summary { grid-template-columns: 1fr; }
}

.list-row span,
.list-row small {
    display: block;
    margin-top: 4px;
}

.agenda-layout {
    align-items: start;
    grid-template-columns: minmax(320px, 0.75fr) minmax(0, 1.25fr);
}

.availability-form {
    gap: 18px;
}

.availability-picker {
    display: grid;
    gap: 20px;
    grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.75fr);
}

.month-navigator {
    align-items: center;
    display: grid;
    gap: 10px;
    grid-template-columns: 42px 1fr 42px;
    margin: 0 0 12px;
}

.month-navigator strong {
    color: var(--plum);
    font-size: 18px;
    text-align: center;
    text-transform: capitalize;
}

.month-scroll {
    border: 1px solid var(--line);
    border-radius: 20px;
    display: grid;
    gap: 0;
    max-height: none;
    overflow: visible;
    padding: 16px;
}

.calendar-month h3 {
    color: var(--plum);
    margin: 0 0 12px;
    text-transform: capitalize;
}

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

.calendar-weekdays {
    margin-bottom: 7px;
}

.calendar-weekdays span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.calendar-day {
    aspect-ratio: 1 / 1;
    align-items: center;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font: inherit;
    font-weight: 900;
    justify-content: center;
    min-height: 38px;
}

.calendar-day.empty {
    background: transparent;
    border: 0;
    cursor: default;
}

.calendar-day:hover:not(:disabled),
.calendar-day.selected {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: var(--plum-deep);
}

.calendar-day:disabled {
    cursor: not-allowed;
    opacity: 0.28;
}

.schedule-month-shell {
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 16px;
}

.schedule-bulk-panel {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 14px;
}

.schedule-bulk-panel form {
    margin: 0;
}

.schedule-calendar-grid {
    margin-top: 7px;
}

.schedule-day {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    justify-content: flex-start;
    min-height: 70px;
    overflow: hidden;
    padding: 8px;
    position: relative;
    text-align: left;
}

.schedule-day strong {
    font-size: 22px;
    line-height: 1;
}

.schedule-day small {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    line-height: 1.1;
    white-space: nowrap;
}

.schedule-day.has-bookings,
.schedule-day.has-bookings.selected {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: var(--plum-deep);
}

.schedule-day.has-bookings small {
    color: var(--plum-deep);
}

.schedule-day.has-slots {
    background: rgba(217, 173, 85, 0.13);
}

.schedule-day.marked-for-delete {
    background: var(--plum) !important;
    border-color: var(--gold);
    box-shadow: inset 0 0 0 3px var(--gold), 0 0 0 2px rgba(217, 173, 85, 0.25);
    color: var(--gold-light);
}

.schedule-day.marked-for-delete strong,
.schedule-day.marked-for-delete small {
    color: var(--gold-light);
}

.schedule-day.marked-for-delete::after {
    align-items: center;
    background: var(--gold);
    border-radius: 999px;
    color: var(--plum-deep);
    content: "✓";
    display: flex;
    font-size: 13px;
    font-weight: 900;
    height: 22px;
    justify-content: center;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 22px;
}

.schedule-details {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 20px;
    margin-top: 18px;
    padding: 18px;
}

.schedule-details h3,
.schedule-details h4 {
    margin: 0 0 12px;
}

.schedule-details h4 {
    color: var(--muted);
    font-size: 13px;
    margin-top: 18px;
    text-transform: uppercase;
}

.time-grid {
    border: 1px solid var(--line);
    border-radius: 20px;
    display: grid;
    gap: 9px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-height: none;
    overflow: visible;
    padding: 16px;
}

.time-option {
    align-items: center;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-weight: 900;
    justify-content: center;
    min-height: 42px;
    padding: 0;
}

.time-option input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.time-option.selected {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
}

.time-option.disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.recurrence-panel {
    background: rgba(217, 173, 85, 0.11);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    gap: 10px;
    padding: 12px;
}

.recurrence-panel h3 {
    margin: 0 0 4px;
}

.recurrence-panel .muted {
    margin-bottom: 2px;
}

.recurrence-controls {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 120px;
}

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

.weekday-options {
    display: grid;
    gap: 6px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.weekday-option {
    cursor: pointer;
    display: block;
    font-size: 13px;
    font-weight: 900;
}

.weekday-option input[type="checkbox"] {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.weekday-option span {
    align-items: center;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
    display: flex;
    justify-content: center;
    min-height: 36px;
}

.weekday-option input[type="checkbox"]:checked + span {
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    border-color: var(--gold);
    color: var(--plum-deep);
}

.weeks-input {
    display: grid;
    gap: 6px;
}

.weeks-input input {
    min-height: 36px;
    padding: 8px 10px;
    width: 100%;
}

.payment-layout {
    align-items: start;
    grid-template-columns: minmax(320px, 0.9fr) minmax(320px, 0.7fr);
}

.payment-form {
    margin-top: 18px;
}

.amount-input {
    align-items: center;
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    gap: 10px;
    padding: 0 16px;
}

.amount-input:focus-within {
    border-color: var(--gold);
    box-shadow: 0 0 0 4px rgba(217, 173, 85, 0.18);
}

.amount-input span {
    color: var(--plum);
    font-size: 28px;
    font-weight: 900;
}

.amount-input input {
    border: 0;
    box-shadow: none;
    flex: 1;
    font-size: clamp(32px, 7vw, 62px);
    font-weight: 900;
    padding: 18px 0;
}

.amount-input input:focus {
    border-color: transparent;
    box-shadow: none;
}

.payment-details {
    margin-bottom: 18px;
}

.payment-toolbar {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(280px, 0.9fr) minmax(420px, 1.2fr);
    margin: 18px 0 22px;
}

.bank-import-form,
.payment-filter-form {
    align-items: end;
    background: rgba(255, 253, 248, 0.72);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: grid;
    gap: 12px;
    padding: 14px;
}

.bank-import-form {
    grid-template-columns: 1fr auto;
}

.payment-filter-form {
    grid-template-columns: repeat(3, minmax(120px, 1fr)) auto;
}

.bank-import-form input,
.payment-filter-form select {
    min-height: 40px;
    padding: 9px 12px;
}

.payment-source {
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.03em;
    padding: 7px 10px;
    text-transform: uppercase;
}

.payment-source.sumup {
    background: rgba(59, 130, 246, 0.12);
    color: #1d4ed8;
}

.payment-source.bank {
    background: rgba(217, 173, 85, 0.22);
    color: var(--plum-deep);
}

.payments-table td small {
    display: block;
    margin-top: 4px;
}

.settings-button {
    color: var(--plum);
    font-weight: 900;
    text-decoration: none;
}

.inline-link-form {
    align-items: center;
    display: flex;
    gap: 8px;
    min-width: 320px;
}

.inline-link-form select {
    min-width: 220px;
    padding: 9px 12px;
}

.reader-list {
    display: grid;
    gap: 12px;
    margin-top: 22px;
}

.reader-list h3 {
    margin: 0;
}

.sumup-transactions-card {
    margin-top: 22px;
}

.agenda-days {
    display: grid;
    gap: 18px;
}

.agenda-day {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 16px;
}

.agenda-day h3,
.agenda-day h4 {
    margin: 0 0 10px;
}

.agenda-day h4 {
    color: var(--muted);
    font-size: 13px;
    margin-top: 16px;
    text-transform: uppercase;
}

.slot-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.slot-pill {
    align-items: center;
    background: rgba(217, 173, 85, 0.13);
    border: 1px solid var(--line);
    border-radius: 16px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    min-width: 190px;
    padding: 10px 12px;
}

.actions {
    align-items: center;
    display: flex;
    gap: 10px;
}

.modal-backdrop {
    align-items: center;
    background: rgba(36, 16, 34, 0.68);
    bottom: 0;
    display: flex;
    justify-content: center;
    left: 0;
    padding: 22px;
    position: fixed;
    right: 0;
    top: 0;
    z-index: 2000;
}

.modal-backdrop[hidden] {
    display: none;
}

.confirm-modal {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: 0 30px 90px rgba(18, 6, 17, 0.38);
    max-width: 560px;
    padding: 30px;
    position: relative;
    width: min(100%, 560px);
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
}

.delete-summary {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 20px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 20px 0;
    padding: 16px;
}

.delete-summary dd {
    overflow-wrap: anywhere;
}

.search-form {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    margin: 0 0 18px;
}

.button.ghost {
    background: transparent;
}

.details {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    margin: 20px 0;
}

.compact-details {
    grid-template-columns: 1fr 1fr;
}

.invoice-status-details {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.dossier-grid {
    margin-top: 22px;
}

.treatment-layout {
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
    margin-top: 22px;
}

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

.reflex-map-image {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 18px;
    display: block;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.foot-card {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px;
}

.foot-card h3 {
    color: var(--plum);
    margin: 0 0 12px;
}

.foot-shape {
    height: 540px;
    margin: 0 auto;
    max-width: 270px;
    overflow: visible;
    position: relative;
    width: 260px;
}

.right-foot {
    transform: scaleX(-1);
}

.right-foot .pressure-point {
    transform: translate(-50%, -50%) scaleX(-1);
}

.foot-svg {
    height: 100%;
    inset: 0;
    position: absolute;
    width: 100%;
    z-index: 1;
}

.sole-outline,
.toe-shape {
    fill: rgba(255, 250, 240, 0.78);
    stroke: rgba(157, 114, 34, 0.42);
    stroke-width: 3;
}

.toe-shape {
    fill: rgba(255, 248, 234, 0.9);
}

.inner-arch,
.outer-arch,
.heel-line {
    fill: none;
    stroke: rgba(157, 114, 34, 0.2);
    stroke-linecap: round;
    stroke-width: 4;
}

.pressure-point {
    align-items: center;
    background: var(--plum);
    border: 2px solid #fff8ea;
    border-radius: 999px;
    box-shadow: 0 8px 18px rgba(36, 16, 34, 0.22);
    color: #fff8ea;
    cursor: pointer;
    display: flex;
    height: 18px;
    justify-content: center;
    padding: 0;
    position: absolute;
    transform: translate(-50%, -50%);
    transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
    width: 18px;
    z-index: 5;
}

.pressure-point:hover,
.pressure-point.selected {
    background: var(--gold);
    box-shadow: 0 10px 24px rgba(157, 114, 34, 0.35);
    transform: translate(-50%, -50%) scale(1.35);
}

.right-foot .pressure-point:hover,
.right-foot .pressure-point.selected {
    transform: translate(-50%, -50%) scaleX(-1) scale(1.35);
}

.pressure-point.has-note {
    background: #3f8f5c;
}

.notes-heading {
    margin-top: 28px;
}

.invoice-lines {
    display: grid;
    gap: 10px;
}

/* Native controls and long customer options must be able to shrink inside grids. */
.invoice-card .form,
.invoice-card label,
.invoice-lines {
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
}

.invoice-card input,
.invoice-card select {
    min-width: 0;
    max-width: 100%;
    width: 100%;
    font-size: 16px;
}

.invoice-field input {
    font-weight: 400;
}

.invoice-field-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.line-header,
.line-row {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(260px, 2fr) minmax(90px, 0.7fr) minmax(140px, 1fr) minmax(90px, 0.7fr);
    min-width: 0;
}

.line-header {
    color: var(--muted);
    font-size: 13px;
    font-weight: 800;
}

.details div {
    background: #fffdf8;
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
}

.payment-link-card {
    align-items: center;
    background: linear-gradient(135deg, rgba(217, 173, 85, 0.18), rgba(255, 253, 248, 0.96));
    border: 1px solid var(--line);
    border-radius: 18px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 20px;
    padding: 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.payment-link-card:hover {
    border-color: var(--gold);
    box-shadow: 0 12px 30px rgba(36, 16, 34, 0.12);
    transform: translateY(-1px);
}

.payment-link-main {
    color: inherit;
    display: grid;
    flex: 1;
    gap: 12px;
    grid-template-columns: repeat(4, 1fr);
    text-decoration: none;
}

.payment-link-main div {
    min-width: 0;
}

.payment-link-main dd {
    overflow-wrap: anywhere;
}

dt {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

dd {
    font-size: 18px;
    font-weight: 800;
    margin: 6px 0 0;
}

code {
    background: rgba(217, 173, 85, 0.22);
    border-radius: 6px;
    padding: 2px 6px;
}

@media (max-width: 820px) {
    body {
        padding-top: 136px;
    }

    .topbar-inner,
    .hero,
    .section-heading,
    .actions {
        align-items: flex-start;
        flex-direction: column;
    }

    .topbar-inner {
        padding-bottom: 18px;
        padding-top: 18px;
    }

    .nav-links {
        flex-wrap: wrap;
        gap: 14px;
        width: 100%;
    }

    .brand-logo {
        height: 62px;
        width: 156px;
    }

    .hero-logo {
        max-width: 280px;
    }

    .stats,
    .expense-form,
    .offer-form,
    .grid.two,
    .details,
    .invoice-status-details,
    .delete-summary,
    .payment-link-card,
    .payment-link-main,
    .payment-toolbar,
    .bank-import-form,
    .payment-filter-form,
    .search-form,
    .treatment-layout,
    .feet-board,
    .availability-picker {
        grid-template-columns: 1fr;
    }

    .split-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .agenda-actions {
        align-items: flex-start;
    }

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

    .foot-shape {
        height: 460px;
    }

    .line-header {
        display: none;
    }

    .line-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: end;
    }

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

    .invoice-card {
        padding: 18px;
    }

    .invoice-field-label {
        position: static;
        width: auto;
        height: auto;
        overflow: visible;
        clip-path: none;
        white-space: normal;
    }

    .invoice-lines {
        gap: 18px;
    }

    .line-row + .line-row {
        border-top: 1px solid var(--line);
        padding-top: 18px;
    }

    .invoice-card .button {
        min-width: 0;
        min-height: 48px;
        white-space: normal;
        width: 100%;
    }

    .container {
        padding: 18px;
    }
}

@media (max-width: 1150px) {
    body { padding-top: 125px; }
    .topbar-inner { flex-direction: row; flex-wrap: wrap; gap: 0; padding: 8px 22px; }
    .brand-logo { height: 48px; width: 110px; }
    .nav-links { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; width: 100%; padding: 6px 0; font-size: 13px; gap: 18px; }
    .nav-links > * { flex-shrink: 0; }
}
