:root{color-scheme:dark;font:16px/1.5 system-ui,sans-serif;color:#eff6f3;background:#101512}
*{box-sizing:border-box}
body{margin:0}
main{max-width:640px;margin:auto;padding:32px 20px}
header{display:flex;justify-content:space-between;align-items:center;color:#a6edc6;font-weight:700}
h1{font-size:clamp(30px,7vw,44px);margin:26px 0 20px}
h2{margin:0;font-size:1.2rem}
section{background:#19231e;border:1px solid #34433b;border-radius:16px;padding:22px;margin-bottom:14px}
p{color:#bccac1}
button,a{color:#0b2519;background:#a6edc6;border:0;border-radius:8px;padding:10px 16px;font:inherit;font-weight:650;text-decoration:none;display:inline-block;cursor:pointer}
button:focus-visible,a:focus-visible{outline:3px solid #fff;outline-offset:3px}
button:disabled{opacity:.55;cursor:default}
.quiet{background:#283a31;color:#e8f5ed}
.brand-link{background:none;color:inherit;padding:0}
.auth-form{display:grid;gap:12px;margin-top:16px;justify-items:start}
.auth-form>input,.signup-details>input{width:100%;padding:10px 12px;border:1px solid #536259;border-radius:8px;font:inherit;background:#101512;color:inherit}
.signup-details{display:contents}
.auth-form p{margin:0}
.consent-row{display:flex;align-items:flex-start;gap:10px;font-size:.95rem}
.consent-row input{margin:.33em 0 0;accent-color:#a6edc6}
.consent-link{display:block;color:#a6edc6;background:none;padding:0;font:inherit;text-decoration:underline;text-underline-offset:.2em}
#consent-dialog,#rub-dialog{width:min(720px,calc(100% - 32px));max-height:85dvh;margin:auto;padding:20px;border:1px solid #536259;border-radius:16px;background:#19231e;color:#eff6f3}
#consent-dialog::backdrop,#rub-dialog::backdrop{background:#0b100de6}
#rub-dialog{max-width:460px}
#rub-packages{margin-top:16px;grid-template-columns:repeat(2,minmax(0,1fr))}
#rub-packages button{padding:10px 6px}
#rub-dialog-status:empty{display:none}
.balance-panel:has(.payment-help:not([hidden])){display:grid;grid-template-columns:1fr 1fr;gap:24px}
.payment-help{min-width:0;border-left:1px solid #34433b;padding-left:20px}
.payment-help p{margin:8px 0}
.payment-help ul{padding-left:18px;margin:0;color:#bccac1}
.payment-help a{background:none;color:#a6edc6;padding:0;text-decoration:underline;font-weight:500}
@media(max-width:580px){
  .balance-panel:has(.payment-help:not([hidden])){grid-template-columns:1fr;gap:18px}
  .payment-help{border-left:0;border-top:1px solid #34433b;padding:16px 0 0}
}
.consent-dialog-header{align-items:flex-start;gap:12px;color:inherit}
#consent-dialog .legal-document{padding-block:12px 0}
#email-status:empty{display:none}
.balance strong{font-size:3rem}
#code{font:700 1.65rem ui-monospace,monospace;letter-spacing:.15em}
.notice{color:#ffcf87}
.payment{border-top:1px solid #34433b;padding-top:12px;margin-top:12px}
.payment code{display:block;overflow-wrap:anywhere;user-select:all}
#transfer-address{display:block;overflow-wrap:anywhere;user-select:all}
#transfer-confirm{display:flex;flex-wrap:wrap;gap:8px}
#transfer-confirm label{width:100%}
#transfer-txid{flex:1 1 15rem;min-width:0;padding:10px;border:1px solid #34433b;border-radius:8px;font:inherit;background:#101512;color:inherit}
#transfer-status:empty{display:none}
[hidden]{display:none!important}

#rub-package { margin: 8px 0 14px; }
#rub-payment-status:empty, #booking-status:empty { display: none; }
#booking-form { display: grid; gap: 16px; }
.booking-instructions { margin: 0; font-size: .9rem; }
.booking-days, .booking-hours { display: grid; gap: 8px; }
.booking-days { grid-template-columns: repeat(auto-fit, minmax(85px, 1fr)); }
.booking-hours { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.booking-day, .booking-hour {
  min-width: 0; min-height: 46px; padding: 8px 4px; background: #101914;
  border: 1px solid #3c5447; color: #eff6f3;
}
.booking-day { text-transform: capitalize; }
.booking-hour strong, .booking-hour span { display: block; }
.booking-hour strong { font-variant-numeric: tabular-nums; }
.booking-hour span { color: #bccac1; font-size: .75rem; font-weight: 500; }
.booking-hour:disabled { background: #18211c; border-color: #293b31; opacity: .63; }
.booking-day[aria-pressed="true"], .booking-hour[aria-pressed="true"] {
  background: #224637; border-color: #a6edc6; color: #e3fff0;
}
.booking-day:not([aria-pressed="true"]):hover, .booking-hour:enabled:hover { border-color: #a6edc6; }
.booking-review { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
#booking-hint { margin: 0; font-size: .9rem; }
#booking-list { margin-top: 12px; color: #bccac1; }
.booking p { margin: 6px 0 10px; }

#telegram-preferences { display: grid; gap: 12px; }
.telegram-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#telegram-status:empty { display: none; }
