/* Plan-specific layout layered on the shared product.css hosted by www.telecrypt.io. */
* { box-sizing: border-box; }
body { min-width: 320px; }

.plan-app { min-height: 100vh; }
.topbar { min-height: 57px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-weight: 650; text-decoration: none; }
.brand-tld { color: var(--text-secondary); }
.brand-section { padding-left: 10px; border-left: 1px solid var(--border); color: var(--text-secondary); font-weight: 500; }
.user { margin-left: auto; max-width: min(42vw, 400px); overflow: hidden; color: var(--text-secondary); font-size: .9em; text-overflow: ellipsis; white-space: nowrap; }

.sandbox-banner {
  display: flex; align-items: baseline; gap: 10px; padding: 9px max(20px, calc((100vw - 1080px) / 2));
  background: #fff7ed; border-bottom: 1px solid #f1cfa7; color: #8a4614; font-size: .9em;
}
.sandbox-banner strong { letter-spacing: .045em; font-size: .85em; }
.plan-main { width: min(100% - 40px, 1080px); margin: 0 auto; padding: 32px 0 48px; }
.page-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 20px; }
.page-heading h1, .auth-card h1 { margin: 0; font-size: 1.65rem; letter-spacing: -.025em; }
.eyebrow { margin: 0 0 5px; color: var(--text-muted); font-size: .72em; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; }

.plan-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.card { padding: 20px; }
.card-heading { display: flex; align-items: start; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
h2 { margin: 0; font-size: 1.05rem; letter-spacing: -.01em; }
.status-pill, .seat-count { padding: 3px 8px; border-radius: 999px; background: var(--hover); color: var(--text-secondary); font-size: .82em; white-space: nowrap; }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 0 0 18px; }
.metrics div { padding: 11px 12px; background: #fafafa; border: 1px solid var(--border); border-radius: var(--radius); }
.metrics dt { color: var(--text-muted); font-size: .8em; }
.metrics dd { margin: 2px 0 0; font-size: 1.15rem; font-weight: 600; }
.notice { margin: 0 0 16px; padding: 9px 10px; background: #fafafa; border-left: 3px solid var(--border-strong); color: var(--text-secondary); font-size: .9em; }
.card-actions { display: flex; flex-direction: column; align-items: start; gap: 10px; }

.quantity-action { display: flex; align-items: end; flex-wrap: wrap; gap: 8px; }
.quantity-action label, .add-seat label { display: flex; flex-direction: column; gap: 4px; color: var(--text-secondary); font-size: .82em; font-weight: 500; }
.quantity-action input { width: 78px; }

.seat-list { list-style: none; margin: 0 0 18px; padding: 0; border-top: 1px solid var(--border); }
.seat-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; border-bottom: 1px solid var(--border); }
.seat-list li > span { overflow-wrap: anywhere; }
.seat-list .empty-state { justify-content: start; color: var(--text-muted); font-size: .92em; }
.add-seat { padding-top: 1px; }
.add-seat > div { display: flex; gap: 8px; margin-top: 4px; }
.add-seat input { min-width: 0; flex: 1; }
.empty-plan { max-width: 540px; margin: 0 auto; text-align: center; }
.empty-plan h2 { margin-bottom: 8px; }
.empty-plan p:not(.eyebrow) { margin: 0 0 18px; color: var(--text-secondary); }

.auth-card { max-width: 500px; margin: 8vh auto 0; padding: 28px; text-align: center; }
.auth-card .intro { margin: 10px 0 22px; color: var(--text-secondary); }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.session-note { margin: 20px 0 0; color: var(--text-muted); font-size: .85em; }

@media (max-width: 720px) {
  .topbar { padding-inline: 16px; }
  .plan-main { width: min(100% - 28px, 1080px); padding-top: 24px; }
  .sandbox-banner { align-items: flex-start; flex-direction: column; gap: 1px; padding: 9px 14px; }
  .page-heading { align-items: start; flex-direction: column; gap: 8px; }
  .plan-grid { grid-template-columns: 1fr; gap: 12px; }
  .card, .auth-card { padding: 16px; }
  .auth-card { margin-top: 4vh; }
}

@media (max-width: 420px) {
  .user { max-width: 32vw; }
  .add-seat > div { align-items: stretch; flex-direction: column; }
  .add-seat .btn { width: 100%; }
}
