.hga-customer-theme {
    --hga-bg: #f4f3f1;
    --hga-surface: #ffffff;
    --hga-text: #1c1c1e;
    --hga-muted: #6b6b70;
    --hga-accent: #1f6f6f;
    --hga-accent-dark: #155454;
    --hga-gold: #c9a227;
    --hga-success: #248a3d;
    --hga-danger: #ff3b30;
    --hga-warning: #ff9f0a;
    --hga-radius: 22px;
    --hga-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
    --hga-ease: cubic-bezier(.22,1,.36,1);

    max-width: 760px;
    margin: 0 auto;
    padding: 14px;
    padding-bottom: calc(14px + env(safe-area-inset-bottom));
    background: var(--hga-bg);
    color: var(--hga-text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 16px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; box-sizing: border-box;
}
.hga-customer-theme *, .hga-customer-theme *::before, .hga-customer-theme *::after { box-sizing: border-box; }

.hga-customer-theme .hga-card { background: var(--hga-surface); border-radius: var(--hga-radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--hga-shadow); }

.hga-customer-theme .hga-table-header { background: linear-gradient(135deg, #1f6f6f 0%, #16414a 100%); color: #fff; padding: 20px 18px 18px; position: relative; overflow: hidden; }
.hga-customer-theme .hga-table-header::after { content: ""; position: absolute; width: 220px; height: 220px; right: -70px; top: -90px; border-radius: 50%; background: radial-gradient(circle, rgba(201,162,39,.35), rgba(201,162,39,0) 70%); pointer-events: none; }

.hga-customer-theme .hga-header-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; position: relative; z-index: 1; }
.hga-customer-theme .hga-header-brand img { background: #fff; padding: 6px; border-radius: 16px !important; box-shadow: 0 4px 14px rgba(0,0,0,.15); flex-shrink: 0; }
.hga-customer-theme .hga-icon-plate { width: 58px; height: 58px; border-radius: 18px; background: rgba(255,255,255,.22); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); display: inline-flex; align-items: center; justify-content: center; font-size: 1.9rem; flex-shrink: 0; }
.hga-customer-theme .hga-header-brand h2 { margin: 0; font-size: 1.45rem; font-weight: 700; letter-spacing: -.02em; color: #fff; line-height: 1.15; }
.hga-customer-theme .hga-subtitle { margin: 4px 0 0; font-size: .9rem; color: var(--hga-muted); }
.hga-customer-theme .hga-table-header .hga-subtitle { color: rgba(255,255,255,.85); }

.hga-customer-theme .hga-table-picker { position: relative; z-index: 1; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.16); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid rgba(255,255,255,.25); }
.hga-customer-theme .hga-table-picker label { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.9); }
.hga-customer-theme .hga-input-group { display: flex; gap: 8px; }
.hga-customer-theme .hga-input-group input[type="text"] { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 2px solid transparent; border-radius: 14px; background: #fff; color: var(--hga-text); font-size: 1.15rem; font-weight: 700; -webkit-appearance: none; appearance: none; }
.hga-customer-theme .hga-input-group input[type="text"]::placeholder { color: #aeaeb2; font-weight: 500; }
.hga-customer-theme .hga-input-group input[type="text"]:focus { outline: none; border-color: rgba(255,255,255,.9); box-shadow: 0 0 0 4px rgba(255,255,255,.3); }
.hga-customer-theme .hga-table-picker .hga-btn-primary { background: #1c1c1e; color: #fff; height: 52px; padding: 0 20px; }
.hga-customer-theme .hga-table-picker .hga-btn-primary:hover { background: #000; }

.hga-customer-theme .hga-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border: none; border-radius: 14px; font-family: inherit; font-size: 1rem; font-weight: 600; text-decoration: none; cursor: pointer; transition: transform .15s var(--hga-ease), background-color .2s; }
.hga-customer-theme .hga-btn:active { transform: scale(.97); }
.hga-customer-theme .hga-btn-primary { background: var(--hga-accent); color: #fff; }
.hga-customer-theme .hga-btn-primary:hover { background: var(--hga-accent-dark); }
.hga-customer-theme .hga-btn-success { background: var(--hga-success); color: #fff; }
.hga-customer-theme .hga-btn-success:hover { background: #1d7433; }

.hga-customer-theme .hga-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; }
.hga-customer-theme .hga-badge-info { background: #e2f2f2; color: #155454; }
.hga-customer-theme .hga-badge-warning { background: #fff1d6; color: #b25e00; }
.hga-customer-theme .hga-badge-success { background: #dcf5e3; color: #1d7433; }

.hga-customer-theme .hga-active-wrap { align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.hga-customer-theme .hga-active-wrap .hga-badge { margin-top: 0; background: rgba(255,255,255,.95); color: #155454; }
.hga-customer-theme .hga-change-table-btn { min-height: 40px; padding: 0 14px; border: none; border-radius: 999px; background: rgba(255,255,255,.22); color: #fff; font-family: inherit; font-size: .85rem; font-weight: 700; cursor: pointer; transition: background .2s, transform .15s var(--hga-ease); }
.hga-customer-theme .hga-change-table-btn:hover { background: rgba(255,255,255,.34); }
.hga-customer-theme .hga-change-table-btn:active { transform: scale(.96); }

/* DND toggle */
.hga-customer-theme .hga-dnd-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: rgba(0,0,0,.18); }
.hga-customer-theme .hga-dnd-text { display: flex; flex-direction: column; color: #fff; }
.hga-customer-theme .hga-dnd-text strong { font-size: .95rem; }
.hga-customer-theme .hga-dnd-text span { font-size: .78rem; opacity: .8; }
.hga-customer-theme .hga-dnd-toggle { position: relative; width: 54px; height: 32px; flex-shrink: 0; border: none; border-radius: 999px; background: rgba(255,255,255,.28); cursor: pointer; transition: background .25s; padding: 0; }
.hga-customer-theme .hga-dnd-toggle.on { background: var(--hga-gold); }
.hga-customer-theme .hga-dnd-knob { position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.25); transition: transform .25s var(--hga-ease); }
.hga-customer-theme .hga-dnd-toggle.on .hga-dnd-knob { transform: translateX(22px); }

.hga-customer-theme .hga-tracker-box { border-left: none; padding: 18px; }
.hga-customer-theme .hga-tracker-box h3 { margin: 0; font-size: 1.05rem; font-weight: 700; }
.hga-customer-theme .hga-tracker-list { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.hga-customer-theme .hga-tracker-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px; border-radius: 16px; background: var(--hga-bg); }
.hga-customer-theme .hga-tracker-info h4 { margin: 0 0 2px; font-size: 1rem; font-weight: 700; }
.hga-customer-theme .hga-tracker-info p { margin: 0; font-size: .85rem; color: var(--hga-muted); }

/* Menu card */
.hga-customer-theme .hga-menu-card { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border-radius: var(--hga-radius); background: linear-gradient(135deg, #c9a227 0%, #8a6a13 100%); color: #fff; box-shadow: 0 8px 24px rgba(201,162,39,.3); cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .2s var(--hga-ease); }
.hga-customer-theme .hga-menu-card:active { transform: scale(.97); }
.hga-customer-theme .hga-menu-card:focus-visible { outline: 3px solid rgba(255,255,255,.8); outline-offset: 2px; }
.hga-customer-theme .hga-menu-card-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.25); font-size: 1.7rem; flex-shrink: 0; }
.hga-customer-theme .hga-menu-card-text { flex: 1; display: flex; flex-direction: column; }
.hga-customer-theme .hga-menu-card-text strong { font-size: 1.1rem; letter-spacing: -.01em; }
.hga-customer-theme .hga-menu-card-text span { font-size: .85rem; opacity: .9; }
.hga-customer-theme .hga-menu-card-arrow { font-size: 2rem; line-height: 1; opacity: .85; }

/* Grid */
.hga-customer-theme .hga-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; }
.hga-customer-theme .hga-grid-item { --tint: #e2f2f2; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; min-height: 168px; padding: 18px 12px 16px; text-align: center; background: var(--hga-surface); border-radius: var(--hga-radius); box-shadow: var(--hga-shadow); cursor: pointer; user-select: none; -webkit-user-select: none; transition: transform .2s var(--hga-ease), box-shadow .2s; }
.hga-customer-theme .hga-grid-item:nth-child(8n+1) { --tint: #e2f2f2; }
.hga-customer-theme .hga-grid-item:nth-child(8n+2) { --tint: #fff1d6; }
.hga-customer-theme .hga-grid-item:nth-child(8n+3) { --tint: #ffe4e1; }
.hga-customer-theme .hga-grid-item:nth-child(8n+4) { --tint: #e8f8ec; }
.hga-customer-theme .hga-grid-item:nth-child(8n+5) { --tint: #efe8ff; }
.hga-customer-theme .hga-grid-item:nth-child(8n+6) { --tint: #fde7f3; }
.hga-customer-theme .hga-grid-item:nth-child(8n+7) { --tint: #fff7c9; }
.hga-customer-theme .hga-grid-item:nth-child(8n+8) { --tint: #e5f1ff; }
.hga-customer-theme .hga-grid-item:active { transform: scale(.96); }
@media (hover: hover) { .hga-customer-theme .hga-grid-item:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(0,0,0,.04), 0 16px 32px rgba(31,111,111,.16); } }
.hga-customer-theme .hga-item-icon { width: 62px; height: 62px; margin-bottom: 12px; border-radius: 20px; background: var(--tint); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; }
.hga-customer-theme .hga-item-title { margin-bottom: 4px; font-size: .98rem; font-weight: 700; letter-spacing: -.01em; color: var(--hga-text); line-height: 1.2; }
.hga-customer-theme .hga-item-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .78rem; line-height: 1.3; color: var(--hga-muted); }

.hga-customer-theme .hga-social-review-bar { margin-top: 16px !important; padding: 20px 16px !important; border-radius: var(--hga-radius) !important; box-shadow: var(--hga-shadow); text-align: center; }
.hga-customer-theme .hga-review-buttons a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; transition: transform .15s var(--hga-ease); }
.hga-customer-theme .hga-review-buttons a:active { transform: scale(.96); }

/* Modal */
.hga-customer-theme .hga-modal-overlay { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: flex-end; justify-content: center; background: rgba(0,0,0,.45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.hga-customer-theme .hga-modal { width: 100%; max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; overflow: hidden; background: var(--hga-surface); border-radius: 28px 28px 0 0; box-shadow: 0 -10px 40px rgba(0,0,0,.2); animation: hgaSheetUp .35s var(--hga-ease); }
@keyframes hgaSheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
.hga-customer-theme .hga-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 20px 8px; position: relative; }
.hga-customer-theme .hga-modal-header::before { content: ""; position: absolute; top: 8px; left: 50%; width: 38px; height: 5px; border-radius: 3px; background: rgba(60,60,67,.2); transform: translateX(-50%); }
.hga-customer-theme .hga-modal-header h3 { margin: 0; font-size: 1.25rem; font-weight: 700; letter-spacing: -.02em; }
.hga-customer-theme .hga-modal-close { width: 32px; height: 32px; padding: 0; border: none; border-radius: 50%; background: rgba(118,118,128,.16); color: var(--hga-muted); font-size: 1.3rem; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.hga-customer-theme .hga-modal-body { padding: 8px 20px 12px; overflow-y: auto; -webkit-overflow-scrolling: touch; }
.hga-customer-theme .hga-modal-body label { display: block; margin: 8px 0; font-size: .88rem; font-weight: 600; color: var(--hga-muted); }
.hga-customer-theme .hga-modal-body select, .hga-customer-theme .hga-modal-body textarea, .hga-customer-theme .hga-modal-body input { width: 100%; min-height: 50px; margin-bottom: 14px; padding: 12px 14px; border: 2px solid transparent; border-radius: 14px; background: var(--hga-bg); color: var(--hga-text); font-family: inherit; font-size: 1rem; -webkit-appearance: none; appearance: none; }
.hga-customer-theme .hga-modal-body select { padding-right: 40px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1.5l6 6 6-6' fill='none' stroke='%236b6b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.hga-customer-theme .hga-modal-body textarea { resize: none; line-height: 1.4; }
.hga-customer-theme .hga-modal-body select:focus, .hga-customer-theme .hga-modal-body textarea:focus, .hga-customer-theme .hga-modal-body input:focus { outline: none; border-color: var(--hga-accent); background: #fff; }
.hga-customer-theme .hga-modal-footer { padding: 8px 20px calc(20px + env(safe-area-inset-bottom)); text-align: center; }
.hga-customer-theme .hga-modal-footer .hga-btn { width: 100%; min-height: 54px; font-size: 1.05rem; }
.hga-customer-theme .hga-modal-body .hga-menu-pdf { width: 100%; margin-bottom: 12px; color: #fff; }
.hga-customer-theme .hga-menu-image { margin-bottom: 16px; }
.hga-customer-theme .hga-menu-image-title { margin-bottom: 8px; font-size: .95rem; font-weight: 700; }
.hga-customer-theme .hga-menu-image img { display: block; width: 100%; height: auto; border-radius: 16px; background: var(--hga-bg); }
.hga-customer-theme .hga-guide-block { margin-bottom: 16px; }
.hga-customer-theme .hga-guide-block h4 { margin: 0 0 6px; font-size: .95rem; font-weight: 700; color: var(--hga-accent-dark); }
.hga-customer-theme .hga-guide-block p { margin: 0; font-size: .92rem; color: var(--hga-text); white-space: pre-wrap; line-height: 1.5; }

.hga-customer-theme .hga-toast { position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1000000; width: max-content; max-width: calc(100vw - 32px); padding: 14px 22px; border-radius: 999px; background: rgba(28,28,30,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; font-size: .95rem; font-weight: 600; text-align: center; box-shadow: 0 10px 30px rgba(0,0,0,.3); }
.hga-customer-theme .hga-text-muted { color: var(--hga-muted); }

@media (min-width: 600px) {
    .hga-customer-theme { padding: 24px; }
    .hga-customer-theme .hga-table-header { padding: 28px 26px 24px; }
    .hga-customer-theme .hga-header-brand h2 { font-size: 1.75rem; }
    .hga-customer-theme .hga-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; }
    .hga-customer-theme .hga-grid-item { min-height: 184px; padding: 22px 14px 18px; }
    .hga-customer-theme .hga-modal-overlay { align-items: center; padding: 20px; }
    .hga-customer-theme .hga-modal { border-radius: 28px; }
    .hga-customer-theme .hga-modal-header::before { display: none; }
    .hga-customer-theme .hga-modal-footer { padding-bottom: 20px; }
    .hga-customer-theme .hga-toast { bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .hga-customer-theme *, .hga-customer-theme *::before, .hga-customer-theme *::after { animation: none !important; transition: none !important; } }

.hga-customer-theme .hga-dt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.hga-customer-theme .hga-dt-field { display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 14px; background: var(--hga-bg); margin-bottom: 14px; }
.hga-customer-theme .hga-dt-grid .hga-dt-field { margin-bottom: 0; }
.hga-customer-theme .hga-dt-icon { font-size: 1.2rem; flex-shrink: 0; }
.hga-customer-theme .hga-dt-input { flex: 1; border: none !important; background: transparent !important; margin-bottom: 0 !important; padding: 12px 0 !important; }

.hga-customer-theme .hga-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.hga-customer-theme .hga-time-chip { padding: 8px 14px; border: none; border-radius: 999px; background: var(--hga-bg); color: var(--hga-text); font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .2s, color .2s; }
.hga-customer-theme .hga-time-chip:hover { background: #e2f2f2; }
.hga-customer-theme .hga-time-chip.active { background: var(--hga-accent); color: #fff; }

.hga-customer-theme .hga-daytoggle { display: flex; gap: 8px; margin-bottom: 14px; }
.hga-customer-theme .hga-day-chip { flex: 1; padding: 10px; border: none; border-radius: 12px; background: var(--hga-bg); color: var(--hga-text); font-family: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.hga-customer-theme .hga-day-chip.active { background: var(--hga-accent); color: #fff; }

.hga-customer-theme .hga-segmented { display: flex; gap: 8px; margin-bottom: 14px; }
.hga-customer-theme .hga-seg-btn { flex: 1; padding: 12px 8px; border: none; border-radius: 12px; background: var(--hga-bg); color: var(--hga-text); font-family: inherit; font-size: .88rem; font-weight: 700; cursor: pointer; transition: background .2s, color .2s; }
.hga-customer-theme .hga-seg-btn.active { background: var(--hga-accent); color: #fff; }

.hga-customer-theme .hga-anon-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--hga-bg); margin-bottom: 10px; }
.hga-customer-theme .hga-anon-text { display: flex; flex-direction: column; }
.hga-customer-theme .hga-anon-text strong { font-size: .92rem; }
.hga-customer-theme .hga-anon-text span { font-size: .78rem; color: var(--hga-muted); }
.hga-customer-theme .hga-anon-row .hga-dnd-toggle { background: rgba(0,0,0,.12); }
.hga-customer-theme .hga-anon-row .hga-dnd-toggle.on { background: var(--hga-accent); }
.hga-customer-theme .hga-fb-room-note { margin: 0 0 14px; font-size: .82rem; color: var(--hga-muted); }

.hga-customer-theme .hga-feedback-item { align-items: flex-start; }
.hga-customer-theme .hga-feedback-item .hga-tracker-info p { margin: 4px 0 0; font-size: .85rem; color: var(--hga-text); }
.hga-customer-theme .hga-feedback-item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.hga-customer-theme .hga-fb-dismiss { min-height: 34px; padding: 0 12px; border: none; border-radius: 999px; background: rgba(0,0,0,.08); color: var(--hga-text); font-family: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; transition: background .2s; }
.hga-customer-theme .hga-fb-dismiss:hover { background: rgba(0,0,0,.15); }