/* Concierge — the reception tablet (/concierge/).
   Light, warm "hotel lobby" palette by day; a deep charcoal palette after
   dark (html.cg-night, set by concierge.js from the local hour). Every colour
   is a token so both palettes stay in step. */

:root {
    --cg-bg: #f5f1ea;
    --cg-card: #fffdf9;
    --cg-ink: #1f1c18;
    --cg-sub: #766f65;
    --cg-line: rgba(31, 28, 24, .10);
    --cg-fill: rgba(31, 28, 24, .06);
    --cg-fill-2: rgba(31, 28, 24, .10);
    --cg-accent: #9c7a4a;
    --cg-accent-soft: rgba(156, 122, 74, .13);
    --cg-on-ink: #fffdf9;
    --cg-shadow: 0 1px 2px rgba(31, 28, 24, .05), 0 10px 30px rgba(31, 28, 24, .08);
    --cg-shadow-lg: 0 30px 80px rgba(20, 16, 10, .28);
    --cg-green: #34c759;
    --cg-red: #d6453d;
    --cg-serif: 'Cormorant Garamond', 'Cardo', Georgia, 'Times New Roman', serif;
    --cg-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
    --cg-pad: 28px;
    --cg-top-h: 76px;
}
html.cg-night {
    --cg-bg: #12110f;
    --cg-card: #1c1a17;
    --cg-ink: #f3eee5;
    --cg-sub: #a39b8f;
    --cg-line: rgba(255, 255, 255, .09);
    --cg-fill: rgba(255, 255, 255, .07);
    --cg-fill-2: rgba(255, 255, 255, .12);
    --cg-accent: #d0ae78;
    --cg-accent-soft: rgba(208, 174, 120, .15);
    --cg-on-ink: #12110f;
    --cg-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 30px rgba(0, 0, 0, .35);
}

html, body {
    height: 100%;
    overflow: hidden;
    background: var(--cg-bg) !important;
    color: var(--cg-ink);
    font-family: var(--cg-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    -webkit-user-select: none;
    overscroll-behavior: none;
}
body { transition: background-color .6s ease; }
#content { min-height: 0; }
.lk-contact-fab, #pwa-install-banner, #ios-install-prompt, .app-bottom-nav { display: none !important; }
.cg button { font-family: inherit; }
.cg input, .cg-sheet input { user-select: text; -webkit-user-select: text; }
[hidden] { display: none !important; }

/* ── Shell ─────────────────────────────────────────────── */
.cg {
    position: fixed;
    inset: 0;
    height: 100vh;
    height: 100dvh;
    display: flex;
    flex-direction: column;
    background: var(--cg-bg);
    transition: background-color .6s ease;
}

.cg-top {
    flex: 0 0 var(--cg-top-h);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 var(--cg-pad);
}
.cg-brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    border: 0;
    background: none;
    padding: 6px 8px 6px 0;
    color: inherit;
    cursor: default;
    border-radius: 16px;
    position: relative;
}
.cg-brand::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background: var(--cg-accent);
    border-radius: 2px;
}
.cg-brand.is-pressing::after { width: 100%; transition: width 1.2s linear; }
.cg-brand-logo { height: 46px; width: auto; max-width: 150px; object-fit: contain; }
.cg-brand-mark {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cg-accent-soft);
    color: var(--cg-accent);
    font-family: var(--cg-serif);
    font-size: 1.6rem;
    font-weight: 600;
    flex: 0 0 auto;
}
.cg-brand-tx { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; line-height: 1.1; }
.cg-brand-name {
    font-family: var(--cg-serif);
    font-size: 1.5rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 44vw;
}
.cg-brand-tag {
    margin-top: 3px;
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--cg-accent);
}
.cg-top-r { display: flex; align-items: center; gap: 10px; }
.cg-clock {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
    margin-right: 8px;
    font-variant-numeric: tabular-nums;
}
.cg-clock span:first-child { font-size: .78rem; color: var(--cg-sub); text-transform: capitalize; }
.cg-clock-t { font-size: 1.45rem; font-weight: 600; letter-spacing: -.01em; }
.cg-round {
    height: 46px;
    min-width: 46px;
    border-radius: 999px;
    border: 0;
    background: var(--cg-fill);
    color: var(--cg-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 1.05rem;
    cursor: pointer;
    transition: background .15s, transform .12s;
}
.cg-round:active { transform: scale(.95); background: var(--cg-fill-2); }
.cg-lang-btn { padding: 0 16px; font-size: .92rem; font-weight: 600; letter-spacing: .04em; }
.cg-lang-btn .bi { font-size: 1.05rem; }

.cg-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 0 var(--cg-pad) 110px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.cg-scroll::-webkit-scrollbar { display: none; }

/* ── Hero ─────────────────────────────────────────────── */
.cg-hero {
    position: relative;
    height: clamp(300px, 44vh, 470px);
    border-radius: 30px;
    overflow: hidden;
    background: linear-gradient(135deg, #3a2f24 0%, #6d5337 55%, #a07c4f 100%);
    color: #fff;
    isolation: isolate;
}
.cg-hero-media, .cg-hero-media > div { position: absolute; inset: 0; }
.cg-hero-media > div {
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.4s ease;
    transform: scale(1.06);
}
.cg-hero-media > div.on { opacity: 1; animation: cg-kenburns 9s ease-out forwards; }
@keyframes cg-kenburns { from { transform: scale(1.08); } to { transform: scale(1); } }
.cg-hero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(14, 11, 8, .62) 0%, rgba(14, 11, 8, .32) 42%, rgba(14, 11, 8, 0) 72%),
        linear-gradient(0deg, rgba(14, 11, 8, .35) 0%, rgba(14, 11, 8, 0) 45%);
}
.cg-hero-body {
    position: absolute;
    left: 44px;
    right: 44px;
    bottom: 40px;
    max-width: 640px;
}
.cg-hero-eyebrow {
    font-size: .8rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    opacity: .85;
}
.cg-hero-title {
    font-family: var(--cg-serif);
    font-weight: 500;
    font-size: clamp(2.9rem, 6.2vw, 5rem);
    line-height: 1;
    letter-spacing: -.01em;
    margin: 10px 0 12px;
    color: #fff;
}
.cg-hero-sub { font-size: 1.12rem; line-height: 1.5; opacity: .92; max-width: 36ch; margin: 0; }
.cg-ask {
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 14px;
    border: 0;
    border-radius: 999px;
    padding: 9px 10px 9px 9px;
    background: rgba(255, 253, 249, .96);
    color: #1f1c18;
    text-align: left;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .22);
    cursor: pointer;
    transition: transform .15s;
}
.cg-ask:active { transform: scale(.97); }
.cg-ask-ic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #9c7a4a;
    color: #fff;
    font-size: 1.25rem;
    flex: 0 0 auto;
}
.cg-ask-tx { display: flex; flex-direction: column; line-height: 1.2; padding-right: 6px; }
.cg-ask-t { font-size: 1.06rem; font-weight: 600; }
.cg-ask-s { font-size: .82rem; color: #766f65; margin-top: 2px; }
.cg-ask-mic {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(31, 28, 24, .07);
    font-size: 1.1rem;
}

/* ── Categories + grid ─────────────────────────────────── */
.cg-section { margin-top: 30px; }
.cg-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 4px; }
.cg-section-title { font-family: var(--cg-serif); font-size: 2.2rem; font-weight: 600; margin: 0; line-height: 1.1; }
.cg-section-count { font-size: .9rem; color: var(--cg-sub); }
.cg-cats {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 12px 4px 14px;
    margin: 0 -4px 4px;
    background: var(--cg-bg);
    transition: background-color .6s ease;
}
.cg-cats::-webkit-scrollbar { display: none; }
.cg-cat {
    flex: 0 0 auto;
    height: 48px;
    padding: 0 20px;
    border-radius: 999px;
    border: 1px solid var(--cg-line);
    background: var(--cg-card);
    color: var(--cg-ink);
    font-size: .98rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
    white-space: nowrap;
}
.cg-cat .bi { color: var(--cg-accent); font-size: 1.02rem; transition: color .2s; }
.cg-cat.active { background: var(--cg-ink); color: var(--cg-on-ink); border-color: var(--cg-ink); }
.cg-cat.active .bi { color: var(--cg-on-ink); }

.cg-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 22px;
    margin-top: 4px;
}
.cg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--cg-card);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--cg-shadow);
    cursor: pointer;
    text-align: left;
    border: 0;
    padding: 0;
    color: inherit;
    transition: transform .16s ease, box-shadow .16s ease;
    animation: cg-rise .5s ease both;
}
.cg-card:active { transform: scale(.98); }
@keyframes cg-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cg-card-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-color: var(--cg-fill);
    overflow: hidden;
}
.cg-card-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-card-media.ph { display: grid; place-items: center; }
.cg-card-media.ph .bi { font-size: 3rem; color: var(--cg-accent); opacity: .75; }
.ph-getting_around { background: linear-gradient(135deg, #e3e9ee, #cfd9e2); }
.ph-eat_drink { background: linear-gradient(135deg, #f3e4d4, #e6ccb2); }
.ph-stay { background: linear-gradient(135deg, #ece5da, #d9cdbb); }
.ph-wellness { background: linear-gradient(135deg, #e4ede5, #cfdfd2); }
.ph-activities { background: linear-gradient(135deg, #efe6d6, #e0cfb0); }
.ph-other { background: linear-gradient(135deg, #ebe6ef, #d8d0e2); }
html.cg-night .cg-card-media.ph { background: linear-gradient(135deg, #26221d, #332c24); }
.cg-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    padding: 5px 11px;
    border-radius: 999px;
    background: rgba(255, 253, 249, .92);
    color: #1f1c18;
    font-size: .74rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.cg-card-badge .bi { color: #9c7a4a; }
.cg-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; }
.cg-card-eyebrow {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--cg-accent);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cg-card-name {
    font-family: var(--cg-serif);
    font-size: 1.62rem;
    font-weight: 600;
    line-height: 1.12;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cg-card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; }
.cg-card-meta { font-size: .9rem; color: var(--cg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-card-meta b { color: var(--cg-ink); font-weight: 600; }
.cg-card-go {
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cg-accent-soft);
    color: var(--cg-accent);
    font-size: 1.05rem;
}
@media (min-width: 980px) {
    .cg-card.feature { grid-column: span 2; }
    .cg-card.feature .cg-card-media { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; }
    .cg-card.feature .cg-card-body { flex: 0 0 auto; }
    .cg-card.feature .cg-card-name { font-size: 2.1rem; }
}
.cg-empty { text-align: center; color: var(--cg-sub); padding: 60px 20px; }
.cg-empty .bi { font-size: 2.2rem; color: var(--cg-accent); display: block; margin-bottom: 8px; }
.cg-empty p { font-family: var(--cg-serif); font-size: 1.4rem; margin: 0; }

/* ── Detail sheet ─────────────────────────────────────── */
.cg-sheet-bg {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(18, 15, 11, .46);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}
.cg-sheet-bg.show { opacity: 1; pointer-events: auto; }
.cg-sheet {
    position: relative;
    width: min(1000px, 100%);
    max-height: calc(100dvh - 48px);
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    background: var(--cg-card);
    color: var(--cg-ink);
    border-radius: 30px;
    overflow: hidden;
    box-shadow: var(--cg-shadow-lg);
    transform: translateY(18px) scale(.985);
    transition: transform .32s cubic-bezier(.2, .8, .2, 1);
}
.cg-sheet-bg.show .cg-sheet { transform: none; }
.cg-sheet-media {
    position: relative;
    min-height: 420px;
    background-size: cover;
    background-position: center;
    background-color: var(--cg-fill);
    display: grid;
    place-items: center;
}
.cg-sheet-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-sheet-media > .bi { font-size: 4rem; color: var(--cg-accent); opacity: .7; }
.cg-sheet-body { padding: 36px 36px 30px; overflow-y: auto; display: flex; flex-direction: column; }
.cg-x {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: var(--cg-fill);
    color: var(--cg-ink);
    font-size: 1.05rem;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.cg-sheet-eyebrow {
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--cg-accent);
    padding-right: 50px;
}
.cg-sheet-title { font-family: var(--cg-serif); font-size: 2.5rem; font-weight: 600; line-height: 1.05; margin: 8px 0 10px; padding-right: 30px; }
.cg-sheet-desc { font-size: 1rem; line-height: 1.6; color: var(--cg-sub); margin: 0 0 6px; user-select: text; }
.cg-sheet-desc:empty { display: none; }
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; }
.cg-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    background: var(--cg-fill);
    font-size: .92rem;
    font-weight: 500;
}
.cg-chip .bi { color: var(--cg-accent); }
.cg-handoff {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 18px;
    border-radius: 22px;
    background: var(--cg-accent-soft);
}
.cg-qr {
    flex: 0 0 auto;
    width: 184px;
    height: 184px;
    padding: 12px;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.cg-qr img, .cg-qr canvas { width: 100% !important; height: 100% !important; display: block; }
.cg-handoff-t { font-family: var(--cg-serif); font-size: 1.55rem; font-weight: 600; line-height: 1.15; }
.cg-handoff-s { font-size: .92rem; color: var(--cg-sub); margin-top: 6px; line-height: 1.5; }
.cg-acts { display: flex; gap: 10px; margin-top: 14px; }
.cg-act {
    flex: 1 1 0;
    height: 54px;
    border: 0;
    border-radius: 16px;
    background: var(--cg-fill);
    color: var(--cg-ink);
    font-size: .98rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    cursor: pointer;
    transition: background .15s, transform .12s;
}
.cg-act .bi { font-size: 1.1rem; color: var(--cg-accent); }
.cg-act:active { transform: scale(.98); background: var(--cg-fill-2); }
.cg-act.on { background: var(--cg-ink); color: var(--cg-on-ink); }
.cg-act.on .bi { color: var(--cg-on-ink); }
.cg-act.ok { background: var(--cg-green); color: #fff; }
.cg-act.ok .bi { color: #fff; }
/* a grouped card's list (Γήπεδο 1…4, the room types): tap one → its QR */
.cg-pick { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.cg-pick[hidden], #modalQrPart[hidden] { display: none; }
.cg-pick-row {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-height: 76px;
    padding: 10px 16px 10px 10px;
    border: 0;
    border-radius: 18px;
    background: var(--cg-fill);
    color: var(--cg-ink);
    text-align: left;
    cursor: pointer;
    transition: background .15s, transform .12s;
}
.cg-pick-row:active { transform: scale(.99); background: var(--cg-fill-2); }
.cg-pick-ph {
    flex: 0 0 auto;
    width: 64px;
    height: 56px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    background-color: var(--cg-fill-2);
    display: grid;
    place-items: center;
}
.cg-pick-ph .bi { font-size: 1.3rem; color: var(--cg-accent); }
.cg-pick-tx { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.cg-pick-name { font-size: 1.08rem; font-weight: 600; line-height: 1.25; }
.cg-pick-meta { font-size: .9rem; color: var(--cg-sub); }
.cg-pick-go { flex: 0 0 auto; color: var(--cg-sub); font-size: 1rem; }
.cg-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 36px;
    margin: -8px 0 10px -6px;
    padding: 0 12px 0 8px;
    border: 0;
    border-radius: 999px;
    background: var(--cg-fill);
    color: var(--cg-ink);
    font-size: .9rem;
    font-weight: 600;
    cursor: pointer;
}
.cg-back[hidden] { display: none; }
.cg-sms { display: flex; gap: 10px; margin-top: 10px; }
.cg-sms input {
    flex: 1 1 auto;
    min-width: 0;
    height: 56px;
    border-radius: 16px;
    border: 1px solid var(--cg-line);
    background: var(--cg-bg);
    color: var(--cg-ink);
    padding: 0 16px;
    font-size: 1.25rem;
    letter-spacing: .02em;
    outline: none;
}
.cg-sms input:focus { border-color: var(--cg-accent); }
.cg-sms-send {
    height: 56px;
    padding: 0 24px;
    border: 0;
    border-radius: 16px;
    background: var(--cg-ink);
    color: var(--cg-on-ink);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
}
.cg-sms-send:disabled { opacity: .5; }
.cg-sms-msg { font-size: .9rem; margin-top: 8px; min-height: 1.2em; }
.cg-sms-msg.ok { color: #1a7f37; }
.cg-sms-msg.bad { color: var(--cg-red); }

/* ── Language popover ─────────────────────────────────── */
.cg-pop {
    position: fixed;
    z-index: 9500;
    min-width: 230px;
    padding: 8px;
    border-radius: 20px;
    background: var(--cg-card);
    box-shadow: var(--cg-shadow-lg);
    animation: cg-pop .18s ease;
}
@keyframes cg-pop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.cg-pop button {
    width: 100%;
    height: 52px;
    border: 0;
    background: none;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 14px;
    font-size: 1.02rem;
    color: var(--cg-ink);
    cursor: pointer;
}
.cg-pop button:active, .cg-pop button.active { background: var(--cg-fill); }
.cg-pop button small { color: var(--cg-sub); font-size: .8rem; letter-spacing: .06em; }
.cg-pop button .bi { color: var(--cg-accent); }

/* ── Chat ─────────────────────────────────────────────── */
.cg-chat {
    position: absolute;
    inset: 0;
    z-index: 50;
    display: flex;
    flex-direction: column;
    background: var(--cg-bg);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .38s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .38s;
}
.cg-chat.open { transform: none; visibility: visible; transition: transform .38s cubic-bezier(.2, .8, .2, 1); }
.cg-chat-top {
    flex: 0 0 var(--cg-top-h);
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 var(--cg-pad);
    border-bottom: 1px solid var(--cg-line);
}
.cg-chat-id { display: flex; align-items: center; gap: 12px; flex: 1 1 auto; min-width: 0; }
.cg-chat-id > span:last-child { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.cg-chat-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--cg-accent);
    color: #fff;
    font-size: 1.2rem;
    flex: 0 0 auto;
}
.cg-chat-name { font-family: var(--cg-serif); font-size: 1.5rem; font-weight: 600; }
.cg-chat-state { font-size: .84rem; color: var(--cg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-pill-btn {
    height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--cg-line);
    background: var(--cg-card);
    color: var(--cg-ink);
    font-size: .9rem;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    white-space: nowrap;
}
.cg-pill-btn .bi { color: var(--cg-accent); }
.cg-chat-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 28px var(--cg-pad) 12px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    scrollbar-width: none;
}
.cg-chat-body::-webkit-scrollbar { display: none; }
.cg-msg { display: flex; width: 100%; max-width: 820px; margin: 0 auto; animation: cg-rise .3s ease both; }
.cg-msg.user { justify-content: flex-end; }
.cg-bubble {
    max-width: 78%;
    padding: 14px 18px;
    font-size: 1.08rem;
    line-height: 1.5;
    border-radius: 24px 24px 24px 8px;
    background: var(--cg-card);
    box-shadow: var(--cg-shadow);
    user-select: text;
    -webkit-user-select: text;
    white-space: pre-line;
}
.cg-msg.user .cg-bubble { border-radius: 24px 24px 8px 24px; background: var(--cg-ink); color: var(--cg-on-ink); box-shadow: none; }
.cg-typing { display: inline-flex; gap: 5px; padding: 4px 2px; }
.cg-typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--cg-sub); opacity: .4; animation: cg-dot 1.2s infinite; }
.cg-typing i:nth-child(2) { animation-delay: .15s; }
.cg-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cg-dot { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.cg-bk {
    margin-top: 10px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
    background: var(--cg-accent-soft);
    border: 0;
    width: 100%;
    color: var(--cg-ink);
    text-align: left;
    cursor: pointer;
    font-size: .98rem;
}
.cg-bk-img { width: 56px; height: 56px; border-radius: 12px; background-size: cover; background-position: center; background-color: var(--cg-fill); flex: 0 0 auto; }
.cg-bk b { display: block; font-weight: 600; }
.cg-bk small { color: var(--cg-sub); }
.cg-bk .bi { margin-left: auto; color: var(--cg-accent); font-size: 1.2rem; }
.cg-chat-foot { flex: 0 0 auto; padding: 8px var(--cg-pad) 22px; }
.cg-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; max-width: 820px; margin: 0 auto 12px; }
.cg-quick::-webkit-scrollbar { display: none; }
.cg-quick button {
    flex: 0 0 auto;
    height: 42px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid var(--cg-line);
    background: var(--cg-card);
    color: var(--cg-ink);
    font-size: .92rem;
    cursor: pointer;
    white-space: nowrap;
}
.cg-input {
    max-width: 820px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    border-radius: 999px;
    background: var(--cg-card);
    box-shadow: var(--cg-shadow);
}
.cg-input input {
    flex: 1 1 auto;
    min-width: 0;
    height: 52px;
    border: 0;
    background: none;
    outline: none;
    font-size: 1.12rem;
    color: var(--cg-ink);
    padding: 0 6px;
}
.cg-input input::placeholder { color: var(--cg-sub); }
.cg-mic, .cg-send {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    border: 0;
    display: grid;
    place-items: center;
    font-size: 1.25rem;
    cursor: pointer;
    flex: 0 0 auto;
    transition: transform .12s, background .2s;
}
.cg-mic { background: var(--cg-accent); color: #fff; }
.cg-mic.listening { background: var(--cg-red); animation: cg-ring 1.4s infinite; }
@keyframes cg-ring { 0% { box-shadow: 0 0 0 0 rgba(214, 69, 61, .45); } 100% { box-shadow: 0 0 0 16px rgba(214, 69, 61, 0); } }
.cg-send { background: var(--cg-ink); color: var(--cg-on-ink); }
.cg-mic:active, .cg-send:active { transform: scale(.94); }
.cg-listening {
    position: fixed;
    left: 50%;
    bottom: 128px;
    z-index: 60;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--cg-ink);
    color: var(--cg-on-ink);
    font-weight: 600;
    transition: opacity .2s, transform .2s;
}
.cg-listening.show { opacity: 1; transform: translate(-50%, 0); }
.cg-bars { display: inline-flex; gap: 3px; align-items: center; height: 16px; }
.cg-bars i { width: 3px; height: 100%; border-radius: 2px; background: currentColor; animation: cg-bar .9s infinite ease-in-out; }
.cg-bars i:nth-child(2) { animation-delay: .15s; }
.cg-bars i:nth-child(3) { animation-delay: .3s; }
.cg-bars i:nth-child(4) { animation-delay: .45s; }
@keyframes cg-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }

/* ── PIN ──────────────────────────────────────────────── */
.cg-pin {
    position: relative;
    width: min(380px, 100%);
    padding: 34px 28px 26px;
    border-radius: 30px;
    background: var(--cg-card);
    color: var(--cg-ink);
    text-align: center;
    box-shadow: var(--cg-shadow-lg);
}
.cg-pin-ic { width: 60px; height: 60px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: var(--cg-accent-soft); color: var(--cg-accent); font-size: 1.5rem; }
.cg-pin-title { font-family: var(--cg-serif); font-size: 1.9rem; font-weight: 600; margin: 0; }
.cg-pin-sub { color: var(--cg-sub); margin: 4px 0 16px; }
.cg-pin-dots { display: flex; justify-content: center; gap: 12px; min-height: 16px; }
.cg-pin-dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--cg-ink); }
.cg-pin-dots i.empty { background: var(--cg-fill-2); }
.cg-pin.shake { animation: cg-shake .4s; }
@keyframes cg-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.cg-pin-err { color: var(--cg-red); font-size: .9rem; min-height: 1.3em; margin: 8px 0 6px; }
.cg-keypad { display: grid; grid-template-columns: repeat(3, 76px); gap: 14px; justify-content: center; }
.cg-keypad button {
    width: 76px;
    height: 76px;
    border-radius: 50%;
    border: 0;
    background: var(--cg-fill);
    color: var(--cg-ink);
    font-size: 1.7rem;
    font-weight: 500;
    cursor: pointer;
    font-variant-numeric: tabular-nums;
}
.cg-keypad button:active { background: var(--cg-fill-2); }
.cg-keypad button.k-go { background: var(--cg-ink); color: var(--cg-on-ink); font-size: 1.3rem; }
.cg-keypad button.k-del { background: none; font-size: 1.4rem; }

/* ── Staff ────────────────────────────────────────────── */
.cg-staff {
    position: fixed;
    inset: 0;
    z-index: 9200;
    display: flex;
    flex-direction: column;
    background: var(--cg-bg);
    color: var(--cg-ink);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s;
}
.cg-staff.show { opacity: 1; pointer-events: auto; }
.cg-staff-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px var(--cg-pad) 16px; }
.cg-staff-title { font-family: var(--cg-serif); font-size: 2.4rem; font-weight: 600; margin: 0; line-height: 1.1; }
.cg-staff-sub { color: var(--cg-sub); margin: 4px 0 0; }
.cg-done {
    height: 50px;
    padding: 0 28px;
    border-radius: 999px;
    border: 0;
    background: var(--cg-ink);
    color: var(--cg-on-ink);
    font-size: 1.02rem;
    font-weight: 600;
    cursor: pointer;
}
.cg-staff-list {
    flex: 1 1 auto;
    overflow-y: auto;
    margin: 0 var(--cg-pad) 28px;
    border-radius: 22px;
    background: var(--cg-card);
    align-self: stretch;
}
.cg-srow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; position: relative; }
.cg-srow + .cg-srow::before { content: ''; position: absolute; top: 0; right: 0; left: 86px; border-top: 1px solid var(--cg-line); }
.cg-srow-thumb { width: 56px; height: 56px; border-radius: 14px; background-size: cover; background-position: center; background-color: var(--cg-fill); display: grid; place-items: center; color: var(--cg-accent); font-size: 1.3rem; flex: 0 0 auto; }
.cg-srow-main { flex: 1 1 auto; min-width: 0; }
.cg-srow-name { font-weight: 600; font-size: 1.02rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-srow-meta { font-size: .86rem; color: var(--cg-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cg-srow.off .cg-srow-thumb, .cg-srow.off .cg-srow-main { opacity: .45; }
.cg-srow-move { display: flex; gap: 6px; }
.cg-srow-move button { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--cg-fill); color: var(--cg-ink); cursor: pointer; }
.cg-srow-move button:disabled { opacity: .3; }
.cg-switch { position: relative; width: 56px; height: 34px; border-radius: 999px; border: 0; background: var(--cg-fill-2); cursor: pointer; flex: 0 0 auto; transition: background .2s; }
.cg-switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 28px; height: 28px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .2); transition: transform .2s; }
.cg-switch.on { background: var(--cg-green); }
.cg-switch.on::after { transform: translateX(22px); }
.cg-staff-empty { padding: 40px; text-align: center; color: var(--cg-sub); }

/* ── Idle attract ─────────────────────────────────────── */
.cg-idle {
    position: fixed;
    inset: 0;
    z-index: 9800;
    background: #0d0b09;
    color: #fff;
    opacity: 0;
    pointer-events: none;
    transition: opacity .8s ease;
    cursor: pointer;
}
.cg-idle.show { opacity: 1; pointer-events: auto; }
.cg-idle-media, .cg-idle-media > div { position: absolute; inset: 0; }
.cg-idle-media > div { background-size: cover; background-position: center; opacity: 0; transition: opacity 1.6s ease; }
.cg-idle-media > div.on { opacity: 1; animation: cg-kenburns 12s ease-out forwards; }
.cg-idle-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cg-idle-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(8, 6, 4, .78) 0%, rgba(8, 6, 4, .15) 55%, rgba(8, 6, 4, .45) 100%); }
.cg-idle-top { position: absolute; top: 32px; left: 48px; right: 48px; display: flex; justify-content: space-between; align-items: center; }
.cg-idle-brand { font-family: var(--cg-serif); font-size: 1.8rem; font-weight: 600; }
.cg-idle-time { font-size: 1.6rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.cg-idle-body { position: absolute; left: 48px; right: 320px; bottom: 110px; }
.cg-idle-eyebrow { font-size: .85rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #e2c697; }
.cg-idle-title { font-family: var(--cg-serif); font-size: clamp(3rem, 7vw, 6rem); font-weight: 500; line-height: 1; margin: 12px 0 14px; color: #fff; }
.cg-idle-title .w { display: inline-block; opacity: 0; transform: translateY(14px); animation: cg-word .7s ease forwards; }
@keyframes cg-word { to { opacity: 1; transform: none; } }
.cg-idle-meta { font-size: 1.15rem; opacity: .9; }
.cg-idle-qr {
    position: absolute;
    right: 48px;
    bottom: 110px;
    width: 210px;
    padding: 14px 14px 12px;
    border-radius: 22px;
    background: #fffdf9;
    color: #1f1c18;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
    animation: cg-rise .6s ease both;
}
.cg-idle-qr img { width: 100%; aspect-ratio: 1; display: block; }
.cg-idle-qr span { display: block; margin-top: 8px; font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: #9c7a4a; }
.cg-idle-cta {
    position: absolute;
    left: 50%;
    bottom: 36px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 22px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    font-size: 1.02rem;
    font-weight: 500;
    white-space: nowrap;
}
.cg-idle-pulse { width: 10px; height: 10px; border-radius: 50%; background: #e2c697; animation: cg-pulse 1.8s infinite; }
@keyframes cg-pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 198, 151, .6); } 100% { box-shadow: 0 0 0 14px rgba(226, 198, 151, 0); } }

/* ── Toast + install note ─────────────────────────────── */
.cg-toast {
    position: fixed;
    left: 50%;
    bottom: 30px;
    z-index: 9900;
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--cg-ink);
    color: var(--cg-on-ink);
    font-weight: 500;
    transition: opacity .2s, transform .2s;
    max-width: 90vw;
    text-align: center;
}
.cg-toast.show { opacity: 1; transform: translate(-50%, 0); }
.cg-note {
    width: min(460px, 100%);
    padding: 30px 28px 24px;
    border-radius: 28px;
    background: var(--cg-card);
    color: var(--cg-ink);
    box-shadow: var(--cg-shadow-lg);
    position: relative;
}
.cg-note h3 { font-family: var(--cg-serif); font-size: 1.8rem; font-weight: 600; margin: 0 0 8px; }
.cg-note p, .cg-note li { color: var(--cg-sub); line-height: 1.55; }
.cg-note ol { padding-left: 20px; margin: 10px 0 18px; }
.cg-note .cg-done { width: 100%; }

/* ── Responsive ───────────────────────────────────────── */
@media (min-width: 1600px) {
    :root { --cg-pad: 44px; }
    .cg-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 26px; }
}
@media (max-width: 1100px) {
    .cg-clock span:first-child { display: none; }
}
@media (max-width: 860px) {
    :root { --cg-pad: 20px; }
    .cg-hero { height: clamp(300px, 38vh, 420px); border-radius: 26px; }
    .cg-hero-body { left: 28px; right: 28px; bottom: 28px; }
    .cg-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
    .cg-sheet { grid-template-columns: 1fr; overflow-y: auto; }
    .cg-sheet-media { min-height: 0; height: 32vh; }
    .cg-sheet-body { overflow: visible; }
    .cg-idle-body { right: 48px; bottom: 360px; }
    .cg-idle-qr { right: 50%; transform: translateX(50%); bottom: 110px; }
}
@media (max-width: 600px) {
    :root { --cg-pad: 16px; --cg-top-h: 64px; }
    .cg-brand-mark, .cg-brand-logo { height: 38px; width: 38px; font-size: 1.3rem; }
    .cg-brand-logo { width: auto; }
    .cg-brand-name { font-size: 1.2rem; max-width: 42vw; }
    .cg-brand-tag { display: none; }
    .cg-clock { display: none; }
    .cg-round { height: 42px; min-width: 42px; }
    .cg-lang-btn { padding: 0 12px; }
    .cg-hero { height: auto; min-height: 380px; border-radius: 22px; }
    .cg-hero-body { left: 20px; right: 20px; bottom: 22px; }
    .cg-hero-title { font-size: 2.7rem; }
    .cg-hero-sub { font-size: 1rem; }
    .cg-ask { width: 100%; }
    .cg-ask-tx { flex: 1 1 auto; }
    .cg-section-title { font-size: 1.8rem; }
    .cg-grid { grid-template-columns: 1fr; }
    .cg-sheet-bg { padding: 0; align-items: flex-end; }
    .cg-sheet { border-radius: 26px 26px 0 0; max-height: 94dvh; }
    .cg-sheet-body { padding: 24px 20px 26px; }
    .cg-sheet-title { font-size: 2rem; }
    .cg-handoff { flex-direction: column; text-align: center; }
    .cg-qr { width: 200px; height: 200px; }
    .cg-acts { flex-direction: column; }
    .cg-pill-btn span { display: none; }
    .cg-bubble { max-width: 88%; font-size: 1rem; }
    .cg-idle-top { left: 22px; right: 22px; top: 22px; }
    .cg-idle-body { left: 22px; right: 22px; bottom: 330px; }
    .cg-idle-title { font-size: 2.8rem; }
    .cg-idle-qr { width: 170px; }
    .cg-staff-top { flex-direction: column; align-items: stretch; }
    .cg-srow-move { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    .cg-hero-media > div.on, .cg-idle-media > div.on { animation: none; transform: none; }
    .cg-card { animation: none; }
}
