:root{color-scheme:light;font-family:system-ui,-apple-system,Segoe UI,Roboto,sans-serif;color:#171717;background:#f5f5f5}body{margin:0}.screen{box-sizing:border-box;max-width:560px;margin:0 auto;padding:48px 24px}.screen h1{font-size:24px;margin:0 0 12px}.key-screen form{display:flex;flex-direction:column;gap:8px}.key-screen input{font:inherit;padding:10px 12px;border:1px solid #a3a3a3;border-radius:8px}.key-screen__error{color:#b91c1c;margin:0}.screen button{font:inherit;font-weight:600;align-self:flex-start;padding:10px 16px;border:none;border-radius:8px;color:#fff;background:#171717;cursor:pointer}.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}.queue-screen{height:100vh;height:100dvh;display:flex;flex-direction:column;background:#ecedf7}.queue-screen__content{flex:1;min-height:0;overflow-y:auto}.top-bar{flex:none;height:56px;box-sizing:border-box;display:flex;align-items:center;padding:0 20px;background:#fff;border-bottom:1px solid #e4e4e7}.top-bar__nav{display:flex;gap:4px;padding:4px;border-radius:12px;background:#ecedf7}.top-bar__tab{font:inherit;height:42px;display:flex;align-items:center;gap:8px;padding:0 16px;border:0;border-radius:9px;color:#3f3f46;background:transparent;font-size:16px;font-weight:500;cursor:pointer}.top-bar__tab[aria-current=page]{color:#fff;background:#27272a}.top-bar__count{min-width:26px;height:26px;box-sizing:border-box;padding:0 8px;display:flex;align-items:center;justify-content:center;border-radius:999px;color:#18181b;background:#e4e4e7;font-size:14px;font-weight:700}.top-bar__tab[aria-current=page] .top-bar__count{background:#fff}.queue-screen__late{display:block;margin:0;padding:8px 20px;color:#7c2d12;background:#ffedd5}.queue-screen__message{text-align:center}.queue-screen__message button{align-self:center}.queue-view{box-sizing:border-box;height:100%;display:grid;grid-template-columns:minmax(0,640px) minmax(0,1fr);gap:16px;padding:12px 20px}.queue-view__side{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0;overflow-y:auto}.tray-card{display:flex;flex-direction:column;gap:10px;min-width:0;min-height:0}.tray-card__photo{position:relative;flex:none;width:100%;aspect-ratio:1.86;border-radius:16px;overflow:hidden;background:#27272a}.tray-photo{width:100%;height:100%;display:block;object-fit:cover}.tray-photo--empty{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;color:#e4e4e7}.tray-photo--empty button{font:inherit;padding:8px 14px;border:1px solid #e4e4e7;border-radius:8px;color:#fff;background:transparent;cursor:pointer}.tray-card__chip{position:absolute;left:10px;bottom:10px;padding:6px 14px;border-radius:999px;color:#fff;background:#191b22c7;font-size:15px;font-weight:500;font-variant-numeric:tabular-nums}.tray-card__ticket{flex:1;min-height:0;display:flex;flex-direction:column;border-radius:16px;overflow:hidden;background:#fff;box-shadow:0 1px 2px #0000001f}.tray-card__guest{flex:none;min-height:60px;box-sizing:border-box;display:flex;align-items:center;gap:12px;padding:6px 16px;border-bottom:1px solid #e1e2ec}.tray-card__who{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}.tray-card__name{font-size:18px;font-weight:500;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.tray-card__line{font-size:14px;color:#424753}.tray-card__wallet{flex:none;height:46px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:0 12px 0 8px;border-radius:12px;background:#ecedf7}.tray-card__wallet-icon{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border-radius:9px;color:#fff;background:#0058be}.tray-card__wallet-icon svg,.tray-card__cancel svg,.tray-card__skip svg,.undo svg,.totals svg{width:20px;height:20px;display:block;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}.tray-card__wallet-text{display:flex;flex-direction:column;line-height:1.1}.tray-card__wallet-label{font-size:12px;color:#424753}.tray-card__wallet-balance{font-size:22px;font-weight:500;color:#18181b;white-space:nowrap;font-variant-numeric:tabular-nums}.tray-card__cart{flex:1;min-height:0;overflow-y:auto}.order-error{display:flex;flex-direction:column;gap:4px;padding:8px 16px;color:#93000a;background:#ffdad6;border-bottom:1px solid #ffb4ab}.order-error--retryable{color:#5c3c00;background:#ffefd2;border-bottom-color:#f5c46b}.order-error p{margin:0}.order-error__label{font-size:15px;font-weight:600}.order-error__action{font-size:15px}.order-error__code{font-size:12px;opacity:.8}.order-error__cancel{align-self:flex-start;min-height:44px;margin-top:4px;padding:0 14px;border:1.5px solid #ba1a1a;border-radius:12px;background:#fff;color:#ba1a1a;font:inherit;font-size:15px;font-weight:600;cursor:pointer}.tray-card__actions{flex:none;display:flex;align-items:center;gap:10px;padding:8px 12px;border-top:1px solid #e1e2ec}.tray-card__skip{font:inherit;font-size:17px;font-weight:500;flex:none;width:116px;height:56px;display:flex;align-items:center;justify-content:center;gap:6px;border:1px solid #727785;border-radius:16px;color:#191b22;background:#fff;cursor:pointer}@media(max-width:720px){.queue-screen{height:auto;min-height:100vh}.queue-view{height:auto;grid-template-columns:1fr}.tray-card__cart,.queue-view__side{overflow-y:visible}}.history-view{display:flex;flex-direction:column;gap:14px;padding:20px 24px}.history-view__header h1{margin:0 0 4px;font-size:24px}.history-view__header p{margin:0;font-size:13px;color:#52525b}.history-view__empty{padding:56px 24px;border:1px solid #e4e4e7;border-radius:16px;text-align:center;color:#52525b;background:#fff}.history-view__empty p{margin:4px 0}.history-view__empty-title{font-size:16px;font-weight:600;color:#18181b}.history-table{width:100%;border-collapse:collapse;border-radius:16px;overflow:hidden;background:#fff}.history-table th{padding:12px 20px;border-bottom:1px solid #e4e4e7;text-align:left;font-size:12px;font-weight:600;color:#3f3f46}.history-table td{padding:12px 20px;border-bottom:1px solid #f0f0f2;font-size:15px}.history-table th:last-child,.history-table td:last-child{text-align:right}.history-table__time{font-size:16px;font-weight:700;font-variant-numeric:tabular-nums}.history-table__name{display:block;font-weight:600}.history-table__badge{display:block;font-size:12px;color:#52525b}.history-table__status{display:inline-block;padding:4px 10px;border-radius:999px;font-size:13px;font-weight:600;color:#3f3f46;background:#e4e4e7}.history-table__status--order_created{color:#14532d;background:#dcfce7}.cart{display:flex;flex-direction:column;padding:2px 6px 2px 16px}.cart__empty{margin:16px 0;font-size:16px;color:#424753}.cart__lines,.formulas{list-style:none;margin:0;padding:0}.formulas__row{min-height:40px;box-sizing:border-box;display:flex;align-items:center;gap:8px;margin-top:4px;padding:4px 12px 4px 10px;border-radius:8px;color:#191b22;background:#ecedf7}.formulas__text{flex:1;min-width:0;display:flex;flex-direction:column;gap:1px}.formulas__name,.formulas__parts{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.formulas__name,.formulas__amount{font-size:17px;font-weight:500}.formulas__parts{font-size:12px;color:#424753}.formulas__amount{flex:none;font-variant-numeric:tabular-nums}.cart__line{min-height:48px;display:flex;align-items:center;gap:8px;border-bottom:1px solid #e1e2ec;font-size:17px;font-weight:500}.cart__quantity{flex:none;font-weight:700;color:#0058be}.cart__name{flex:1;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.cart__price{flex:none;font-variant-numeric:tabular-nums}.cart__button{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:0;border-radius:10px;color:#191b22;background:#ecedf7;cursor:pointer}.cart__button--remove{color:#ba1a1a;background:#ffdad6}.cart__button--add{color:#0058be;background:#d8e2ff}.cart__button svg,.catalog__clear svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.4;stroke-linecap:round;stroke-linejoin:round}.pricing__group+.pricing__group{margin-top:8px}.pricing__title{margin:4px 0 2px;font-size:12px;font-weight:500;letter-spacing:.06em;text-transform:uppercase;color:#5b5f6b}.pricing__lines{margin:0;padding:0;list-style:none}.pricing__line,.pricing__total,.pricing__share{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:3px 0}.pricing__label{flex:1;min-width:0}.pricing__none{margin:0;color:#5b5f6b}.pricing__amount{flex:none;font-weight:500;font-variant-numeric:tabular-nums}.pricing__total{margin:8px 0 0;padding-top:8px;border-top:1px solid #e1e2ec}.pricing__share{margin:0;font-size:17px;font-weight:600}.totals{position:relative;flex:none;min-height:38px;box-sizing:border-box;display:flex;align-items:center;padding:6px 16px;border-top:1px solid #e1e2ec}.totals--failed{gap:4px;font-size:14px;color:#93000a}.totals__retry{min-height:36px;padding:0 4px;border:0;background:transparent;font:inherit;font-weight:600;color:#0058be;text-decoration:underline;cursor:pointer}.totals__toggle{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:0 0 0 -2px;padding:0;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer}.totals__toggle:disabled{cursor:default}.totals__chip{padding:3px 8px;border-radius:8px;background:#ecedf7;color:#424753;font-size:14px;white-space:nowrap}.totals__chip strong{color:#191b22;font-weight:500;font-variant-numeric:tabular-nums}.totals__chevron{flex:none;width:28px;height:28px;display:flex;align-items:center;justify-content:center;border-radius:999px;color:#191b22;background:#ecedf7}.totals__chevron svg{width:16px;height:16px;stroke-width:2.6;transition:transform .15s}.totals__toggle[aria-expanded=true] .totals__chevron{color:#fff;background:#191b22}.totals__toggle[aria-expanded=true] .totals__chevron svg{transform:rotate(180deg)}.totals__toggle:disabled .totals__chevron{opacity:.4}.totals__panel{position:absolute;left:10px;right:10px;bottom:calc(100% + 6px);z-index:20;padding:10px 14px 12px;border:1px solid #c2c6d6;border-radius:16px;background:#fff;box-shadow:0 6px 24px #0000002e;font-size:16px}.totals__panel-header{display:flex;align-items:center;gap:8px;margin-bottom:4px}.totals__regime{flex:1;font-size:14px;color:#424753}.totals__close{flex:none;width:32px;height:32px;display:flex;align-items:center;justify-content:center;border:0;border-radius:999px;color:#191b22;background:#ecedf7;cursor:pointer}.totals__close svg{width:16px;height:16px;stroke-width:2.6}.undo{flex:none;width:132px;height:56px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;border:1px solid #e1e2ec;border-radius:16px;color:#a1a1aa;background:#fff;font:inherit;cursor:default}.undo--on{border-color:#191b22;color:#fff;background:#191b22;cursor:pointer}.undo__label{display:flex;align-items:center;gap:6px;font-size:17px;font-weight:500}.undo__seconds{font-size:12px;color:#c2c6d6;font-variant-numeric:tabular-nums}.validate{flex:1;display:flex;align-items:center;justify-content:center;gap:12px;height:56px;border:0;border-radius:16px;font:inherit;font-size:18px;font-weight:500;color:#fff;background:linear-gradient(90deg,#d9364f,#e5574a 55%,#e9864f);cursor:pointer}.validate:disabled{background:linear-gradient(90deg,#f3b9c1,#f6c6b8);cursor:not-allowed}.validate__amount{padding:4px 12px;border-radius:999px;background:#ffffff3d;font-size:20px;font-variant-numeric:tabular-nums}.catalog{display:flex;flex-direction:column;gap:10px;min-width:0}.catalog--message{padding:24px;border-radius:16px;background:#fff;text-align:center}.catalog--message h2{margin:0 0 8px;font-size:18px}.catalog--message button{font:inherit;font-weight:600;padding:10px 16px;border:none;border-radius:8px;color:#fff;background:#171717;cursor:pointer}.catalog__search{display:flex;align-items:center;gap:8px}.catalog__search input{flex:1;height:44px;box-sizing:border-box;padding:0 16px;border:1.5px solid #c2c6d6;border-radius:999px;font:inherit;font-size:16px;color:#191b22;background:#fff}.catalog__search input::-webkit-search-cancel-button{appearance:none}.catalog__search input:focus{border-color:#0058be;outline:none}.catalog__clear{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #c2c6d6;border-radius:999px;color:#191b22;background:#fff;cursor:pointer}.catalog__board{display:flex;flex-direction:column;gap:12px;padding:12px;border-radius:16px;background:#fff;box-shadow:0 1px 2px #0000001f}.catalog__tabs{min-width:0;margin:0;padding:0;border:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:8px}.catalog__tab{min-height:56px;display:flex;align-items:center;justify-content:center;gap:8px;padding:0 8px;border:0;border-radius:12px;color:#191b22;background:#ecedf7;font:inherit;font-size:15px;font-weight:500;line-height:1.15;text-align:center;cursor:pointer}.catalog__tab[aria-pressed=true]{color:#fff}.catalog__tab-label{min-width:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;line-clamp:2;-webkit-box-orient:vertical;hyphens:auto;overflow-wrap:anywhere}.catalog__tab--long{font-size:13px}.catalog__dot{flex:none;width:10px;height:10px;border-radius:50%}.catalog__keys{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:8px}.catalog__key{height:96px;display:flex;flex-direction:column;justify-content:space-between;padding:10px 12px;border:0;border-radius:16px;color:#fff;font:inherit;font-size:16px;font-weight:500;text-align:left;cursor:pointer}.catalog__key-name{min-height:0;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;line-clamp:3;-webkit-box-orient:vertical;hyphens:none;overflow-wrap:anywhere;line-height:1.15}.catalog__key--long{font-size:14px}.catalog__key-price{flex:none;white-space:nowrap;text-align:right;font-variant-numeric:tabular-nums}.catalog__message{margin:24px 0;text-align:center;color:#424753}.undo-banner{position:fixed;left:50%;bottom:24px;z-index:10;display:flex;align-items:center;gap:14px;max-width:calc(100vw - 32px);padding:6px 6px 6px 20px;border-radius:999px;background:#191b22;color:#fff;font-size:17px;font-weight:500;box-shadow:0 12px 32px #0000004d;transform:translate(-50%)}.undo-banner__text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.undo-banner__button{display:flex;flex:none;align-items:center;gap:8px;height:48px;padding:0 18px;border:0;border-radius:999px;background:#fff;color:#191b22;font:inherit;font-size:17px;font-weight:500;cursor:pointer}.undo-banner__seconds{color:#424753;font-variant-numeric:tabular-nums}.no-guest{margin:0;padding:8px 16px;color:#93000a;font-size:15px}.tray-card__cancel{flex:none;height:44px;display:flex;align-items:center;gap:6px;padding:0 12px 0 10px;border:1.5px solid #ba1a1a;border-radius:12px;background:#fff;color:#ba1a1a;font:inherit;font-size:15px;font-weight:500;cursor:pointer}.tray-card__cancel:disabled{opacity:.5;cursor:default}.cancel-dialog__backdrop{position:fixed;inset:0;z-index:20;display:flex;align-items:center;justify-content:center;padding:16px;background:#18181b8c}.cancel-dialog{display:flex;flex-direction:column;width:560px;max-width:100%;max-height:100%;overflow:auto;border-radius:22px;background:#fff;box-shadow:0 24px 60px #00000040}.cancel-dialog__header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding:18px 16px 10px 22px}.cancel-dialog__header h2{margin:0 0 4px;font-size:18px}.cancel-dialog__header p{margin:0;font-size:13px;color:#52525b}.cancel-dialog__close{flex:none;width:44px;height:44px;border:0;border-radius:50%;background:#f4f4f5;color:#27272a;font-size:22px;cursor:pointer}.cancel-dialog__reasons{display:flex;flex-direction:column;gap:8px;margin:0;padding:8px 22px 12px;border:0}.cancel-dialog__reasons legend{padding:0 0 8px;font-size:14px;color:#424753}.cancel-dialog__reason{display:flex;align-items:center;gap:12px;min-height:56px;padding:8px 14px;border:1px solid #e4e4e7;border-radius:12px;cursor:pointer}.cancel-dialog__reason--selected{border:1.5px solid #27272a;background:#fafafa}.cancel-dialog__reason input{width:20px;height:20px;margin:0;accent-color:#27272a}.cancel-dialog__reason-text{display:flex;flex-direction:column;gap:2px}.cancel-dialog__reason-label{font-size:14px;font-weight:700}.cancel-dialog__reason-description{font-size:12px;color:#52525b}.cancel-dialog__text-label{font-size:13px;color:#424753}.cancel-dialog__text{box-sizing:border-box;width:100%;padding:10px 12px;border:1px solid #d4d4d8;border-radius:12px;font:inherit;font-size:14px;resize:none}.cancel-dialog__footer{padding:12px 22px 20px;border-top:1px solid #e4e4e7}.cancel-dialog__confirm{width:100%;height:50px;border:0;border-radius:14px;background:#ba1a1a;color:#fff;font:inherit;font-size:15px;font-weight:700;cursor:pointer}.cancel-dialog__confirm:disabled{background:#a1a1aa;cursor:default}.cancel-notice{position:fixed;left:50%;top:72px;z-index:15;display:flex;align-items:center;gap:12px;max-width:calc(100vw - 32px);padding:8px 8px 8px 16px;border-radius:14px;background:#191b22;color:#fff;font-size:15px;box-shadow:0 12px 32px #0000004d;transform:translate(-50%)}.cancel-notice--warning{background:#ffefd2;color:#5c3c00}.cancel-notice--error{background:#ffdad6;color:#93000a}.cancel-notice__button{flex:none;min-height:44px;padding:0 14px;border:0;border-radius:10px;background:#fff;color:#191b22;font:inherit;font-weight:600;cursor:pointer}
