/* Web-app-only pieces. Everything shared with the extension (header, cards, gallery, toggle, tags, pill, X,
   toast, phone layout) comes from ext/compare.css, copied from the extension unchanged. Black and white only. */
body { overflow-x: clip; }
.site-head { flex-wrap: wrap; }

/* presence strip: is Chrome online? */
.presence { display: flex; align-items: center; gap: 10px; padding: 10px 40px; border-bottom: 1px solid #000; font-size: 12px; }
.presence .dot { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid #000; background: #fff; }
.presence.on .dot { background: #000; animation: beat 2s ease-in-out infinite; }
@keyframes beat { 50% { opacity: .35; } }

.summary { margin: 10px 0 0; font-size: 14px; }
h2 { margin: 0 0 8px; font: 400 24px/1.15 var(--serif); letter-spacing: -.03em; }
.hint { margin: 0 0 10px; font-size: 12px; line-height: 1.45; }
.hint.inline { margin: 0; }
.status { min-height: 1.2em; margin: 8px 0 0; font-size: 12px; }
.status.error { font-weight: 700; }
.status.error::before { content: "! "; }
.tryon-button.secondary { background: #fff; color: #000; }
.tryon-link:disabled { cursor: not-allowed; text-decoration: none; opacity: .5; }
/* where the extension shows "Set up try-on", the web app says why Try on is off */
.offline-hint { font-size: 11px; white-space: nowrap; }

/* open tabs */
.device { padding: 22px 0 28px; border-top: 1px solid #000; }
.device-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; margin-bottom: 16px; }
.state { font-size: 12px; display: inline-flex; align-items: center; gap: 8px; }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid #000; }
.state.on::before { background: #000; }
.tab-grid { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 24px; }
.tab-grid .figure img { display: block; width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
.tab-card .name { font-size: 16px; }

/* settings + login */
.settings { display: grid; border: 1px solid #000; max-width: 820px; }
.settings > section { padding: 24px 28px; border-bottom: 1px solid #000; }
.settings > section:last-child { border-bottom: 0; }
.section-no { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
.browser-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.8; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 13px; }
.row input[type=number] { width: 76px; min-height: 40px; padding: 8px 10px; border: 1px solid #000; }
.auth-gate { max-width: 440px; margin: 20px auto; padding: 32px; border: 1px solid #000; }
.auth-gate label { display: grid; gap: 6px; margin: 14px 0; font-size: 13px; font-weight: 700; }
.auth-gate input { min-height: 44px; padding: 10px 12px; border: 1px solid #000; font-size: 16px; }
.auth-gate .row { margin-top: 18px; }
/* account pages (/login/, /signup/, /invite/, /invite-error/) */
.auth-gate p { line-height: 1.5; }
.auth-gate h1 + p, .auth-gate h1 + .invite-notes { margin-top: 14px; }
.auth-note { margin: 22px 0 0; padding-top: 16px; border-top: 1px solid #000; font-size: 13px; }
.invite-notes { margin: 14px 0 4px; padding: 14px 16px; border: 1px solid #000; font-size: 14px; }
.invite-notes p { margin: 0 0 6px; }
.invite-notes p:last-child { margin-bottom: 0; }
.field-hint { font-size: 12px; font-weight: 400; }
/* emailed invites: the email as fixed text; inline field errors; a username field only password managers see */
.invite-email { margin: 18px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.field-error { font-size: 12px; font-weight: 700; }
.field-error::before { content: "! "; }
.auth-gate input[aria-invalid="true"] { outline: 2px solid #000; outline-offset: 1px; }
.auth-gate .visually-hidden, .visually-hidden { position: absolute; width: 1px; height: 1px; min-height: 0; margin: -1px; padding: 0;
  border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none; }
a.tryon-button { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.site-head > a { display: flex; align-items: center; min-height: 44px; }

@media (max-width: 600px) {
  /* the extension's buttons, with 40 px tall tap areas on phones */
  .tryon-link, .tryon-button, .segment, .header-button { min-height: 40px; }
  .tryon-link { display: inline-flex; align-items: center; }
  /* four header tabs on a phone */
  .site-head nav { width: 100%; justify-content: space-between; gap: 8px; }
  .header-button { padding: 12px 0; min-height: 40px; font-size: 11px; letter-spacing: .05em; }
  .presence { padding: 8px 16px; }
  .tab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings > section { padding: 20px 16px; }
  .auth-gate { padding: 24px 18px; margin: 0; }
  .auth-gate h1 { font-size: 30px; }
  .auth-gate .tryon-button { min-height: 44px; }
  .auth-gate .row .tryon-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .presence.on .dot { animation: none; } }

/* Settings → Delete account (app.js) */
.delete-row { margin-top: 18px; padding-top: 14px; border-top: 1px solid #000; }
.delete-row .tryon-link.danger { font-weight: 700; }
#delete-dialog { width: min(460px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; border: 1px solid #000; border-radius: 0; padding: 22px; background: #fff; color: #000; }
#delete-dialog::backdrop { background: #fff; }
#delete-dialog h3 { margin: 0 0 12px; font: 400 24px var(--serif, Georgia, serif); }
#delete-dialog .delete-type { display: block; margin: 14px 0 6px; font-size: 13px; font-weight: 700; }
#delete-dialog input { width: 100%; box-sizing: border-box; padding: 10px; border: 1px solid #000; border-radius: 0; font: inherit; font-size: 16px; letter-spacing: .08em; background: #fff; color: #000; }
#delete-dialog .dialog-foot { margin-top: 16px; justify-content: flex-end; }
#delete-dialog .spacer { flex: 1; }

/* Settings → install the extension (steps: install-steps.css) */
.install-body p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; }
.install-unsupported { margin: 10px 0 0; padding: 14px 16px; border: 2px solid #000; font-weight: 700; line-height: 1.4; }
