:root {
    --ink: #172c27;
    --muted: #657169;
    --paper: #f7f7f2;
    --white: #fff;
    --border: #e5e8df;
    --green: #204b3d;
    --amber: #efbc76;
    --red: #b24d43;
    --shadow: 0 12px 40px #243d2510;
    font-family: "DM Sans", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
}
button,
input,
select {
    font: inherit;
}
button,
a,
input,
select {
    -webkit-tap-highlight-color: transparent;
}
button {
    cursor: pointer;
}
button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
a {
    color: inherit;
    text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 3px solid #d68d39;
    outline-offset: 3px;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1,
h2,
h3 {
    font-family: "Manrope", system-ui, sans-serif;
}
h1 {
    font-size: clamp(28px, 3vw, 40px);
    letter-spacing: -1.6px;
    line-height: 1.15;
    font-weight: 800;
}
h2 {
    font-size: 22px;
    letter-spacing: -0.65px;
}
h3 {
    font-size: 18px;
    letter-spacing: -0.3px;
}
p {
    line-height: 1.6;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 12px;
}
.eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    margin-bottom: 14px;
    color: #658172;
}
.brand {
    font-family: Georgia, serif;
    font-weight: 700;
    letter-spacing: -4px;
    font-size: 58px;
    line-height: 1;
}
.brand span {
    color: var(--amber);
}
.app-shell {
    display: flex;
    min-height: 100vh;
}
.sidebar {
    width: 232px;
    background: var(--ink);
    color: #fff;
    display: flex;
    flex-direction: column;
    padding: 35px 23px 23px;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 10;
}
.sidebar .brand {
    padding-left: 11px;
}
.sidebar-caption {
    font-size: 9px;
    letter-spacing: 1.7px;
    color: #92a59c;
    margin: 18px 0 48px 12px;
}
.sidebar nav {
    display: grid;
    gap: 8px;
}
.nav-item {
    display: flex;
    gap: 13px;
    align-items: center;
    border: 0;
    width: 100%;
    color: #adc0b7;
    background: transparent;
    text-align: left;
    border-radius: 10px;
    padding: 15px 14px;
    font-weight: 500;
    font-size: 14px;
    min-height: 50px;
}
.nav-item.active {
    background: #2d443c;
    color: var(--amber);
}
.nav-item:hover {
    background: #2d443c;
}
.nav-item svg {
    width: 19px;
    height: 19px;
}
.nav-badge {
    margin-left: auto;
    font-size: 11px;
    padding: 2px 7px;
    background: #415b4e;
    border-radius: 5px;
}
.sidebar-bottom {
    margin-top: auto;
    padding-top: 30px;
    display: flex;
    align-items: center;
    gap: 11px;
}
.sidebar-bottom strong {
    font-size: 12px;
    display: block;
}
.sidebar-bottom span {
    font-size: 10px;
    display: block;
    color: #9eafa6;
    margin-top: 4px;
}
.account-avatar {
    background: #3f5649;
    color: #e8bc81;
    display: grid;
    place-items: center;
    min-width: 36px;
    height: 36px;
    border-radius: 10px;
    font-weight: 700;
}
.logout {
    background: transparent;
    border: 0;
    font-size: 23px;
    color: #b5c4ba;
    min-width: 34px;
    min-height: 44px;
}
.workspace {
    margin-left: 232px;
    flex: 1;
    min-width: 0;
}
.dot-divider {
    padding: 0 14px;
    color: #aeb4aa;
}
.content {
    padding: 38px 43px 50px;
    max-width: 1600px;
    margin: auto;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 32px;
}
.page-heading p {
    font-size: 14px;
    color: var(--muted);
    margin-top: 10px;
}
.button {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 13px 19px;
    min-height: 48px;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-weight: 600;
    font-size: 13px;
    color: var(--ink);
}
.button svg {
    width: 18px;
    height: 18px;
}
.primary {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}
.primary:hover {
    background: #173d31;
}
.warm {
    background: var(--amber);
    border-color: var(--amber);
}
.danger {
    color: var(--red);
    background: #fff1ee;
    border-color: #f0d8d1;
}
.wide {
    width: 100%;
}
.hero-banner {
    border-radius: 16px;
    padding: 28px 32px;
    background: #e9eee2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 26px;
    overflow: hidden;
    position: relative;
}
.hero-banner h2 {
    font-size: 25px;
}
.hero-banner p {
    font-size: 13px;
    color: #6a7d6c;
    margin-top: 8px;
}
.banner-icon {
    color: #648367;
    opacity: 0.65;
    transform: rotate(-9deg);
    padding-right: 22px;
}
.banner-icon svg {
    width: 72px;
    height: 72px;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 34px;
}
.stat-card {
    padding: 22px 24px;
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 13px;
}
.stat-label {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 13px;
    display: flex;
    align-items: center;
    gap: 7px;
}
.stat-value {
    font-family: "Manrope", system-ui, sans-serif;
    letter-spacing: -0.8px;
    font-size: 27px;
    font-weight: 800;
}
.stat-sub {
    font-size: 10px;
    color: #93998e;
    margin-top: 7px;
}
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 24px 0 18px;
    gap: 15px;
}
.section-heading h2 {
    font-size: 17px;
}
.sub-label {
    font-size: 11px;
    color: var(--muted);
}
.session-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.session-card {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 15px;
    padding: 25px;
    text-align: left;
    transition:
        transform 0.15s,
        box-shadow 0.15s;
    width: 100%;
    color: var(--ink);
}
.session-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 21px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
    font-weight: 600;
    padding: 6px 9px;
    border-radius: 6px;
    background: #eef4ea;
    color: #55754c;
    white-space: nowrap;
}
.badge.open {
    background: #fff2de;
    color: #ab792f;
}
.badge.closed {
    background: #eff0ed;
    color: #7d857b;
}
.card-title {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 6px;
}
.card-date {
    color: var(--muted);
    font-size: 12px;
}
.card-footer {
    margin-top: 27px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.card-amount {
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
}
.arrow-link {
    font-size: 20px;
}
.empty {
    border: 1px dashed #cfd8ca;
    border-radius: 15px;
    text-align: center;
    padding: 54px 24px;
    color: var(--muted);
    background: #ffffff60;
}
.empty h3 {
    color: var(--ink);
    margin-bottom: 8px;
}
.empty .button {
    margin-top: 20px;
}
.empty svg {
    width: 38px;
    height: 38px;
    margin-bottom: 18px;
    color: #7d9279;
}
.empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}
.empty-actions .button {
    margin-top: 0;
}
.empty-actions .button svg {
    width: 18px;
    height: 18px;
    margin: 0;
    color: inherit;
}
.toolbar {
    display: flex;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}
.search {
    position: relative;
    flex: 1;
    max-width: 360px;
}
.search svg {
    position: absolute;
    left: 15px;
    top: 15px;
    width: 18px;
    height: 18px;
    color: #98a18e;
}
.search input {
    padding-left: 43px;
    margin: 0;
}
.segmented {
    display: flex;
    gap: 4px;
    padding: 4px;
    background: #ecefe7;
    border-radius: 9px;
}
.segmented button {
    border: 0;
    background: transparent;
    border-radius: 6px;
    min-height: 38px;
    padding: 8px 13px;
    font-size: 12px;
    color: #81897d;
}
.segmented button.active {
    background: #fff;
    box-shadow: 0 2px 5px #00000005;
    color: var(--ink);
    font-weight: 600;
}
.panel {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 14px;
    overflow: hidden;
}
.panel-title {
    padding: 22px 24px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.table-wrap {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
th {
    text-align: left;
    font-size: 10px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #8d9487;
    background: #fafbf7;
    padding: 16px 23px;
    font-weight: 500;
}
td {
    padding: 19px 23px;
    border-top: 1px solid #edf0e7;
}
.tab-row {
    cursor: pointer;
}
.tab-row:hover {
    background: #fbfcf8;
}
.person-cell {
    display: flex;
    align-items: center;
    gap: 13px;
    font-weight: 600;
}
.person-avatar {
    width: 37px;
    height: 37px;
    border-radius: 10px;
    background: #edf1e7;
    color: #73865e;
    display: grid;
    place-items: center;
    font-size: 12px;
}
.text-right {
    text-align: right;
}
.row-actions {
    display: flex;
    gap: 8px;
}
.back-button {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    gap: 7px;
    color: #7c877a;
    font-size: 14px;
    margin: -4px 0 16px -8px;
    padding: 8px;
    min-height: 48px;
    touch-action: manipulation;
}
.back-button svg {
    width: 20px;
    height: 20px;
}
.bill-heading {
    display: flex;
    align-items: center;
    gap: 14px;
}
.bill-heading .person-avatar {
    width: 48px;
    height: 48px;
    font-size: 16px;
}
.bill-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    align-items: start;
}
.product-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
    gap: 15px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.product-button {
    min-height: 138px;
    border: 1px solid #d8e2d0;
    background: #edf2e7;
    border-radius: 13px;
    padding: 17px 18px;
    text-align: left;
    color: #314a30;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.1s;
}
.product-button:nth-child(4n + 2) {
    background: #faf0df;
    border-color: #eee0c5;
    color: #8c7044;
}
.product-button:nth-child(4n + 3) {
    background: #e8f0ee;
    border-color: #d4e3de;
    color: #3b7465;
}
.product-button:nth-child(4n + 4) {
    background: #f0ecf4;
    border-color: #e0d9e8;
    color: #77638c;
}
.product-button:hover {
    filter: brightness(0.98);
    transform: translateY(-2px);
}
.product-button:active {
    transform: scale(0.97);
}
.product-symbol {
    width: 30px;
    height: 30px;
    opacity: 0.7;
}
.product-button strong {
    font-size: 15px;
    margin: 14px 0 5px;
}
.product-button span {
    font-size: 12px;
    opacity: 0.7;
}
.receipt {
    position: sticky;
    top: 22px;
}
.receipt-header {
    padding: 23px 24px 18px;
    border-bottom: 1px dashed #dce3d4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.receipt-header .eyebrow {
    font-size: 9px;
    margin-bottom: 8px;
}
.receipt-header h2 {
    font-size: 18px;
}
.receipt-lines {
    padding: 6px 23px 20px;
    max-height: 48vh;
    overflow: auto;
}
.receipt-line {
    padding: 18px 0 14px;
    border-bottom: 1px solid #eff1e9;
}
.line-main {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 13px;
    font-weight: 600;
}
.line-heading {
    display: flex;
    align-items: center;
    gap: 8px;
}
.line-details {
    flex: 1;
    min-width: 0;
}
.line-main span:first-child {
    overflow-wrap: anywhere;
}
.line-main span:last-child {
    white-space: nowrap;
}
.history-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    border: 0;
    background: transparent;
    color: var(--muted);
    touch-action: manipulation;
}
.history-icon:hover {
    background: var(--paper);
    color: var(--green);
}
.line-meta {
    color: var(--muted);
    font-size: 11px;
    margin-top: 5px;
}
.line-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.icon-button {
    border: 1px solid var(--border);
    background: #fff;
    border-radius: 8px;
    display: grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    color: var(--ink);
    font-size: 21px;
}
.icon-button svg {
    width: 18px;
    height: 18px;
}
.line-count {
    min-width: 24px;
    text-align: center;
    font-size: 13px;
    font-weight: 700;
}
.delete-button {
    margin-left: auto;
    color: #99a08e;
}
.receipt-total {
    padding: 22px 24px;
    background: #fafbf7;
    border-top: 1px dashed #dce3d4;
}
.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 12px;
}
.total-row.big {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 17px 0 20px;
}
.receipt-total .small {
    margin: 12px 0 0;
    text-align: center;
}
.history-button {
    width: 100%;
    border: 0;
    background: transparent;
    font-size: 12px;
    color: #7b8876;
    padding: 18px;
}
.history-button svg {
    vertical-align: middle;
    width: 14px;
    height: 14px;
    margin-right: 6px;
}
.locked-banner {
    background: #edf4e9;
    border-radius: 10px;
    padding: 15px 18px;
    color: #59724f;
    font-size: 12px;
    margin-bottom: 18px;
    line-height: 1.5;
}
.locked-banner svg {
    width: 16px;
    vertical-align: middle;
    margin-right: 6px;
}
.empty-receipt {
    text-align: center;
    font-size: 12px;
    color: #8a9384;
    padding: 32px 0;
}
.history-list {
    max-height: 55vh;
    overflow: auto;
    margin-top: 18px;
}
.history-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 17px 0;
    border-bottom: 1px solid var(--border);
}
.history-time {
    color: #8d9785;
    font-size: 13px;
    min-width: 42px;
    padding-top: 3px;
}
.history-stamp {
    display: grid;
    justify-items: center;
    gap: 6px;
}
.history-detail {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}
.history-delta {
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
}
.history-delta.added {
    background: #edf4e9;
    color: #3c6540;
}
.history-delta.removed {
    background: #f9eee7;
    color: #98533b;
}
.history-item strong {
    display: block;
    font-size: 14px;
    line-height: 1.5;
}
.history-item .muted {
    font-size: 12px;
    margin-top: 4px;
    display: block;
}
.history-item .button {
    margin-left: auto;
    padding: 8px 12px;
    min-height: 48px;
    font-size: 13px;
}
.modal-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 25px;
    gap: 20px;
}
.modal-heading h2 {
    font-size: 25px;
}
.modal-heading p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 8px;
}
.close-modal {
    background: #f3f5ee;
    border: 0;
    border-radius: 9px;
    min-width: 36px;
    height: 36px;
    font-size: 23px;
    color: #85917c;
}
dialog {
    border: 0;
    border-radius: 18px;
    padding: 30px;
    width: 480px;
    max-width: calc(100vw - 28px);
    box-shadow: 0 35px 100px #142e2940;
    max-height: 90dvh;
    overflow: auto;
    color: var(--ink);
}
dialog::backdrop {
    background: #142e2960;
    backdrop-filter: blur(3px);
}
label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 17px 0;
}
input,
select {
    border: 1px solid #dce2d5;
    border-radius: 9px;
    padding: 13px 14px;
    background: #fff;
    min-height: 48px;
    font-size: 16px;
    width: 100%;
    margin-top: 8px;
    color: var(--ink);
    outline: none;
}
input:focus,
select:focus {
    border-color: #608062;
}
input[type="checkbox"] {
    min-height: 0;
    width: 18px;
    height: 18px;
    accent-color: var(--green);
    margin: 0;
}
.checkbox {
    display: flex;
    align-items: center;
    gap: 9px;
}
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 26px;
}
.name-options {
    display: grid;
    gap: 7px;
    max-height: 230px;
    overflow: auto;
    margin-top: 14px;
}
.name-option {
    padding: 12px 15px;
    border: 1px solid var(--border);
    border-radius: 9px;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    font-size: 13px;
}
.name-option:hover {
    background: #f1f5eb;
}
.payment-summary {
    margin: 14px 0;
}
.checkout-body > label {
    margin: 14px 0;
}
.checkout-body .modal-footer {
    margin-top: 16px;
}
.checkout-body .segmented button {
    flex: 1;
    min-height: 48px;
    font-size: 14px;
}
.payment-summary .total-row {
    gap: 12px;
    font-size: 14px;
}
.payment-summary .total-row:last-child {
    margin-bottom: 0;
}
.payment-amount {
    text-align: center;
    background: var(--green);
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    margin: 16px 0;
}
.payment-amount span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #dce9df;
}
.payment-amount strong {
    font-family: "Manrope", sans-serif;
    display: block;
    font-size: 42px;
    line-height: 1.15;
    letter-spacing: -1.5px;
    margin-top: 6px;
}
.payment-amount p {
    font-size: 12px;
    color: #dce9df;
    margin-top: 8px;
    line-height: 1.5;
}
.change-row {
    background: #f3f6ee;
    padding: 16px;
    border-radius: 9px;
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    font-size: 14px;
}
.notice {
    position: fixed;
    bottom: 24px;
    left: calc(50% + 100px);
    transform: translateX(-50%);
    max-width: calc(100vw - 30px);
    border-radius: 12px;
    padding: 14px 20px;
    background: var(--ink);
    color: #fff;
    z-index: 99;
    box-shadow: var(--shadow);
    font-size: 13px;
    line-height: 1.6;
}
.notice.error {
    background: #9f463b;
}
.notice button {
    background: transparent;
    border: 1px solid #ffffff70;
    border-radius: 5px;
    color: #fff;
    padding: 4px 8px;
    margin-left: 10px;
}
.admin-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.list-row {
    padding: 17px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    gap: 10px;
}
.list-row strong {
    font-size: 13px;
}
.list-row .muted {
    font-size: 11px;
    display: block;
    margin-top: 5px;
}
.list-row .button {
    min-height: 38px;
    font-size: 11px;
    padding: 8px 12px;
}
.settings-form {
    padding: 5px 23px 23px;
}
.report-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 22px;
}
.export-tools {
    display: flex;
    gap: 10px;
}
.loading {
    padding: 70px;
    text-align: center;
    color: var(--muted);
}
.error:not(.notice) {
    padding: 13px;
    background: #fff1ed;
    border-radius: 8px;
    font-size: 12px;
    color: var(--red);
    margin: 15px 0;
}
.login-page {
    display: flex;
    min-height: 100dvh;
    align-items: center;
    justify-content: center;
    background: #f4f5ef;
    padding: 40px;
    gap: 100px;
}
.login-card {
    width: 365px;
}
.login-card .brand {
    margin-bottom: 32px;
}
.login-card h1 {
    font-size: 38px;
    line-height: 1.2;
    margin-bottom: 15px;
}
.login-card form {
    margin-top: 30px;
}
.login-card .wide {
    margin-top: 10px;
    justify-content: space-between;
}
.login-card > p.small {
    margin-top: 22px;
    max-width: 310px;
}
.login-art {
    border-radius: 25px;
    background: #1e3f32;
    width: 390px;
    height: 510px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #e6cba0;
}
.login-art p {
    font-family: Georgia, serif;
    font-size: 24px;
    text-align: center;
    line-height: 1.5;
    margin-top: 42px;
    letter-spacing: -0.5px;
}
.art-glass {
    border: 3px solid #a5bc8d;
    border-top: 0;
    width: 105px;
    height: 155px;
    transform: rotate(-9deg);
    border-radius: 0 0 20px 20px;
    position: relative;
}
.art-glass:before {
    content: "";
    position: absolute;
    left: -10px;
    right: -10px;
    top: -8px;
    height: 15px;
    border: 3px solid #a5bc8d;
    border-radius: 50%;
    background: #1e3f32;
}
.art-glass div {
    height: 105px;
    background: #deb478b0;
    border-radius: 0 0 15px 15px;
    position: absolute;
    bottom: 7px;
    left: 7px;
    right: 7px;
}
.art-glass:after {
    content: "";
    position: absolute;
    left: 98px;
    top: 32px;
    width: 37px;
    height: 63px;
    border: 3px solid #a5bc8d;
    border-radius: 0 18px 18px 0;
}
.screen-reader {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
@media (min-width: 1500px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 1150px) {
    .sidebar {
        width: 195px;
        padding-left: 16px;
        padding-right: 16px;
    }
    .workspace {
        margin-left: 195px;
    }
    .content {
        padding: 30px 26px;
    }
    .bill-layout {
        grid-template-columns: 1fr 330px;
        gap: 18px;
    }
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .stats-grid {
        gap: 12px;
    }
    .stat-card {
        padding: 20px 17px;
    }
    .stat-value {
        font-size: 23px;
    }
}
@media (max-width: 850px) {
    .sidebar {
        width: 80px;
        align-items: center;
        padding: 25px 10px;
    }
    .sidebar .brand {
        font-size: 39px;
        letter-spacing: -3px;
        padding: 0;
    }
    .sidebar-caption {
        display: none;
    }
    .sidebar nav {
        margin-top: 45px;
    }
    .nav-item {
        padding: 15px;
        justify-content: center;
    }
    .nav-item > span {
        display: none;
    }
    .sidebar-bottom {
        flex-direction: column;
        gap: 8px;
    }
    .sidebar-bottom > div:not(.account-avatar) {
        display: none;
    }
    .workspace {
        margin-left: 80px;
    }
    .bill-layout {
        grid-template-columns: 1fr 310px;
    }
    .content {
        padding: 25px 20px;
    }
    .stat-card {
        padding: 17px 15px;
    }
    .stat-label {
        font-size: 10px;
    }
    .stat-value {
        font-size: 21px;
    }
    .report-grid {
        grid-template-columns: 1fr;
    }
    .admin-grid {
        grid-template-columns: 1fr;
    }
    .login-page {
        gap: 45px;
    }
    .login-art {
        width: 300px;
        height: 450px;
    }
    .notice {
        left: calc(50% + 40px);
    }
}
@media (max-width: 670px) {
    .sidebar {
        position: fixed;
        inset: auto 0 0;
        width: 100%;
        height: 70px;
        padding: 4px 12px;
        flex-direction: row;
        justify-content: center;
        background: #172c27f5;
        backdrop-filter: blur(10px);
    }
    .sidebar > .brand,
    .sidebar-bottom {
        display: none;
    }
    .sidebar nav {
        display: flex;
        margin: 0;
        gap: 6px;
        width: 100%;
        justify-content: space-around;
    }
    .nav-item {
        min-height: 55px;
        flex-direction: column;
        gap: 4px;
        padding: 7px 12px;
        border-radius: 8px;
        font-size: 9px;
    }
    .nav-item > span {
        display: block;
    }
    .nav-item .nav-badge {
        display: none;
    }
    .nav-item svg {
        width: 19px;
        height: 19px;
    }
    .workspace {
        margin-left: 0;
        padding-bottom: 75px;
    }
    .content {
        padding: 25px 18px;
    }
    .page-heading {
        align-items: flex-start;
        gap: 12px;
        margin-bottom: 25px;
    }
    .page-heading h1 {
        font-size: 29px;
        letter-spacing: -1px;
    }
    .page-heading p {
        font-size: 12px;
    }
    .page-heading .button {
        padding: 12px;
        font-size: 11px;
    }
    .page-heading .button svg {
        width: 15px;
    }
    .hero-banner {
        padding: 24px;
        min-height: 132px;
    }
    .hero-banner h2 {
        font-size: 21px;
    }
    .hero-banner p {
        font-size: 11px;
        max-width: 225px;
    }
    .banner-icon {
        padding: 0;
        position: absolute;
        right: 12px;
        opacity: 0.25;
    }
    .banner-icon svg {
        width: 64px;
    }
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        margin-bottom: 25px;
    }
    .stat-card {
        padding: 17px 18px;
    }
    .stat-value {
        font-size: 23px;
    }
    .session-grid {
        grid-template-columns: 1fr;
    }
    .session-card {
        padding: 23px;
    }
    .toolbar {
        flex-wrap: wrap;
        gap: 12px;
    }
    .search {
        max-width: none;
        flex-basis: 100%;
    }
    .toolbar .segmented {
        width: 100%;
    }
    .segmented button {
        flex: 1;
    }
    .bill-layout {
        display: flex;
        flex-direction: column;
        gap: 20px;
    }
    .bill-products,
    .receipt {
        width: 100%;
    }
    .receipt {
        position: static;
    }
    .product-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 9px;
    }
    .product-button {
        min-height: 122px;
        padding: 14px 12px;
    }
    .product-button strong {
        font-size: 12px;
    }
    .product-button span {
        font-size: 10px;
    }
    .product-symbol {
        width: 25px;
        height: 25px;
    }
    .receipt-lines {
        max-height: none;
    }
    .bill-heading {
        gap: 9px;
    }
    .bill-heading h1 {
        font-size: 25px;
    }
    .bill-heading .person-avatar {
        width: 39px;
        height: 39px;
        font-size: 12px;
    }
    .page-heading .row-actions {
        flex-direction: column;
    }
    .table-wrap table th,
    .table-wrap table td {
        padding: 15px 14px;
    }
    .person-cell {
        gap: 8px;
        font-size: 12px;
    }
    .person-avatar {
        width: 31px;
        height: 31px;
        font-size: 10px;
    }
    .report-grid {
        gap: 15px;
    }
    .export-tools {
        flex-wrap: wrap;
    }
    .notice {
        left: 50%;
        bottom: 86px;
        width: max-content;
    }
    .login-page {
        padding: 30px 22px;
    }
    .login-art {
        display: none;
    }
    .login-card {
        width: 100%;
        max-width: 365px;
    }
    dialog {
        padding: 24px;
        max-height: 86dvh;
    }
    .modal-heading h2 {
        font-size: 23px;
    }
    .history-item {
        gap: 9px;
    }
    .history-item strong {
        font-size: 14px;
    }
    .modal-footer .button {
        flex: 1;
    }
    .section-heading {
        flex-wrap: wrap;
    }
    .receipt-total {
        padding-bottom: 25px;
    }
    .product-toolbar h2 {
        font-size: 17px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.mobile-bill-dock {
    display: none;
}
@media (max-width: 670px) {
    .mobile-bill-dock {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 15px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 70px;
        z-index: 8;
        padding: 12px 18px;
        background: #fffefa;
        border-top: 1px solid var(--border);
        box-shadow: 0 -5px 25px #203a2d08;
    }
    .mobile-bill-dock span {
        font-size: 10px;
        color: var(--muted);
        display: block;
    }
    .mobile-bill-dock strong {
        font-size: 21px;
        letter-spacing: -0.5px;
        display: block;
        margin-top: 3px;
    }
    .mobile-bill-dock .button {
        min-width: 145px;
    }
    .bill-layout {
        padding-bottom: 70px;
    }
}

[hidden] {
    display: none !important;
}
.product-toolbar {
    margin-bottom: 16px;
}
.product-toolbar p {
    margin-top: 6px;
}
.product-search {
    max-width: none;
    margin-bottom: 10px;
}
.consumption-status {
    font-size: 11px;
    color: #71806c;
    min-height: 36px;
    padding: 2px 0 12px;
    line-height: 1.5;
}
.consumption-status.waiting {
    color: #9b702f;
}
.product-button {
    position: relative;
    touch-action: manipulation;
}
.product-button[data-queued]:not([data-queued=""]):after {
    content: "+" attr(data-queued) " wacht";
    position: absolute;
    right: 10px;
    top: 12px;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 7px;
    border-radius: 6px;
    background: #ffffffba;
    color: var(--green);
}
.line-controls .icon-button {
    min-width: 48px;
    height: 48px;
    touch-action: manipulation;
}
.product-search + .consumption-status {
    min-height: 38px;
}

@media (max-width: 670px) {
    .product-button[data-queued]:not([data-queued=""]):after {
        font-size: 9px;
        padding: 3px 5px;
        right: 7px;
        top: 10px;
    }
    .product-toolbar h2 {
        font-size: 20px;
    }
    .product-search input {
        font-size: 16px;
    }
    .receipt-lines {
        overflow: visible;
    }
    .bill-layout {
        padding-bottom: 110px;
    }
    .notice {
        bottom: 165px;
    }
}
/* Core screens: accounts first, secondary actions in menus. */
.content {
    max-width: 1400px;
    padding-top: 30px;
}
.sidebar-caption {
    display: none;
}
.sidebar nav {
    margin-top: 42px;
}
.sidebar-bottom span:empty {
    display: none;
}
.page-heading {
    margin-bottom: 24px;
}
.page-heading h1,
h1 {
    font-size: 32px;
    letter-spacing: -1px;
}
.page-heading p {
    margin-top: 7px;
    font-size: 12px;
}
.summary-strip {
    display: flex;
    gap: 32px;
    align-items: center;
    padding: 20px 24px;
    margin-bottom: 24px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
}
.summary-item {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 110px;
}
.summary-item span,
.stat-card > span {
    font-size: 12px;
    color: var(--muted);
}
.summary-item strong {
    font-size: 27px;
    letter-spacing: -0.8px;
}
.stat-card > span,
.stat-card > strong {
    display: block;
}
.stat-card > strong {
    font-size: 27px;
    letter-spacing: -0.8px;
    margin-top: 10px;
}
.account-list {
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--white);
    overflow: hidden;
}
.account-list .empty {
    border: 0;
}
.account-row {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 86px;
    width: 100%;
    padding: 18px 23px;
    background: #fff;
    border: 0;
    border-bottom: 1px solid var(--border);
    color: var(--ink);
    text-align: left;
    touch-action: manipulation;
}
.account-row:last-child {
    border-bottom: 0;
}
.account-row:hover {
    background: #f2f6ef;
}
.account-row > div:first-child {
    flex: 1;
}
.account-row > div > strong {
    font-size: 17px;
}
.account-row small {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 5px;
}
.account-amount {
    display: flex;
    align-items: center;
    gap: 22px;
}
.account-row > svg {
    width: 17px;
    height: 17px;
    transform: rotate(180deg);
    color: #9ba596;
}
.account-row .badge {
    font-size: 11px;
    padding: 6px 10px;
}
.section-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-top: 22px;
}
.bill-title {
    align-items: center;
}
.bill-title .row-actions {
    align-items: center;
}
.product-button {
    min-height: 92px;
    padding: 19px 18px;
    gap: 10px;
    background: #edf2e7;
}
.product-button strong {
    margin: 0;
    font-size: 17px;
    line-height: 1.25;
}
.product-button span {
    font-size: 13px;
}
.product-button[data-queued]:not([data-queued=""]):after {
    top: auto;
    bottom: 12px;
}
.consumption-status:empty {
    display: none;
}
.consumption-status {
    min-height: 0;
    padding: 0 0 10px;
}
.product-search + .consumption-status {
    min-height: 0;
}
.product-toolbar {
    margin-bottom: 14px;
}
.product-toolbar h2 {
    font-size: 18px;
}
.receipt-header {
    padding: 21px 23px 16px;
}
.receipt-total {
    padding-top: 15px;
}
.paid-state {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: #507549;
    font-size: 13px;
    padding: 9px;
}
.paid-state svg {
    width: 19px;
    height: 19px;
}
.payment-fee {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 14px;
    color: var(--muted);
    font-size: 13px;
}
.settings-tabs {
    margin-bottom: 24px;
    width: max-content;
    max-width: 100%;
}
.settings-tabs button {
    min-height: 43px;
    min-width: 90px;
}
.editor-options {
    margin-top: 22px;
}
.editor-options summary {
    font-size: 12px;
    cursor: pointer;
    color: #6c7b64;
    padding: 8px 0;
}
.session-card h2 {
    font-size: 21px;
}
.session-card .card-top {
    margin-bottom: 9px;
}
.session-card .card-footer {
    font-size: 12px;
    margin-top: 20px;
    color: var(--muted);
}
.session-card .card-footer strong {
    font-size: 23px;
    color: var(--ink);
}
.login-page {
    padding: 24px;
    background: var(--paper);
}
.login-card {
    padding: 36px;
    width: 420px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow);
}
.login-card .brand {
    display: block;
    font-size: 53px;
    margin-bottom: 30px;
    width: max-content;
}
.login-card h1 {
    font-size: 27px;
    margin-bottom: 0;
    letter-spacing: -0.7px;
}
.login-card form {
    margin-top: 22px;
}
.login-card .wide {
    justify-content: center;
    margin-top: 20px;
}
.auth-link {
    display: block;
    text-align: center;
    font-size: 13px;
    color: var(--green);
    margin-top: 23px;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.auth-message {
    margin-top: 24px;
    font-size: 14px;
    color: var(--muted);
}
@media (max-width: 850px) {
    .sidebar nav {
        margin-top: 45px;
    }
    .account-amount {
        gap: 15px;
    }
    .summary-strip {
        gap: 25px;
    }
}
@media (max-width: 670px) {
    .sidebar nav {
        margin-top: 0;
    }
    .content {
        padding: 22px 16px;
    }
    .page-heading h1 {
        font-size: 26px;
    }
    .page-heading {
        gap: 12px;
    }
    .page-heading > .button {
        max-width: 150px;
    }
    .summary-strip {
        padding: 17px 18px;
        gap: 20px;
        flex-wrap: wrap;
    }
    .summary-item {
        min-width: 90px;
    }
    .summary-item strong {
        font-size: 24px;
    }
    .account-row {
        padding: 16px;
        gap: 12px;
        min-height: 83px;
    }
    .account-row > div > strong {
        font-size: 16px;
    }
    .account-amount {
        flex-direction: column;
        align-items: flex-end;
        gap: 7px;
    }
    .account-row .badge {
        font-size: 10px;
        padding: 4px 8px;
    }
    .bill-title .row-actions {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
        gap: 6px;
    }
    .bill-title .row-actions > .button {
        min-height: 48px;
        padding: 10px;
        font-size: 12px;
    }
    .bill-title h1 {
        font-size: 25px;
    }
    .product-button {
        min-height: 88px;
        padding: 15px 12px;
    }
    .product-button strong {
        font-size: 14px;
    }
    .product-button span {
        font-size: 12px;
    }
    .product-button[data-queued]:not([data-queued=""]):after {
        bottom: 8px;
        top: auto;
    }
    .settings-tabs {
        width: 100%;
    }
    .settings-tabs button {
        min-width: 0;
        font-size: 11px;
        padding: 8px;
    }
    .panel-title {
        padding: 18px;
        gap: 12px;
        flex-wrap: wrap;
    }
    .panel-title h2 {
        font-size: 18px;
    }
    .panel-title .button {
        font-size: 11px;
        padding: 11px;
    }
    .login-card {
        padding: 28px 24px;
        width: 100%;
        max-width: 380px;
    }
    .session-grid {
        gap: 12px;
    }
    .session-card {
        padding: 21px;
    }
    .section-actions .button {
        font-size: 12px;
    }
    .modal-footer {
        margin-top: 22px;
    }
    .workspace {
        padding-bottom: calc(75px + env(safe-area-inset-bottom));
    }
    .sidebar {
        height: calc(70px + env(safe-area-inset-bottom));
        padding-bottom: calc(4px + env(safe-area-inset-bottom));
    }
    .mobile-bill-dock {
        bottom: calc(70px + env(safe-area-inset-bottom));
    }
    .notice {
        bottom: calc(165px + env(safe-area-inset-bottom));
    }
}
.product-button strong,
.account-row strong,
.bill-title h1 {
    overflow-wrap: anywhere;
}
.account-row > div:first-child {
    min-width: 0;
}
.drink-modal {
    padding: 24px;
    width: min(380px, calc(100% - 32px));
}
.drink-confirmation {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 16px 0 24px;
}
.drink-check {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #edf3ef;
    color: #1f644b;
    visibility: hidden;
}
.drink-saved .drink-check {
    visibility: visible;
}
.drink-check svg {
    width: 24px;
    height: 24px;
}
#drink-count {
    font-size: 64px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
#drink-status {
    font-weight: 600;
    color: var(--muted);
}
.drink-actions {
    display: grid;
    gap: 10px;
}
.drink-actions .button {
    min-height: 54px;
    font-size: 16px;
}
.drink-countdown {
    text-align: center;
    font-size: 12px;
    color: var(--muted);
    margin: 16px 0 0;
    min-height: 18px;
}
#modal-notice .notice {
    position: static;
    transform: none;
    width: 100%;
    max-width: none;
    margin: 0 0 18px;
    padding: 14px;
    font-size: 13px;
    box-shadow: none;
    flex-wrap: wrap;
}
.payment-reference {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.payment-reference > div {
    display: grid;
    gap: 4px;
}
.payment-reference span,
.payment-reference-small {
    color: var(--muted);
    font-size: 12px;
}
.payment-reference strong {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
    font-size: 16px;
    letter-spacing: 0.04em;
}
.payment-reference-small {
    display: block;
    margin-top: 4px;
}
@media (max-width: 600px) {
    .button,
    .segmented button {
        min-height: 48px;
    }
    .close-modal {
        min-width: 44px;
        height: 44px;
    }
    .modal-footer .button {
        min-height: 50px;
    }
}
html {
    scroll-padding-top: 16px;
}
input,
textarea,
select {
    scroll-margin-block: 16px;
}
.modal-body {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-padding-block: 16px;
}
dialog {
    position: fixed;
    inset: calc(var(--viewport-top, 0px) + var(--viewport-height, 100dvh) / 2) 0
        auto;
    margin: 0 auto;
    transform: translateY(-50%);
    max-height: calc(var(--viewport-height, 100dvh) - 32px);
}
#modal-content {
    display: flex;
    flex-direction: column;
    max-height: calc(
        var(--viewport-height, 100dvh) - 32px - var(--dialog-padding, 30px) * 2
    );
}
.modal-heading,
#modal-notice {
    flex-shrink: 0;
}
.modal-body.picker-body {
    display: flex;
    flex-direction: column;
}
.picker-body > .search,
.picker-body > label,
.picker-body > .modal-footer {
    flex-shrink: 0;
}
.picker-body > .search {
    flex-basis: auto;
}
.picker-body > .name-options {
    min-height: 0;
    max-height: none;
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.drink-modal {
    --dialog-padding: 24px;
}
.login-page {
    min-height: var(--viewport-height, 100dvh);
    align-items: safe center;
}
.keyboard-open .notice {
    top: calc(var(--viewport-top, 0px) + 12px);
    bottom: auto;
}
@media (max-width: 670px) {
    dialog {
        --dialog-padding: 24px;
    }
    .keyboard-open dialog,
    .input-focused dialog {
        top: calc(var(--viewport-top, 0px) + 16px);
        transform: none;
    }
    .keyboard-open .sidebar,
    .keyboard-open .mobile-bill-dock,
    .input-focused .sidebar,
    .input-focused .mobile-bill-dock {
        display: none;
    }
    .keyboard-open .workspace,
    .keyboard-open .bill-layout,
    .input-focused .workspace,
    .input-focused .bill-layout {
        padding-bottom: 16px;
    }
    .keyboard-open .product-search,
    .input-focused .product-search {
        position: sticky;
        top: calc(var(--viewport-top, 0px) + 8px);
        z-index: 3;
        background: var(--paper);
        padding-block: 8px;
    }
    .product-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }
    .product-button {
        min-height: 98px;
        padding: 18px 16px;
    }
    .product-button strong {
        font-size: 16px;
    }
    .product-button span {
        font-size: 14px;
    }
    .nav-item {
        font-size: 11px;
    }
    .account-row .badge {
        font-size: 12px;
    }
    .name-option {
        min-height: 54px;
        padding: 14px;
        font-size: 16px;
        gap: 12px;
    }
    .name-option > span:first-child {
        min-width: 0;
        overflow-wrap: anywhere;
    }
    .keyboard-open #modal-notice .notice {
        position: static;
    }
}

/* Account selection */
.session-heading {
    align-items: end;
}
.session-heading h1 {
    display: flex;
    align-items: center;
    gap: 12px;
}
.session-heading .session-caption {
    margin: 0 0 10px;
    color: var(--muted);
    overflow-wrap: anywhere;
}
.heading-count {
    display: inline-grid;
    place-items: center;
    min-width: 32px;
    height: 32px;
    padding: 0 9px;
    background: #e5ece4;
    color: var(--green);
    border-radius: 10px;
    font: 600 14px system-ui, sans-serif;
    letter-spacing: 0;
}
.account-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--paper);
}
.account-toolbar .search {
    min-width: 0;
    max-width: none;
    width: 100%;
    min-height: 50px;
}
.account-toolbar input {
    min-width: 0;
    width: 100%;
    font-size: 16px;
}
.sort-button {
    min-height: 46px;
    min-width: 66px;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: white;
    color: var(--green);
    font-size: 13px;
    font-weight: 600;
    touch-action: manipulation;
}
.account-row {
    min-height: 80px;
    gap: 16px;
}
.person-avatar {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: #edf1e9;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
}
.person-avatar svg {
    width: 20px;
    height: 20px;
}
.account-name {
    flex: 1;
    min-width: 0;
}
.account-name strong {
    display: block;
    overflow-wrap: anywhere;
}
.account-amount {
    flex: 0 0 auto;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.account-row > svg {
    flex: 0 0 16px;
}
.account-row small {
    color: var(--muted);
    font-size: 12px;
    font-weight: 400;
}
.create-account {
    color: var(--green);
    background: #f1f5ec;
}
.create-account .person-avatar {
    background: var(--green);
    color: white;
}
.paid-accounts > summary {
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 14px 24px;
    gap: 8px;
    background: #f4f5ef;
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}
.paid-accounts > summary::-webkit-details-marker {
    display: none;
}
.paid-accounts > summary::after {
    content: "";
    width: 7px;
    height: 7px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg);
    margin: -4px 2px 0 auto;
}
.paid-accounts[open] > summary::after {
    transform: rotate(225deg);
    margin-top: 4px;
}
.paid-accounts .person-avatar {
    background: #f1f2ee;
    color: var(--muted);
}
.session-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 18px;
    color: var(--muted);
    font-size: 13px;
}
.session-footer .section-actions {
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}
.account-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 2px 0 12px;
    margin-bottom: 16px;
    scrollbar-width: thin;
}
.account-pill,
.pill-more {
    flex: 0 0 auto;
    min-height: 44px;
    max-width: 180px;
    padding: 10px 18px;
    border: 1px solid #dfe5d9;
    background: white;
    color: var(--green);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    touch-action: manipulation;
}
.account-pill:hover {
    background: #eaf0e5;
}
.account-pill.selected {
    color: white;
    background: var(--green);
    border-color: var(--green);
}
.pill-more {
    border-style: dashed;
    position: sticky;
    right: 0;
    box-shadow: -10px 0 12px var(--paper);
}
.name-options {
    display: flex;
    flex-direction: column;
}
.name-option {
    flex: 0 0 auto;
    min-height: 64px;
    gap: 14px;
}
.name-option > span:first-child {
    min-width: 0;
    flex: 1;
}
.name-option > strong {
    flex: 0 0 auto;
    white-space: nowrap;
}
.name-option strong {
    font-weight: 600;
}
.name-option small {
    display: block;
    margin-top: 4px;
    font-size: 12px;
    color: var(--muted);
}
.name-option > svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}
.picker-empty {
    padding: 20px 0;
    color: var(--muted);
}
.sort-explanation {
    display: grid;
    gap: 14px;
}
.receipts-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}
.receipts-summary > div {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 14px;
    min-width: 0;
}
.receipts-summary > div:last-child {
    background: var(--ink);
    color: white;
    border-color: var(--ink);
}
.receipts-summary span {
    font-size: 13px;
}
.receipts-summary strong {
    font-size: clamp(21px, 2.3vw, 30px);
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.7px;
    overflow-wrap: anywhere;
}
.receipts-summary small {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}
.receipts-summary > div:last-child small {
    color: #bacbc1;
}
.install-button {
    min-height: 36px;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: white;
    color: var(--green);
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 600;
}
.login-install {
    display: block;
    width: 100%;
    margin-top: 14px;
    min-height: 44px;
}
#install-help p {
    margin: 18px 0;
}
[hidden] {
    display: none !important;
}
@media (max-width: 670px) {
    .session-heading {
        flex-wrap: wrap;
    }
    .session-heading > .button {
        max-width: none;
        min-height: 48px;
        font-size: 14px;
    }
    .session-heading .session-caption {
        font-size: 12px;
    }
    .account-toolbar {
        gap: 8px;
    }
    .account-row {
        min-height: 78px;
        padding: 14px;
        gap: 10px;
    }
    .person-avatar {
        flex-basis: 36px;
        width: 36px;
        height: 38px;
        border-radius: 12px;
    }
    .account-row > svg {
        display: none;
    }
    .account-row .account-amount > strong {
        font-size: 15px;
    }
    .paid-accounts > summary {
        padding-inline: 16px;
    }
    .receipts-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .receipts-summary > div {
        padding: 16px;
    }
    .receipts-summary > div:last-child {
        grid-column: 1 / -1;
    }
    .sidebar {
        height: calc(70px + env(safe-area-inset-bottom, 0px));
        padding-bottom: calc(4px + env(safe-area-inset-bottom, 0px));
    }
    .workspace {
        padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    }
    .mobile-bill-dock {
        bottom: calc(70px + env(safe-area-inset-bottom, 0px));
    }
    .bill-title {
        flex-wrap: wrap;
    }
    .bill-title .row-actions {
        justify-content: flex-start;
    }
    .account-pill.selected {
        max-width: 110px;
    }
    .account-pill {
        max-width: 150px;
    }
    .pill-more {
        min-width: 46px;
        padding: 10px 12px;
    }
    .pill-more span {
        display: none;
    }
    .payment-amount {
        padding: 16px;
        margin-block: 14px;
    }
    .payment-amount strong {
        font-size: 36px;
    }
    .payment-reference {
        margin-bottom: 12px;
    }
    .payment-reference strong {
        font-size: 16px;
    }
    .payment-reference .button {
        padding-inline: 12px;
    }
    .checkout-body .modal-footer .button {
        padding-inline: 10px;
        font-size: 13px;
    }
    .checkout-body .modal-footer .primary {
        flex: 1.4;
    }
    .install-button {
        min-height: 40px;
        padding-inline: 10px;
    }
}
@media (max-width: 380px) {
    .product-button {
        padding-inline: 12px;
    }
    .session-heading > .button {
        width: 100%;
    }
}

.menu-actions {
    display: grid;
    gap: 8px;
}
.menu-actions .button {
    width: 100%;
    min-height: 52px;
    padding: 14px 16px;
    justify-content: flex-start;
    text-align: left;
    white-space: normal;
}

.guide-intro {
    color: var(--muted);
    margin-bottom: 20px;
}
.guide-steps {
    list-style: none;
    counter-reset: guide;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 22px;
}
.guide-steps > li {
    position: relative;
    counter-increment: guide;
    padding-left: 44px;
    break-inside: avoid;
}
.guide-steps > li::before {
    content: counter(guide);
    display: grid;
    place-items: center;
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #e8eee3;
    color: var(--green);
    font-weight: 700;
}
.guide-steps h3 {
    margin: 3px 0 8px;
}
.guide-steps p + p {
    margin-top: 8px;
}
.guide-note {
    background: #f7f1e4;
    border: 1px solid #e8dab8;
    border-radius: 12px;
    padding: 18px;
    margin-top: 24px;
    break-inside: avoid;
}
.guide-note h3 {
    font-size: 16px;
    margin-bottom: 8px;
}
.guide-page {
    padding: 32px 20px;
}
.guide-sheet {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 32px;
    border: 1px solid var(--border);
    border-radius: 16px;
}
.guide-heading {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}
.guide-heading .eyebrow {
    display: block;
}
.guide-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
@media (max-width: 670px) {
    .nav-item {
        min-width: 0;
        padding-inline: 6px;
    }
    .guide-body {
        font-size: 15px;
    }
    .guide-sheet {
        padding: 20px;
    }
    .guide-page {
        padding: 16px 10px;
    }
}
@media print {
    .guide-page {
        padding: 0;
        background: white;
        font-size: 10pt;
    }
    .guide-sheet {
        max-width: none;
        border: 0;
        padding: 0;
    }
    .guide-controls {
        display: none;
    }
    .guide-steps {
        gap: 12px;
    }
    .guide-heading h1 {
        font-size: 24pt;
    }
    .guide-note {
        margin-top: 16px;
    }
}

.guide-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.guide-tools .button {
    flex: 1 1 180px;
    white-space: normal;
}
.content {
    max-width: 1600px;
    padding-top: 24px;
}
.list-row > div {
    min-width: 0;
}
.list-row strong {
    overflow-wrap: anywhere;
}
.list-row .button {
    flex-shrink: 0;
}
@media (min-width: 671px) {
    .bill-layout {
        grid-template-columns: minmax(0, 1fr) minmax(280px, 32%);
        gap: 20px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    }
}
@media (max-width: 670px) {
    .content {
        padding-top: 16px;
    }
    .page-heading {
        margin-bottom: 16px;
    }
    .back-button {
        margin-bottom: 8px;
    }
    .product-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
    }
}
@media (hover: none) {
    .product-button:hover {
        transform: none;
    }
}
