:root {
    --g-bg: #f8f8f8;
    --g-white: #fff;
    --g-text: #333;
    --g-muted: #888;
    --g-accent: #D7696A;
    --g-border: #CDCFD0;
    --g-danger: #c0392b;
    --g-nav-offset: 72px;
    --g-header-height: 65px;
    --g-header-offset: calc(var(--g-header-height) + env(safe-area-inset-top, 0px));
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--g-bg);
    color: var(--g-text);
    line-height: 1.5;
}

.g-app {
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    background: var(--g-white);
    padding-top: var(--g-header-offset);
}

.g-header {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: calc(12px + env(safe-area-inset-top, 0px));
    background: var(--g-white);
    border-bottom: 1px solid var(--g-border);
    box-sizing: border-box;
}

.g-logo-link {
    display: inline-block;
    line-height: 0;
}

.g-logo {
    height: 40px;
    width: auto;
}

.g-cabinet-link {
    margin: 0;
    font-size: 14px;
    color: var(--g-muted);
    text-decoration: none;
}

.g-auth-title {
    margin: 8px 0 8px;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
}

.g-auth-sub {
    margin: 0 0 20px;
    font-size: 15px;
    color: var(--g-muted);
    text-align: center;
}

.g-bottom-nav {
    position: fixed;
    left: 50%;
    transform: translateX(-50%);
    bottom: 0;
    width: 100%;
    max-width: 480px;
    display: flex;
    background: var(--g-white);
    border-top: 1px solid var(--g-border);
    padding-bottom: env(safe-area-inset-bottom);
    z-index: 50;
}

.g-tab {
    flex: 1;
    min-width: 0;
    padding: 8px 4px 10px;
    border: none;
    background: none;
    font-size: 11px;
    color: var(--g-muted);
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}

a.g-tab {
    text-decoration: none;
    color: var(--g-muted);
}

.g-tab svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.g-tab.active {
    color: var(--g-accent);
    font-weight: 600;
}

.g-badge {
    position: absolute;
    top: 4px;
    right: calc(50% - 22px);
    display: inline-block;
    min-width: 17px;
    padding: 0 5px;
    border-radius: 10px;
    background: var(--g-accent);
    color: #fff;
    font-size: 10px;
    line-height: 17px;
}

.g-content {
    padding: 16px;
    overflow-x: clip;
    max-width: 100%;
}

.g-content.g-content-main {
    padding-bottom: calc(16px + var(--g-nav-offset));
}

.g-card {
    background: var(--g-bg);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
}

.g-card h2 {
    margin: 0 0 8px;
    font-size: 16px;
}

.g-stat-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid var(--g-border);
    font-size: 14px;
}

.g-stat-row:last-child { border-bottom: none; }

.g-stat-label { color: var(--g-muted); }

.g-btn {
    display: block;
    width: 100%;
    padding: 14px 16px;
    margin-bottom: 10px;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.g-btn-primary {
    background: var(--g-accent);
    color: #fff;
}

.g-btn-secondary {
    background: var(--g-white);
    color: var(--g-text);
    border: 1px solid var(--g-border);
}

.g-btn-ghost {
    background: none;
    color: var(--g-muted);
    border: 1px dashed var(--g-border);
}

.g-btn-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.g-auth-ic {
    display: inline-flex;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
}

.g-auth-ic svg {
    width: 100%;
    height: 100%;
    fill: currentColor;
}

.g-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.g-field {
    margin-bottom: 14px;
}

.g-field label {
    display: block;
    font-size: 13px;
    color: var(--g-muted);
    margin-bottom: 6px;
}

.g-field input,
.g-field textarea {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding: 12px;
    border: 1px solid var(--g-border);
    border-radius: 8px;
    font-size: 15px;
    font-family: inherit;
}

.g-field input[type="date"] {
    display: block;
    min-width: 0;
}

.g-field input::placeholder,
.g-field textarea::placeholder {
    color: #b8b8b8;
    opacity: 1;
}

.g-field textarea { min-height: 80px; resize: vertical; }

.g-bday-prompt {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0 0 8px;
    padding: 12px 14px;
    font-size: 13px;
    line-height: 1.45;
    color: #6b5a2e;
    background: #fff9ed;
    border-radius: 10px;
    border: 1px solid #f0e0b8;
}

.g-bday-prompt-ic {
    flex-shrink: 0;
    font-size: 22px;
    line-height: 1;
    margin-top: 1px;
}

.g-bday-prompt-text {
    flex: 1;
    min-width: 0;
    overflow-wrap: anywhere;
}

.g-allergy {
    border-left: 4px solid var(--g-danger);
    padding-left: 12px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.g-yesno {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.g-yesno-btn {
    flex: 1;
    display: block;
    position: relative;
    padding: 11px 12px;
    border: 1px solid var(--g-border);
    border-radius: 8px;
    background: var(--g-white);
    font-size: 15px;
    text-align: center;
    cursor: pointer;
    user-select: none;
}

.g-yesno-btn input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.g-yesno-btn.active {
    border-color: var(--g-accent);
    background: #fdf3f3;
    color: var(--g-text);
    font-weight: 600;
}

.g-allergy-detail textarea {
    margin-top: 0;
}

.g-profile-form {
    max-width: 100%;
    min-width: 0;
}

.g-profile-legal {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    margin-top: 28px;
    padding-top: 20px;
    border-top: 1px solid var(--g-border);
    font-size: 13px;
    line-height: 1.4;
    color: var(--g-muted);
    text-align: center;
}

.g-profile-legal-link {
    color: var(--g-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.g-profile-legal-link:active {
    color: var(--g-accent);
}

.g-profile-legal-sep {
    color: var(--g-border);
}

.g-site-footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px 8px;
    margin-top: 24px;
    padding-top: 16px;
    padding-bottom: 4px;
    border-top: 1px solid var(--g-border);
    font-size: 13px;
    line-height: 1.4;
    color: var(--g-muted);
    text-align: center;
}

.g-site-footer-link {
    color: var(--g-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.g-site-footer-link:active {
    color: var(--g-accent);
}

.g-site-footer-sep {
    color: var(--g-border);
}

.g-modal-panel a {
    color: var(--g-accent);
    text-decoration: underline;
}

.g-field-inline {
    margin-bottom: 14px;
}

.g-field-inline .g-inline-label {
    display: block;
    margin: 0 0 6px;
    font-size: 13px;
    font-weight: 400;
    color: var(--g-muted);
}

.g-yesno-compact {
    display: inline-flex;
    gap: 6px;
    margin-bottom: 0;
}

.g-yesno-compact .g-yesno-btn {
    flex: 0 0 auto;
    min-width: 48px;
    padding: 8px 14px;
    font-size: 14px;
    border-radius: 8px;
}

.g-yesno-compact .g-yesno-btn.active {
    border-color: var(--g-accent);
    background: #fdf3f3;
    color: var(--g-accent);
    font-weight: 600;
}

.g-stars {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 8px 0;
}

.g-star {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--g-border);
    border-radius: 8px;
    background: var(--g-white);
    font-size: 20px;
    line-height: 1;
    color: #d6d9e0;
    cursor: pointer;
}

.g-star.active {
    color: #f5b301;
    border-color: #f5b301;
}

.g-order-item {
    padding: 12px 0;
    border-bottom: 1px solid var(--g-border);
}

.g-order-item:last-child { border-bottom: none; }

.g-rate-stars-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 8px 0;
}

.g-rate-stars-row .g-stars {
    margin: 0;
}

.g-rate-skip-link {
    flex-shrink: 0;
    border: none;
    background: none;
    padding: 0;
    font-size: 11px;
    line-height: 1.3;
    color: var(--g-muted);
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    white-space: nowrap;
}

.g-rate-skip-link:hover {
    color: var(--g-text);
}

.g-rate-skip-link:disabled {
    opacity: 0.5;
    cursor: default;
}

#g-orders .g-card {
    border: 1px solid var(--g-border);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    margin-bottom: 16px;
}

.g-order-card-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

#g-orders .g-card h2 {
    margin: 0;
    font-weight: 600;
}

.g-order-total {
    font-weight: 600;
    font-size: 16px;
    white-space: nowrap;
}

.g-card--open-order {
    border: 1px solid var(--g-accent);
    background: var(--g-white);
}

.g-order-item--live {
    padding: 10px 0;
}

.g-order-qty {
    font-weight: 400;
    color: var(--g-muted);
}

.g-order-live-hint {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--g-muted);
}

.g-order-item-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}

.g-order-item-head strong {
    font-weight: 600;
}

.g-order-price {
    font-size: 14px;
    color: var(--g-muted);
    white-space: nowrap;
}

.g-order-item--service {
    margin-top: 4px;
    padding-top: 12px;
    border-top: 1px dashed var(--g-border);
}

.g-order-item--service .g-order-item-head strong {
    font-size: 15px;
}

.g-order-item--rated {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
}

.g-order-rated-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.g-order-rated-meta {
    font-size: 13px;
    color: #f5b301;
    letter-spacing: 1px;
    line-height: 1;
}

.g-order-rated-comment {
    margin: 0;
    font-size: 13px;
    line-height: 1.35;
    color: var(--g-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.g-rate-add-link,
.g-rate-cancel-link {
    border: none;
    background: none;
    color: var(--g-accent);
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    flex-shrink: 0;
}

.g-rate-edit {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    padding: 0;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #b0b4ba;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.g-rate-edit:hover,
.g-rate-edit:focus-visible {
    color: var(--g-accent);
    background: #f5f5f5;
}

.g-rate-edit svg {
    display: block;
}

.g-rate-add-link {
    font-size: 13px;
}

.g-rate-thanks {
    font-size: 13px;
    color: #2e7d32;
    margin-top: 4px;
}

.g-stars--busy {
    opacity: 0.55;
    pointer-events: none;
}

.g-rate-comment-wrap {
    margin-top: 8px;
}

.g-rate-comment-wrap[hidden] {
    display: none !important;
}

.g-rate-comment {
    width: 100%;
    min-height: 72px;
    border: 1px solid var(--g-border);
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.g-rate-cancel-link {
    margin-top: 8px;
}

.g-rate-photos {
    margin-top: 8px;
}

.g-rate-comment-wrap .g-rate-photos {
    margin-top: 10px;
}

.g-rate-photos-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 6px;
}

.g-rate-photo-item {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.g-rate-photo-item--pending .g-rate-photo-thumb {
    opacity: 0.55;
}

.g-rate-photo-item--pending::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    border: 1px solid var(--g-border);
    background: rgba(255, 255, 255, 0.35);
    pointer-events: none;
}

.g-rate-photos-status {
    margin: 0 0 8px;
    font-size: 12px;
    line-height: 1.35;
    color: var(--g-danger);
}

.g-rate-photo-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--g-border);
    cursor: pointer;
    display: block;
}

.g-rate-photo-remove {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.72);
    color: #fff;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.g-rate-photos-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
}

.g-rate-photo-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    font-size: 13px;
    color: var(--g-muted);
    cursor: pointer;
    background: none;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.g-rate-photo-btn:hover,
.g-rate-photo-btn:focus-within {
    color: var(--g-accent);
}

.g-rate-photo-btn-ic {
    display: inline-flex;
    flex-shrink: 0;
    text-decoration: none;
}

.g-rate-photo-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.g-rate-photos--view {
    margin-top: 6px;
}

.g-photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 1200;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.g-photo-lightbox-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.g-photo-lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
}

.g-rate-comment-wrap .g-save-comment {
    margin-top: 12px;
}

.g-save-comment {
    margin-top: 8px;
}

.g-rate-cancel-link {
    display: block;
    margin-top: 10px;
    font-size: 12px;
}

.g-rating-card {
    margin-bottom: 12px;
}

.g-rating-card-hint {
    margin: 0 0 12px;
    font-size: 14px;
    color: var(--g-muted);
}

.g-rate-all-btn {
    margin-top: 12px;
    width: 100%;
}

.g-tab {
    position: relative;
}

.g-tab-badge {
    position: absolute;
    top: 6px;
    right: calc(50% - 22px);
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--g-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 18px;
    text-align: center;
    box-sizing: border-box;
}

.g-invite {
    padding: 14px;
    border: 1px solid var(--g-border);
    border-radius: 10px;
    margin-bottom: 10px;
}

.g-invite h3 {
    margin: 0 0 6px;
    font-size: 15px;
}

.g-invite-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.g-invite-actions .g-btn {
    flex: 1;
    margin: 0;
    padding: 10px;
    font-size: 13px;
}

.g-auth-disclaimer {
    margin: 16px 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: var(--g-muted);
    text-align: center;
}

.g-auth-disclaimer a {
    color: var(--g-accent);
    text-decoration: underline;
}

.g-wait {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: var(--g-muted);
}

.g-sms-instruct {
    text-align: left;
}

.g-sms-instruct-line {
    margin: 0 0 6px;
}

.g-sms-copy-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 10px;
}

.g-sms-copy-value {
    flex: 1;
    min-width: 0;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.65);
    font-weight: 600;
    font-size: 15px;
    line-height: 1.3;
    word-break: break-all;
}

.g-sms-copy-text {
    user-select: all;
    cursor: text;
}

.g-sms-copy-phone {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.g-sms-copy-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid rgba(26, 82, 118, 0.18);
    border-radius: 8px;
    background: #fff;
    color: #1a5276;
    cursor: pointer;
}

.g-sms-copy-btn:active,
.g-sms-copy-btn.is-copied {
    background: #dceeff;
    border-color: rgba(26, 82, 118, 0.35);
}

.g-hello {
    margin: 0 0 14px;
    font-size: 20px;
}

.g-pass-card {
    padding: 0;
    overflow: hidden;
}

.g-pass-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 14px 16px;
    border: none;
    background: transparent;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    color: inherit;
}

.g-pass-toggle-main {
    flex: 1;
    min-width: 0;
}

.g-pass-title {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.g-pass-hint {
    margin: 0 0 12px;
    font-size: 13px;
    line-height: 1.35;
    color: var(--g-muted);
    text-align: center;
}

.g-pass-qr-ic {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    color: var(--g-accent);
}

.g-pass-qr-ic svg {
    display: block;
    width: 100%;
    height: 100%;
}

.g-pass-qr-ic svg path,
.g-pass-qr-ic svg rect {
    fill: currentColor;
}

.g-pass-toggle-ic {
    display: none;
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--g-muted);
    border-bottom: 2px solid var(--g-muted);
    transform: rotate(45deg);
    margin-top: 4px;
}

.g-pass-card--open .g-pass-qr-ic {
    display: none;
}

.g-pass-card--open .g-pass-toggle-ic {
    display: block;
}

.g-pass-body {
    padding: 0 16px 16px;
    text-align: center;
}

.g-pass-qr {
    display: flex;
    justify-content: center;
    margin: 0 auto 12px;
    width: 184px;
    min-height: 184px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
}

.g-pass-qr img,
.g-pass-qr canvas {
    width: 168px !important;
    height: 168px !important;
}

.g-pass-code {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 2px;
    font-variant-numeric: tabular-nums;
    user-select: all;
    -webkit-user-select: all;
    cursor: text;
}

.g-quick-links {
    margin-top: 16px;
}

.g-visit-line {
    margin: 0 0 12px;
    padding: 10px 12px;
    font-size: 14px;
    line-height: 1.35;
    border-radius: 8px;
    color: #1e6b3a;
    background: #eafaf1;
}

.g-modal {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.g-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.g-modal-panel {
    position: relative;
    background: var(--g-white);
    border-radius: 14px;
    padding: 24px 20px;
    max-width: 440px;
    width: 100%;
    max-height: 80vh;
    overflow-y: auto;
}

.g-modal-panel h2 {
    margin: 0 0 12px;
    font-size: 18px;
}

.g-modal-panel h3 {
    margin: 16px 0 6px;
    font-size: 15px;
}

.g-modal-panel p {
    margin: 0 0 8px;
    font-size: 14px;
    color: var(--g-text);
}

.g-modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: var(--g-muted);
    cursor: pointer;
    padding: 4px;
}

.g-msg {
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 12px;
}

.g-msg-info { background: #eef6ff; color: #1a5276; }
.g-msg-error { background: #fdecea; color: var(--g-danger); }
.g-msg-success { background: #eafaf1; color: #1e8449; }

.g-hidden { display: none !important; }

.g-loading {
    text-align: center;
    padding: 40px;
    color: var(--g-muted);
}

.g-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--g-muted);
    font-size: 14px;
}

.g-auth-icon {
    font-size: 18px;
    margin-right: 8px;
}

.g-pay-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fff8e1;
    border: 1.5px solid #f0c040;
}

.g-pay-order-link {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 17px;
    text-align: left;
    color: inherit;
    cursor: pointer;
}

.g-pay-order-link strong {
    font-size: 22px;
    color: #c0392b;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.g-pay-order-link:hover strong,
.g-pay-order-link:focus-visible strong {
    color: #922b21;
}

.g-pay-sum {
    font-size: 17px;
}

.g-pay-sum strong {
    font-size: 22px;
    color: #c0392b;
}

.g-card--highlight {
    animation: g-card-highlight 2.2s ease;
}

@keyframes g-card-highlight {
    0%, 100% { box-shadow: none; }
    15%, 55% { box-shadow: 0 0 0 3px rgba(240, 192, 64, 0.85); }
}

.g-pay-btn {
    font-size: 16px;
    padding: 14px 16px;
}

.g-pay-hint {
    margin: 0;
    font-size: 12px;
    color: var(--g-muted);
}

.g-cpp-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: var(--g-bg);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.g-cpp-inner {
    max-width: 480px;
    margin: 0 auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 100vh;
}

.g-cpp-back {
    align-self: flex-start;
    background: none;
    border: none;
    color: var(--g-accent);
    font-size: 15px;
    cursor: pointer;
    padding: 0;
}

.g-cpp-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.g-cpp-sum {
    font-size: 36px;
    font-weight: 700;
    color: var(--g-text);
}

.g-cpp-sbp-btn {
    font-size: 17px;
    padding: 16px;
    text-align: center;
}

.g-cpp-qr {
    display: flex;
    justify-content: center;
    padding: 8px 0;
}

.g-cpp-qr-img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
}

.g-cpp-status {
    font-size: 15px;
    color: var(--g-muted);
    text-align: center;
    padding: 8px;
}

.g-cpp-paid {
    font-size: 22px;
    font-weight: 700;
    color: #1e6b3a;
    background: #eafaf1;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
}

.g-level-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--g-accent);
    cursor: pointer;
    border-bottom: 1px dashed currentColor;
}

.g-level-btn-ic {
    flex: none;
    width: 7px;
    height: 7px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    transition: transform 0.15s ease;
    margin-bottom: 2px;
}

.g-level-btn--open .g-level-btn-ic {
    transform: rotate(-135deg);
    margin-bottom: -2px;
}

.g-level-info {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid var(--g-border);
    font-size: 13px;
    line-height: 1.4;
    color: var(--g-muted);
}

.g-milestone {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 12px;
}

.g-milestone-ic {
    flex: none;
    font-size: 26px;
    line-height: 1;
}

.g-milestone-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.g-milestone-text strong {
    font-size: 15px;
    line-height: 1.3;
}

.g-milestone-text span {
    font-size: 13px;
    line-height: 1.35;
    color: var(--g-muted);
}

.g-milestone--nice {
    background: #fdf2f2;
    border: 1px solid #f3d6d6;
}

.g-milestone--special {
    background: #fbe9ea;
    border: 1px solid #e7b9bb;
}

.g-milestone--special .g-milestone-ic {
    font-size: 30px;
}

.g-milestone--legend {
    color: var(--g-white);
    background: linear-gradient(135deg, #D7696A 0%, #b94d4f 100%);
    border: none;
    box-shadow: 0 6px 18px rgba(185, 77, 79, 0.35);
}

.g-milestone--legend .g-milestone-ic {
    font-size: 34px;
}

.g-milestone--legend .g-milestone-text strong {
    font-size: 17px;
}

.g-milestone--legend .g-milestone-text span {
    color: rgba(255, 255, 255, 0.85);
}

.g-call-waiter-card {
    margin-bottom: 14px;
}

.g-call-waiter-title {
    margin: 0 0 10px;
    font-size: 16px;
    font-weight: 600;
}

.g-call-waiter-btn {
    width: 100%;
}

.g-call-waiter-input {
    width: 100%;
    min-height: 88px;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid var(--g-border);
    border-radius: 10px;
    font: inherit;
    resize: vertical;
    box-sizing: border-box;
}

.g-call-waiter-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.g-call-waiter-status {
    margin: 10px 0 0;
    font-size: 13px;
    color: var(--g-accent);
}

.g-call-waiter-ok {
    margin: 0;
    font-size: 15px;
    color: #2d6a3a;
    text-align: center;
}
