.account { position: relative; }
.account__btn { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 8px 10px; border: 1px solid transparent; border-radius: 4px; font-size: 14px; }
.account__btn:hover, .account__btn[aria-expanded="true"] { border-color: var(--line); background: var(--cream); }
.account__avatar { display: grid; place-items: center; width: 24px; height: 24px; background: var(--forest); color: var(--surface); font-size: 12px; border-radius: 3px; }
.account__avatar:empty { display: none; }
.account__menu { position: absolute; right: 0; top: calc(100% + 8px); width: 250px; max-width: calc(100vw - 32px); background: var(--surface); border: 1px solid var(--ink); padding: 8px; display: grid; z-index: 90; }
.account__menu a, .account__menu button { display: block; min-height: 44px; padding: 10px 12px; text-align: left; font-size: 14px; }
.account__menu a:hover, .account__menu button:hover { background: var(--cream); }
.account__who { display: grid; gap: 2px; padding: 10px 12px 16px; margin-bottom: 6px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account__who span { color: var(--muted); font-size: 12px; }
.mobile-menu__account { display: grid; gap: 4px; padding-top: 20px; margin-top: 20px; border-top: 1px solid var(--line); }
.mobile-menu__account button, .mobile-menu__account a { text-align: left; min-height: 44px; }
.in-app .footer { display: none; }

.app { min-height: calc(100svh - 80px); max-width: 1240px; margin-inline: auto; padding: 56px var(--gutter) 88px; }
.page { min-width: 0; }
.page--loading { display: grid; place-content: center; justify-items: center; min-height: 55vh; gap: 14px; color: var(--muted); }
.page--loading p { margin: 0; }
.page__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; padding-bottom: 30px; margin-bottom: 32px; border-bottom: 1px solid var(--ink); }
.page__intro { min-width: 0; }
.page__title { font-family: var(--serif); font-weight: 400; font-size: clamp(40px, 5.6vw, 66px); line-height: 1.04; letter-spacing: -.035em; margin: 0 0 12px; overflow-wrap: anywhere; }
.page__sub { margin: 0; color: var(--muted); max-width: 58ch; font-size: 15px; line-height: 1.6; }
.page__head .link-back { display: block; width: fit-content; margin-bottom: 20px; }
.page__tools { min-width: 0; }
.page__tools:has(> [hidden]:only-child) { display: none; }
.page__head:has(> .page__tools > [hidden]:only-child) { grid-template-columns: 1fr; }
.page__cta { margin: 0; }
.empty { display: grid; justify-items: start; align-content: center; gap: 12px; min-height: 220px; padding: 36px; border: 1px solid var(--line); background: var(--surface); }
.empty p { margin: 0; max-width: min(50ch, 100%); overflow-wrap: anywhere; }
.empty p > strong { font-family: var(--serif); font-size: clamp(26px, 3vw, 36px); font-weight: 400; line-height: 1.1; }
.empty .btn { margin-top: 8px; }
.empty--big { min-height: 340px; padding: clamp(28px, 5vw, 60px); }
.ico { width: 20px; height: 20px; flex: none; }
.spinner { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--ink); animation: app-spin .8s linear infinite; }
.spinner--sm { width: 22px; height: 22px; margin: 6px auto; }
@keyframes app-spin { to { transform: rotate(360deg); } }
.notice { padding: 14px 16px; margin: 0; background: var(--cream); color: var(--ink); border: 1px solid var(--line); font-size: 14px; line-height: 1.6; border-radius: 4px; }
.notice--error { color: #773426; background: #f3e2db; border-color: #ba8372; }
.field-error { color: #8a321e; display: block; margin-top: 6px; font-size: 13px; line-height: 1.45; }
.dropzone.error, fieldset.error { outline: 2px solid #8a321e; outline-offset: 4px; }
.link { color: var(--caramel-2); text-decoration: underline; text-underline-offset: 4px; }
.link:hover { color: var(--ink); }
.link-back { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.link-back:hover { color: var(--ink); }

.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 20px; }
.modal__backdrop { position: absolute; inset: 0; background: rgb(45 33 27 / .58); }
.modal__card { position: relative; width: min(480px, 100%); max-height: calc(100svh - 40px); overflow-y: auto; overscroll-behavior: contain; background: var(--surface); border: 1px solid var(--ink); border-radius: 6px; padding: 40px 32px 32px; box-shadow: 0 16px 48px rgb(45 33 27 / .18); }
.modal--wide .modal__card { width: min(800px, 100%); }
.modal__close { position: absolute; right: 12px; top: 12px; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 4px; }
.modal__close:hover { border-color: var(--line); background: var(--cream); }
.modal h3 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 5vw, 40px); letter-spacing: -.02em; line-height: 1.05; padding-right: 28px; margin: 0; }
.modal.is-closing { pointer-events: none; opacity: 0; }
.modal .field, .app .field { display: flex; flex-direction: column; gap: 6px; min-width: 0; position: static; }
.modal .field > span, .app .field > span { position: static; order: -1; transform: none; padding: 0; font-size: 13px; line-height: 1.4; color: var(--ink); }
.modal .field > input, .modal .field > textarea, .modal .field > select,
.app .field > input, .app .field > textarea, .app .field > select { width: 100%; min-width: 0; min-height: 48px; border: 1px solid var(--muted); border-radius: 4px; background-color: var(--surface); color: var(--ink); font: inherit; padding: 11px 12px; }
.modal .field > select, .app .field > select { appearance: auto; padding-right: 8px; background-image: none; cursor: pointer; }
.modal .field > textarea, .app .field > textarea { resize: vertical; min-height: 90px; }
.modal .field > input:focus, .modal .field > textarea:focus, .modal .field > select:focus,
.app .field > input:focus, .app .field > textarea:focus, .app .field > select:focus { outline: 2px solid var(--caramel); outline-offset: 2px; border-color: var(--caramel); box-shadow: none; }
.modal .field.error > input, .modal .field.error > textarea, .modal .field.error > select,
.app .field.error > input, .app .field.error > textarea, .app .field.error > select { border-color: #8a321e; }
.auth__tabs { display: flex; width: fit-content; gap: 0; border-bottom: 1px solid var(--line); margin: 0 0 28px; padding: 0; position: relative; }
.auth__pill { display: none; }
.auth__tabs button { min-height: 44px; padding: 8px 20px; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--muted); font-size: 14px; }
.auth__tabs button[aria-selected="true"] { border-bottom-color: var(--ink); color: var(--ink); font-weight: 600; }
.auth__tabs button:hover { background: var(--cream); }
.auth__form { display: none; gap: 16px; }
.auth[data-mode="login"] [data-form="login"], .auth[data-mode="register"] [data-form="register"] { display: grid; }
.auth__form > p { margin: 0 0 2px; font-size: 14px; }
.auth__form--single { display: grid; }
.temp-pass { display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; margin: 12px 0; font-size: 14px; }
.temp-pass dt { color: var(--muted); }
.temp-pass code { font-size: 18px; letter-spacing: .08em; font-weight: 600; }
.auth__form > .btn { margin-top: 4px; }
.auth__hint { color: var(--muted); font-size: 12px; line-height: 1.5; margin-top: -8px; }
.auth__help { font-size: 13px; line-height: 1.55; }
.auth__remember { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 14px; min-height: 44px; }
.auth__remember input { margin-top: 3px; }
.auth__remember small { display: block; color: var(--muted); font-size: 12px; }
.auth__help summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 4px; }
.auth__help p { color: var(--muted); margin: 4px 0 0; }
.confirm { display: grid; gap: 18px; }
.confirm > p { margin: 0; }
.confirm__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; padding-top: 8px; }
.confirm__actions .btn { white-space: normal; min-height: 44px; }
.cancel-reasons { padding: 0; margin: 0; border: 0; min-width: 0; }
.cancel-reasons legend { font-size: 14px; font-weight: 600; margin-bottom: 10px; }
.cancel-reasons label { min-height: 46px; padding: 8px 0; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.cancel-reasons label + label { border-top: 1px solid var(--line); }
.cancel-reasons input { appearance: auto; flex: none; width: 18px; height: 18px; margin: 0; accent-color: var(--forest); cursor: pointer; }

.live { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 20px; font-size: 12px; color: var(--muted); }
.live__dot { display: inline-block; flex: none; width: 6px; height: 6px; margin-right: 3px; border-radius: 50%; background: var(--moss); }
.status { display: inline-flex; align-items: center; padding: 4px 8px; border-radius: 3px; color: var(--ink); background: var(--cream); border: 1px solid var(--line); font-size: 11px; font-weight: 500; line-height: 1.45; white-space: normal; }
.status[data-status="diproses"], .status[data-status="pay-belum-diverifikasi"], .status[data-status="warn"] { background: #f2e6d2; border-color: #cfb78e; color: #66431c; }
.status[data-status="siap-diambil"], .status[data-status="pay-diterima"] { background: #e7ebdf; border-color: #a8b594; color: #3d4b35; }
.status[data-status="ditolak"], .status[data-status="dibatalkan"], .status[data-status="pay-ditolak"] { background: #f3e2db; border-color: #ba8372; color: #773426; }
.status[data-status="pay-belum-dibayar"] { background: transparent; color: var(--muted); }
.group-title { display: flex; align-items: baseline; gap: 12px; font-family: var(--serif); font-size: 30px; font-weight: 400; margin: 0 0 16px; }
.group-title span { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.olist { display: grid; border-top: 1px solid var(--line); }
.olist + .group-title { margin-top: 42px; }
.ocard { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 22px; align-items: center; min-width: 0; padding: 24px 4px; border-bottom: 1px solid var(--line); }
.ocard:hover { background: var(--cream); }
.ocard__imgs img { width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.ocard__main { min-width: 0; }
.ocard__hint { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 6px; font-weight: 600; font-size: 13px; }
.ocard__hint .ico { width: 16px; height: 16px; color: var(--caramel-2); }
.ocard__todo { font-weight: 500; font-size: 11px; color: #773426; border: 1px solid #ba8372; border-radius: 3px; padding: 2px 5px; }
.ocard__top { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.ocard__top strong { color: var(--muted); font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.ocard__main > p { font-size: 14px; margin: 5px 0 8px; overflow-wrap: anywhere; }
.ocard__meta { display: flex; gap: 5px 16px; flex-wrap: wrap; align-items: center; color: var(--muted); font-size: 11px; }
.ocard__total { display: grid; gap: 6px; text-align: right; align-self: center; }
.ocard__total strong { font-family: var(--serif); font-size: 28px; font-weight: 400; white-space: nowrap; }
.ocard__total small { color: var(--caramel-2); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; }
.pbar { display: inline-flex; gap: 3px; }
.pbar i { width: 16px; height: 3px; background: var(--line); }
.pbar i.on { background: var(--moss); }
.ocard.is-new .ocard__hint::after { content: "Baru masuk"; font-size: 11px; font-weight: 500; color: var(--caramel-2); }
.ocard.is-updated, .panel.is-updated { background: var(--cream); }

.shero { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px; background: var(--cream); padding: 28px 32px; margin-bottom: 28px; border: 1px solid var(--line); border-radius: 4px; }
.shero__label { font-size: 12px; color: var(--muted); margin: 0 0 10px; }
.shero__text h2 { font-family: var(--serif); font-size: clamp(30px, 4vw, 42px); font-weight: 400; line-height: 1.08; margin: 0 0 10px; }
.shero__text > p:not(.shero__label) { margin: 0; color: var(--muted); font-size: 14px; max-width: 62ch; overflow-wrap: anywhere; }
.shero__text .btn { margin-top: 18px; }
.shero__code { display: grid; gap: 8px; border-left: 1px solid var(--line); padding-left: 24px; }
.shero__code small { font-size: 12px; color: var(--muted); }
.shero__code strong { font-size: 28px; font-variant-numeric: tabular-nums; font-weight: 500; letter-spacing: .04em; }
.shero__code .btn { margin-top: 4px; }
.shero--slim { margin: 16px 0 28px; }
.shero--slim .shero__text h2 { font-size: 32px; }
.detail { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.detail__main, .detail__side { display: grid; gap: 22px; min-width: 0; }
.detail__title { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.detail__title h2 { font-family: var(--serif); font-weight: 400; font-size: 32px; overflow-wrap: anywhere; margin-right: 6px; }
.panel { display: grid; gap: 14px; padding: 26px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); align-content: start; min-width: 0; }
.panel h3, .items h3 { font-family: var(--serif); font-weight: 400; font-size: 28px; line-height: 1.1; margin: 0; }
.panel p { margin: 0; font-size: 14px; }
.panel--focus { border-color: var(--muted); }
.panel--warn { border-color: #ba8372; background: #f3e2db; }
.panel--quiet { background: transparent; }
.panel--quiet > .btn { justify-self: start; }
.panel summary, .history summary { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 44px; cursor: pointer; font-size: 14px; font-weight: 500; list-style: none; }
.panel summary::-webkit-details-marker, .history summary::-webkit-details-marker { display: none; }
.panel summary::after, .history summary::after { content: "+"; font-size: 20px; color: var(--caramel-2); }
details[open] > summary::after { content: "−"; }
details.panel .actions { margin-top: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 18px; font-size: 13px; }
.dl dt { color: var(--muted); }
.dl dd { margin: 0; overflow-wrap: anywhere; }
.progress-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; margin: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); }
.progress-steps li { display: grid; justify-items: start; gap: 10px; font-size: 12px; color: var(--muted); padding-right: 6px; }
.ps__dot { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--muted); border-radius: 3px; font-size: 12px; }
.done .ps__dot { background: var(--moss); border-color: var(--moss); color: var(--surface); }
.current .ps__dot { background: var(--forest); border-color: var(--forest); color: var(--surface); }
.current { color: var(--ink); font-weight: 600; }
.ended { padding: 22px 24px; background: #f3e2db; border: 1px solid #ba8372; color: #773426; border-radius: 4px; }
.ended p { margin: 8px 0 0; font-size: 14px; }
.items { padding: 26px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; }
.items h3 { margin-bottom: 12px; }
.items__row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.items__row img { width: 48px; height: 48px; object-fit: cover; border-radius: 3px; }
.items__row strong { display: block; font-weight: 500; overflow-wrap: anywhere; }
.items__row small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.items__row > span { font-size: 12px; font-variant-numeric: tabular-nums; }
.items__total { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding-top: 20px; font-size: 14px; }
.items__total strong { font-family: var(--serif); font-size: 30px; font-weight: 400; }
.history { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 8px 0; }
.history ol { display: grid; gap: 12px; padding-left: 18px; margin: 12px 0 18px; font-size: 13px; color: var(--muted); }
[data-part="actions"]:empty { display: none; }

.dropzone { position: relative; display: grid; gap: 12px; padding: 24px 18px; border: 1px dashed var(--muted); background: var(--paper); border-radius: 4px; cursor: pointer; min-width: 0; }
.dropzone:hover, .dropzone.is-drag { border-color: var(--caramel-2); background: var(--cream); }
.dropzone:focus-within { outline: 2px solid var(--caramel); outline-offset: 3px; }
.dropzone input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.dropzone__ui { display: grid; justify-items: start; gap: 6px; font-size: 13px; line-height: 1.5; }
.dropzone__ui .ico { width: 24px; height: 24px; margin-bottom: 2px; }
.dropzone__ui b { font-weight: 500; color: var(--caramel-2); }
.dropzone__ui small, .dropzone__ui > span { font-size: 12px; color: var(--muted); }
.dropzone.has-file { padding: 14px; border-style: solid; }
.dropzone.has-file .dropzone__ui { display: none; }
.dropzone__preview { display: flex; gap: 12px; align-items: center; font-size: 13px; min-width: 0; }
.dropzone__preview > span:last-child { display: grid; min-width: 0; }
.dropzone__preview b { overflow-wrap: anywhere; font-weight: 500; }
.dropzone__preview small { color: var(--muted); margin-top: 4px; }
.dropzone__preview img, .dropzone__file { flex: none; width: 64px; height: 64px; object-fit: cover; border-radius: 3px; }
.dropzone__file { display: grid; place-items: center; font-size: 13px; background: var(--forest); color: var(--surface); }
.proof { display: flex; gap: 14px; align-items: center; padding: 12px; background: var(--cream); font-size: 14px; border: 1px solid var(--line); border-radius: 4px; overflow-wrap: anywhere; }
.proof:hover { border-color: var(--muted); }
.proof img { width: 84px; height: 84px; object-fit: cover; border-radius: 3px; }
.proof--big { flex-direction: column; align-items: stretch; }
.proof--big img { width: 100%; height: auto; aspect-ratio: 4 / 3; max-height: 360px; object-fit: contain; background: var(--surface); }
.proof--big > span { display: grid; gap: 4px; }
.proof--big small { color: var(--muted); font-size: 12px; }
.paysteps { display: grid; gap: 24px; list-style: none; padding: 0; margin: 4px 0 0; }
.paysteps > li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; align-items: start; }
.paysteps__n { display: grid; place-items: center; width: 24px; height: 24px; font-size: 12px; font-weight: 600; border: 1px solid var(--muted); border-radius: 3px; }
.paysteps > li > div { display: grid; min-width: 0; gap: 12px; }
.paysteps > li > div > strong { font-size: 14px; font-weight: 500; line-height: 24px; }
.paybox { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 16px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; }
.paybox > span { font-size: 13px; }
.paybox > strong { font-family: var(--serif); font-size: 28px; font-weight: 400; }
.banks { display: grid; gap: 10px; }
.bank { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); }
.bank__logo { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--line); font-size: 11px; font-weight: 600; color: var(--ink); }
.bank__info { display: grid; gap: 3px; min-width: 0; overflow-wrap: anywhere; }
.bank__info small { font-size: 11px; color: var(--muted); }
.bank__info strong { font-size: 18px; line-height: 1.3; font-weight: 500; font-variant-numeric: tabular-nums; }
.bank__info > span { font-size: 12px; color: var(--muted); }
.bank.is-off { background: var(--paper); }
.banks--admin .bank { grid-template-columns: 42px minmax(0, 1fr) auto auto auto; }
.banks--compact .bank { grid-template-columns: minmax(0, 1fr) auto; }
.banks--compact .bank__logo { display: none; }
.banks--compact .bank__info strong { font-size: 16px; }
.btn.is-copied { background: var(--moss); color: var(--surface); }
.transfer-info { display: grid; gap: 12px; }
.transfer-info > .muted { font-size: 13px; margin: 0; }
.success__transfer { width: 100%; display: grid; gap: 16px; margin: 16px 0; text-align: left; }
.proof-form { display: grid; gap: 12px; }
.proof-form__title { font-size: 14px; font-weight: 500; margin: 0; }
.proof-form__later { margin: 0; font-size: 12px; }
.proof-done { display: flex; gap: 12px; padding: 16px; border: 1px solid #a8b594; border-radius: 4px; background: #e7ebdf; color: #3d4b35; }
.proof-done > div { display: grid; gap: 4px; }
.proof-done span { font-size: 13px; }

.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tabs a { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 10px 14px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; color: var(--muted); }
.tabs a:hover { background: var(--cream); color: var(--ink); }
.tabs a.is-active { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.tabs__badge { min-width: 18px; padding: 2px 4px; border-radius: 3px; color: var(--surface); background: var(--caramel-2); text-align: center; font-size: 10px; }
.admin-body { min-width: 0; }
.admin-body > .link-back { margin-bottom: 12px; }
.admin-body > .notice { margin-bottom: 24px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center; margin-bottom: 22px; }
.subhead { font-family: var(--serif); font-size: 32px; font-weight: 400; margin: 0; }
.subhead .muted { font-family: var(--sans); font-size: 14px; }
.search { display: flex; align-items: center; min-height: 46px; gap: 10px; padding: 0 12px; min-width: min(320px, 100%); background: var(--surface); border: 1px solid var(--muted); border-radius: 4px; }
.search input { min-width: 0; flex: 1; padding: 10px 0; border: 0; background: transparent; font: inherit; font-size: 14px; color: var(--ink); }
.search input:focus { outline: none; }
.search:focus-within { outline: 2px solid var(--caramel); outline-offset: 2px; }
.search svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.ftiles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.ordering-switch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 16px 18px; margin-bottom: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; }
.ordering-switch strong { font-weight: 600; }
.ordering-switch p { margin: 2px 0 0; font-size: 13px; }
.ordering-switch.is-paused { background: #f3e2db; border-color: #ba8372; }
.ordering-switch.is-paused strong { color: #773426; }
.ftile { display: flex; gap: 12px; align-items: center; min-height: 44px; padding: 10px 14px; font-size: 13px; border: 1px solid var(--line); border-radius: 4px; }
.ftile strong { display: inline-block; font-size: 12px; min-width: 20px; font-weight: 500; padding-left: 10px; border-left: 1px solid var(--line); }
.ftile:hover { background: var(--cream); border-color: var(--muted); }
.ftile[aria-pressed="true"] { background: var(--forest); border-color: var(--forest); color: var(--surface); }
.ftile[aria-pressed="true"] strong { border-left-color: #bcae9f; }
.arow { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: stretch; border-bottom: 1px solid var(--line); }
.arow .ocard { border-bottom: 0; padding-right: 20px; }
.arow--plain { grid-template-columns: minmax(0, 1fr); }
.arow__act { display: grid; align-content: center; padding-left: 16px; border-left: 1px solid var(--line); margin-block: 24px; }
.arow__act .btn { width: 100%; }
.users-search { display: flex; gap: 8px; max-width: 100%; }
.users-search .search { min-width: 0; flex: 1; }
.user-list { border-top: 1px solid var(--line); }
.user-list[aria-busy="true"] { opacity: .65; }
.user-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.user-row__main { display: grid; gap: 4px; min-width: 0; overflow-wrap: anywhere; }
.user-row__main strong { font-size: 16px; font-weight: 500; }
.user-row__main span, .user-row__main small { font-size: 12px; color: var(--muted); }
.user-row__roles { display: flex; gap: 6px; flex-wrap: wrap; }
.user-badge { font-size: 11px; padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; background: var(--cream); }
.user-badge--owner { background: var(--forest); border-color: var(--forest); color: var(--surface); }
.user-badge--inactive { background: transparent; color: var(--muted); }
.user-pagination { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; margin-top: 24px; }
.user-pagination p { margin: 0; font-size: 12px; }
.user-pagination > div { display: flex; gap: 8px; }
.ptable { border-top: 1px solid var(--line); }
.prow { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto auto; gap: 22px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--line); }
.prow img { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; }
.prow.is-off { background: var(--cream); }
.prow__main { min-width: 0; overflow-wrap: anywhere; }
.prow__main strong { display: block; font-family: var(--serif); font-size: 24px; font-weight: 400; margin-bottom: 4px; }
.prow__main small { color: var(--muted); font-size: 12px; }
.prow__flags { display: flex; flex-wrap: wrap; gap: 16px; }
.switch { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; cursor: pointer; font-size: 12px; }
.switch input { appearance: auto; position: static; opacity: 1; margin: 0; width: 18px; height: 18px; accent-color: var(--forest); cursor: pointer; }
.switch span { display: none; }
.switch em { font-style: normal; color: var(--ink); }
.switch:has(input:disabled) { cursor: not-allowed; color: var(--muted); }
.cats { display: grid; border-top: 1px solid var(--line); margin-top: 20px; }
.catrow { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; gap: 20px; align-items: center; border-bottom: 1px solid var(--line); padding: 18px 0; }
.catrow strong { font-size: 15px; font-weight: 500; overflow-wrap: anywhere; }
.catrow .muted { font-size: 12px; }
.catrow--new { grid-template-columns: minmax(0, 1fr) auto; align-items: end; margin-top: 12px; padding: 18px; background: var(--cream); border: 1px solid var(--line); border-radius: 4px; }
.check { display: flex; min-height: 44px; gap: 10px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--forest); margin: 0; flex: none; cursor: pointer; }
.complete { display: grid; gap: 16px; }
.complete .btn { justify-self: start; }
.pform { display: grid; gap: 22px; }
.pform__grid { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 28px; }
.pform__img img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 3px; background: var(--cream); }
.pform__fields { display: grid; gap: 16px; min-width: 0; }
.pform__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-height: 44px; padding: 9px 14px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; }
.chip:hover { background: var(--cream); border-color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--forest); color: var(--surface); border-color: var(--forest); }
.range { display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.range label { display: grid; gap: 6px; min-width: 0; color: var(--ink); font-size: 12px; }
.range input { min-width: 0; min-height: 44px; max-width: 100%; padding: 9px 10px; border: 1px solid var(--muted); border-radius: 4px; color: var(--ink); background: var(--surface); font: inherit; font-size: 13px; }
.tiles { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin: 32px 0; }
.tile { display: grid; align-content: start; gap: 8px; padding: 28px; border-right: 1px solid var(--line); }
.tile:first-child { padding-left: 0; }
.tile:last-child { border-right: 0; }
.tile span { font-size: 13px; color: var(--muted); }
.tile strong { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.1; overflow-wrap: anywhere; }
.tile:first-child strong { font-size: clamp(36px, 4.4vw, 56px); }
.tile small { color: var(--muted); font-size: 11px; }
.chart-card { border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 28px; }
.chart-card__head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 20px; margin-bottom: 26px; }
.chart-card__head h3 { font-family: var(--serif); font-weight: 400; font-size: 32px; margin: 0; }
.chart-card__head p { font-size: 13px; margin: 6px 0 0; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.seg button { min-height: 44px; padding: 8px 14px; font-size: 13px; color: var(--muted); }
.seg button + button { border-left: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--forest); color: var(--surface); }
.seg button:hover { text-decoration: underline; }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .axis text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.chart .grid { stroke: var(--line); }
.chart .base { stroke: var(--muted); }
.chart .bar { fill: var(--caramel-2); }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .cursor-line { stroke: var(--ink); stroke-width: 1; }
.chart__tip { position: absolute; top: 0; transform: translateX(-50%); display: grid; gap: 3px; padding: 12px; border: 1px solid var(--ink); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 12px; pointer-events: none; white-space: nowrap; }
.chart__tip span { font-size: 18px; font-variant-numeric: tabular-nums; }
.chart__tip small { color: var(--muted); }
[data-table-view] { overflow-x: auto; }
.rtable { width: 100%; border-collapse: collapse; font-size: 13px; }
.rtable th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 500; }
.rtable th, .rtable td { padding: 14px 10px; border-bottom: 1px solid var(--line); }
.rtable th:not(:first-child), .rtable td:not(:first-child) { text-align: right; font-variant-numeric: tabular-nums; }
.rtable tfoot td { font-weight: 600; border-bottom: 0; }

@media (max-width: 1080px) {
  .page__head:has(.tabs) { grid-template-columns: 1fr; gap: 20px; }
  .detail { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .detail__side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .prow { grid-template-columns: 60px minmax(0, 1fr) auto; }
  .prow__flags { grid-column: 2 / -1; }
  .banks--admin .bank { grid-template-columns: 42px minmax(0, 1fr) auto auto; }
  .banks--admin .bank .switch { grid-column: 2; }
}
@media (max-width: 700px) {
  .app { padding-top: 32px; padding-bottom: 60px; }
  .page__head { grid-template-columns: 1fr; gap: 20px; padding-bottom: 24px; margin-bottom: 24px; }
  .page__title { font-size: 44px; }
  .page__sub { font-size: 14px; }
  .page__tools { width: 100%; }
  .tabs { gap: 0 6px; }
  .tabs a { padding: 10px 8px; font-size: 13px; }
  .empty { padding: 26px; }
  .empty--big { min-height: 300px; }
  .ocard { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 22px 0; }
  .ocard__imgs { display: none; }
  .ocard__total strong { font-size: 24px; }
  .ocard__meta { gap: 6px 12px; }
  .ocard__main > p { font-size: 13px; }
  .shero { padding: 24px; grid-template-columns: 1fr; gap: 22px; }
  .shero__code { border-left: 0; border-top: 1px solid var(--line); padding-left: 0; padding-top: 20px; justify-items: start; }
  .detail__side { grid-template-columns: 1fr; }
  .panel, .items { padding: 22px; }
  .arow { grid-template-columns: minmax(0, 1fr); }
  .arow .ocard { padding-right: 0; }
  .arow__act { border-left: 0; margin: 0; padding: 0 0 22px; justify-items: start; }
  .arow__act .btn { width: auto; }
  .ftiles { gap: 6px; }
  .ftile { padding: 9px 10px; font-size: 12px; gap: 8px; }
  .ftile strong { padding-left: 8px; }
  .toolbar > .search, .users-search { width: 100%; }
  .user-row { grid-template-columns: minmax(0, 1fr) auto; gap: 16px; }
  .user-row > .btn { grid-column: 1 / -1; justify-self: start; }
  .user-pagination > div { flex-wrap: wrap; }
  .prow { gap: 12px; }
  .prow__main strong { font-size: 22px; }
  .prow__flags { grid-column: 1 / -1; gap: 18px; }
  .catrow { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .catrow > .muted { text-align: right; }
  .catrow > .btn { justify-self: start; }
  .catrow > .btn:last-child { justify-self: end; }
  .catrow--new { grid-template-columns: 1fr; }
  .catrow--new > .btn { justify-self: start; }
  .pform__grid { grid-template-columns: 1fr; gap: 20px; }
  .pform__img img { width: 120px; }
  .pform__row { grid-template-columns: 1fr; }
  .banks--admin .bank { grid-template-columns: 42px minmax(0, 1fr); }
  .banks--admin .bank .switch { grid-column: 1 / -1; }
  .banks--admin .bank > .btn { justify-self: start; }
  .banks--admin .bank > .btn:last-child { justify-self: end; }
  .range { width: 100%; }
  .range label { flex: 1 1 120px; }
  .range > .btn { flex: 1 1 auto; }
  .tiles { grid-template-columns: 1fr 1fr; margin: 26px 0; }
  .tile { padding: 22px 14px; }
  .tile:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); padding: 22px 0; }
  .tile:nth-child(2) { padding-left: 0; }
  .tile strong { font-size: 30px; }
  .chart-card { padding: 22px 16px; }
  .chart-card__head h3 { font-size: 28px; }
  .rtable th, .rtable td { padding: 12px 6px; font-size: 12px; }
}
@media (max-width: 420px) {
  .account__btn { padding-inline: 6px; }
  .account__label { font-size: 12px; }
  .account__avatar { display: none; }
  .modal { padding: 12px; }
  .modal__card { padding: 46px 20px 24px; max-height: calc(100svh - 24px); }
  .confirm__actions { gap: 8px; }
  .confirm__actions .btn { flex: 1 1 100px; padding-inline: 12px; }
  .auth__tabs { margin-bottom: 22px; }
  .page__title { font-size: 38px; }
  .ocard { grid-template-columns: 1fr; gap: 14px; }
  .ocard__total { display: flex; justify-content: space-between; align-items: center; text-align: left; }
  .panel, .items, .shero { padding: 20px; }
  .shero__text h2 { font-size: 32px; }
  .items__row { grid-template-columns: 40px minmax(0, 1fr); gap: 10px; }
  .items__row img { width: 40px; height: 40px; grid-row: 1 / 3; }
  .items__row > span { grid-column: 2; }
  .progress-steps { gap: 8px; }
  .progress-steps li { font-size: 11px; padding-right: 0; }
  .ps__dot { width: 26px; height: 26px; }
  .paysteps > li { grid-template-columns: 1fr; }
  .bank { grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 12px; }
  .bank__logo { display: none; }
  .bank__info strong { font-size: 15px; }
  .bank > .btn { padding-inline: 12px; }
  .banks--admin .bank { grid-template-columns: minmax(0, 1fr) auto; }
  .banks--admin .bank__info { grid-column: 1 / -1; }
  .user-row { grid-template-columns: 1fr; }
  .user-row__roles { grid-row: 2; }
  .user-row > .btn { grid-column: 1; }
  .prow { grid-template-columns: 48px minmax(0, 1fr); }
  .prow img { width: 48px; height: 48px; }
  .prow > .btn { grid-column: 2; justify-self: start; }
}
