/* Reloop Mobile - agent screens (mobile first). Uses the site's existing tokens. */
.agent-app { min-height: 100vh; background: var(--bg-subtle, #f3f6f5); color: var(--text, #1f2d30); font-family: var(--font-body, system-ui, sans-serif); }
.agent-body { max-width: 560px; margin: 0 auto; padding: 16px 16px 72px; display: grid; gap: 14px; }
.agent-title { margin: 0; font-family: var(--font-display, inherit); font-size: 1.35rem; line-height: 1.2; }
.agent-muted { color: var(--text-muted, #5f6f73); font-size: .92rem; margin: 0; }
.agent-error { color: var(--red-600, #d92d20); min-height: 1.2em; margin: 0; font-size: .9rem; }
.agent-hidden { display: none !important; }

.agent-header { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #2f3b40; color: #fff; }
.agent-header__brand { display: flex; align-items: center; gap: 10px; }
.agent-header__brand strong { display: block; font-size: 1rem; }
.agent-header__brand small { display: block; opacity: .75; font-size: .78rem; }
.agent-header__logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: #2bae66; font-weight: 700; }
.agent-header__logout { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; padding: 8px 12px; border-radius: 999px; font-size: .85rem; cursor: pointer; }

.agent-back { color: var(--accent, #0a7d47); font-weight: 600; text-decoration: none; }
.agent-card { background: #fff; border: 1px solid var(--border, #dde5e3); border-radius: 16px; padding: 16px; display: grid; gap: 10px; text-align: left; font: inherit; color: inherit; }
.agent-card--error { border-color: #f4b4ae; background: #fff6f5; }
.agent-empty { text-align: center; }
.agent-login { margin-top: 24px; }
.agent-login h1 { margin: 0; }
.agent-label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; }
.agent-label .input, .agent-label .textarea { font-weight: 400; }

.agent-tabs { display: flex; gap: 8px; overflow-x: auto; }
.agent-tab { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--border, #dde5e3); background: #fff; font: inherit; font-size: .9rem; cursor: pointer; }
.agent-tab.is-active { background: #2f3b40; color: #fff; border-color: #2f3b40; }
.agent-list { display: grid; gap: 12px; }
button.agent-lead { width: 100%; cursor: pointer; }
.agent-lead__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.agent-lead__addr { font-size: .92rem; }
.agent-lead__foot { display: flex; justify-content: space-between; color: var(--text-muted, #5f6f73); font-size: .88rem; }
.agent-lead__price { font-weight: 700; color: var(--text-strong, #12201f); }

.agent-facts { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; font-size: .92rem; }
.agent-facts dt { color: var(--text-muted, #5f6f73); text-transform: capitalize; }
.agent-facts dd { margin: 0; word-break: break-word; }
.agent-actions { display: flex; flex-wrap: wrap; gap: 8px; }

.agent-step { background: #fff; border: 1px solid var(--border, #dde5e3); border-radius: 16px; padding: 14px 16px; display: grid; gap: 12px; }
.agent-step__head { display: flex; align-items: center; gap: 10px; }
.agent-step__head h2 { margin: 0; font-size: 1.02rem; }
.agent-step__num { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--bg-muted, #e8eeec); font-weight: 700; font-size: .85rem; flex: 0 0 auto; }
.agent-step--active { border-color: #2bae66; box-shadow: 0 0 0 3px rgba(43,174,102,.15); }
.agent-step--active .agent-step__num { background: #2bae66; color: #fff; }
.agent-step--done .agent-step__num { background: #0f9d9a; color: #fff; }
.agent-step--locked { opacity: .6; }
.agent-step__body { display: grid; gap: 12px; }
.agent-step__hint { font-size: .88rem; }

.agent-slots { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.agent-slot { display: grid; gap: 6px; align-content: start; padding: 8px; border: 1px dashed var(--border-strong, #c4d0cd); border-radius: 12px; text-decoration: none; color: inherit; }
.agent-slot.is-done { border-style: solid; border-color: #2bae66; }
.agent-slot img, .agent-slot__empty { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; background: var(--bg-muted, #e8eeec); }
.agent-slot__empty { display: grid; place-items: center; color: var(--text-muted, #5f6f73); font-size: .82rem; }
.agent-slot__label { font-size: .85rem; font-weight: 600; }
.agent-slot__label em { color: var(--red-600, #d92d20); font-style: normal; }
.agent-slot__status { font-size: .8rem; color: var(--text-muted, #5f6f73); min-height: 1em; }
.agent-more > summary { cursor: pointer; font-weight: 600; margin-bottom: 10px; }

.agent-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.agent-compare > div { background: var(--bg-subtle, #f3f6f5); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; }
.agent-compare small { color: var(--text-muted, #5f6f73); }
.agent-compare strong { font-size: 1.15rem; }
.agent-compare__new { color: #0a7d47; }

.agent-trail { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .92rem; color: var(--text-muted, #5f6f73); }
.agent-trail .is-done { color: var(--text-strong, #12201f); }

.agent-banner { border-radius: 14px; padding: 12px 14px; }
.agent-banner p { margin: 4px 0 0; font-size: .9rem; }
.agent-banner--red { background: #fee4e2; color: #7a1d16; }
.agent-close { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.agent-linkbtn { background: none; border: 0; padding: 6px; font: inherit; font-weight: 600; color: var(--accent, #0a7d47); text-decoration: underline; cursor: pointer; }
.agent-linkbtn--danger { color: var(--red-600, #d92d20); }

.agent-dialog { position: fixed; inset: 0; z-index: 500; display: grid; place-items: end center; padding: 12px; background: rgba(18,32,31,.55); }
.agent-dialog__card { width: 100%; max-width: 480px; max-height: 90vh; overflow: auto; background: #fff; color: #1f2d30; border-radius: 18px; padding: 18px; display: grid; gap: 12px; }
.agent-dialog__title { margin: 0; font-size: 1.1rem; }
.agent-dialog__body { display: grid; gap: 10px; }
.agent-dialog__body p { margin: 0; }
.agent-dialog__actions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
@media (min-width: 640px) { .agent-dialog { place-items: center; } }
