/* =============================================================================
   Settings › Agent Meeko App (RM-111, 27 Oct 2026)
   Builds on the gx-* cards from general-settings.css; only what this page
   adds lives here. AM Navy, 5px corners, tokens from design-tokens.css and
   button-kit.css (--am-*).
   ============================================================================= */

.ama-body { display: flex; flex-direction: column; gap: 16px; padding-bottom: 28px; }
.ama-layout { grid-template-columns: minmax(0, 1fr) 300px; }

/* ---- Notices ------------------------------------------------------------------ */
.ama-notice {
    display: flex; align-items: center; gap: 10px; padding: 10px 14px;
    border: 1px solid var(--am-blue-soft); border-radius: var(--radius-button); background: var(--am-blue-tint);
    font-size: var(--font-size-small); color: var(--text-secondary);
}
.ama-notice__icon { display: inline-flex; color: var(--text-primary); }
.gx-card__body > .ama-notice { margin-bottom: 12px; }

/* ---- Where the app lives ------------------------------------------------------ */
.ama-domain {
    display: flex; align-items: flex-start; gap: 12px; padding: 12px 14px;
    border: 1px solid var(--border-default); border-radius: var(--radius-button);
}
.ama-domain__mark {
    flex: 0 0 30px; width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-button);
}
.ama-domain--ready .ama-domain__mark { background: var(--status-success-tint); color: var(--status-success); }
.ama-domain--waiting .ama-domain__mark { background: var(--status-warning-tint); color: var(--status-warning-ink); }
.ama-domain__text { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.ama-domain__text strong { font-size: 14px; color: var(--text-primary); }
.ama-domain__text code {
    padding: 1px 6px; border-radius: 4px; background: var(--am-blue-tint); color: var(--text-primary);
    font-size: 12.5px; overflow-wrap: anywhere;
}

/* ---- Switch rows ---------------------------------------------------------------- */
.ama-switch-row {
    display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0;
    border-bottom: 1px solid var(--border-subtle);
}
.ama-switch-row:first-child { padding-top: 0; }
.ama-switch-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ama-switch-row__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ama-switch-row__title { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.ama-switch-row__description { font-size: 12.5px; color: var(--text-secondary); line-height: 1.45; }
.ama-switch-row--disabled { opacity: 0.6; }

/* ---- Android and iPhone ------------------------------------------------------------ */
.ama-platforms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.ama-platform {
    display: flex; align-items: flex-start; gap: 10px; padding: 12px;
    border-radius: var(--radius-button); background: var(--am-blue-tint);
    font-size: 12.5px; color: var(--text-secondary); line-height: 1.5;
}
.ama-platform > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ama-platform strong { font-size: 13px; color: var(--text-primary); }
.ama-platform__icon { display: inline-flex; margin-top: 1px; color: var(--text-primary); }
.ama-steps { margin: 4px 0 0; padding-left: 18px; }
.ama-steps li { margin: 2px 0; }
.ama-steps b { color: var(--text-primary); font-weight: 600; }

/* ---- Fields ------------------------------------------------------------------------ */
.ama-colour { width: 100%; height: var(--input-height); padding: 4px; cursor: pointer; }
.ama-code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; resize: vertical; }
.ama-event__body { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 12px 14px; padding-top: 12px; }
.ama-event__body .gx-field--wide,
.ama-event__body .gs-vars { grid-column: 1 / -1; }
.ama-event__body[hidden] { display: none; }
.ama-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.ama-actions > [hidden] { display: none; }
.ama-device-status { margin: 0; font-size: 13px; color: var(--text-secondary); }

/* ---- Phone preview ------------------------------------------------------------------- */
.ama-preview__body { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ama-phone {
    aspect-ratio: 9 / 18; padding: 5px; border-radius: 16px; background: #0b1020;
    box-shadow: 0 6px 18px rgba(16, 24, 48, 0.18);
}
.ama-phone__screen { position: relative; height: 100%; overflow: hidden; border-radius: 12px; display: flex; flex-direction: column; }
.ama-phone__screen--home { background: linear-gradient(160deg, #2b3a66 0%, #1a253f 55%, #3a2a66 100%); }
.ama-phone__status {
    display: flex; align-items: center; justify-content: space-between; padding: 5px 9px;
    font-size: 8.5px; font-weight: 600; color: #fff;
}
.ama-phone__dots { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.75); }
.ama-phone__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; padding: 14px 10px; }
.ama-phone__grid > i { aspect-ratio: 1; border-radius: 9px; background: rgba(255, 255, 255, 0.16); }
.ama-phone__app { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.ama-phone__app img { width: 100%; aspect-ratio: 1; border-radius: 9px; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85); }
.ama-phone__app span {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: 8px; color: #fff;
}
.ama-phone__splash { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 10px; }
.ama-phone__splash img { width: 46%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; }
.ama-phone__splash strong {
    max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center;
    font-size: 10px; color: #fff; mix-blend-mode: difference;
}

/* ---- "Get the app" under the sign-in card (sign-in-app-offer.js) ---------------- */
.sign-in-app-offer {
    margin-top: 14px; padding: 12px 14px;
    border: 1px solid var(--sign-in-hairline); border-radius: var(--radius-button);
    background: var(--sign-in-panel-surface); color: var(--sign-in-text);
}
.sign-in-app-offer__row { display: flex; align-items: center; gap: 12px; }
.sign-in-app-offer__icon {
    flex: 0 0 32px; width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center;
    border-radius: var(--radius-button); background: rgba(255, 255, 255, 0.08);
}
.sign-in-app-offer__text { display: flex; flex-direction: column; gap: 2px; flex: 1 1 auto; min-width: 0; }
.sign-in-app-offer__text strong { font-size: 13px; font-weight: 600; }
.sign-in-app-offer__text span { font-size: 12px; color: var(--sign-in-text-muted); line-height: 1.4; }
.sign-in-app-offer__button {
    flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px;
    border: 1px solid var(--sign-in-hairline); border-radius: var(--radius-button);
    background: transparent; color: var(--sign-in-text); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.sign-in-app-offer__button:hover { background: rgba(255, 255, 255, 0.06); }
.sign-in-app-offer__button:focus-visible { outline: none; box-shadow: var(--am-focus); }
.sign-in-app-offer__steps { margin: 10px 0 0; padding-left: 62px; font-size: 12.5px; color: var(--sign-in-text-muted); line-height: 1.6; }
.sign-in-app-offer__steps b { color: var(--sign-in-text); font-weight: 600; }
.sign-in-app-offer__steps[hidden], .sign-in-app-offer__hint[hidden] { display: none; }
.sign-in-app-offer__hint { margin: 8px 0 0; font-size: 12px; color: var(--sign-in-text-muted); }

/* ---- Smaller screens ------------------------------------------------------------------- */
@media (max-width: 900px) {
    .ama-layout { grid-template-columns: minmax(0, 1fr); }
    .ama-layout .gx-aside { position: static; order: -1; }
    .ama-preview__body { max-width: 320px; }
}

@media (max-width: 560px) {
    .sign-in-app-offer__steps { padding-left: 18px; }
    .ama-platforms { grid-template-columns: minmax(0, 1fr); }
    .ama-event__body { grid-template-columns: minmax(0, 1fr); }
    .ama-actions > .am-btn { flex: 1 1 100%; justify-content: center; }
    .ama-switch-row { align-items: flex-start; }
}

/* ---- Bookings > Booking App (booking-app-page.js) --------------------------------- */
.booking-app-table__check { width: 40px; }
.booking-app-table__check input { width: 16px; height: 16px; cursor: pointer; }
@media (max-width: 900px) { .booking-app-table__secondary { display: none; } }
