/* Parley web app. SPRTECHQQ brand: Void, Deep Space, Precision Blue, Signal Light, Crisp White. */

@font-face { font-family: Poppins; src: url(/fonts/poppins-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Poppins; src: url(/fonts/poppins-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins Tabular"; src: url(/fonts/poppins-tabular.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: Syne; src: url(/fonts/syne-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }

:root { color-scheme: dark; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { margin: 0; height: 100%; }
body {
  background: #0A0A0F;
  color: #F0F0F5;
  font: 400 15px/1.5 Poppins, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

button, input, textarea { font: inherit; color: inherit; }

.screen {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  max-width: 560px;
  margin: 0 auto;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}
.scroll { flex: 1; padding: 8px 20px 24px; }

/* Type */
.brand { font: 700 30px/1.1 Syne, Poppins, sans-serif; margin: 0; letter-spacing: 0.01em; }
.subtitle { margin: 2px 0 0; color: #A0BFFF; font-size: 13px; }
.lead { color: #8B8FA3; margin: 6px 0 20px; }
.muted { color: #8B8FA3; }
.small { font-size: 13px; }
.center { text-align: center; }
.section-label { color: #A0BFFF; font-size: 13px; font-weight: 500; margin: 28px 0 8px; }

/* Bars */
.bar { display: flex; align-items: center; gap: 4px; padding: 6px 8px; min-height: 56px; }
.bar-title { font-size: 18px; font-weight: 600; margin: 0; }
.home-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px 0; }
.icon-btn {
  width: 48px; height: 48px; border: 0; border-radius: 50%; background: transparent;
  display: grid; place-items: center; color: #8B8FA3; cursor: pointer;
}
.icon-btn svg { width: 24px; height: 24px; }
.icon-btn:active { background: #13131A; }

/* Buttons */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; min-height: 52px; border-radius: 12px; border: 1px solid transparent;
  font-weight: 500; font-size: 16px; cursor: pointer; padding: 0 16px;
}
.btn:disabled { opacity: 0.4; cursor: default; }
.btn-primary { background: #4F8EF7; color: #F0F0F5; }
.btn-primary:active:not(:disabled) { filter: brightness(0.9); }
.btn-outline { background: transparent; border-color: #2A2A36; color: #F0F0F5; }
.btn-link { background: transparent; color: #A0BFFF; min-height: 44px; }
.btn-big { min-height: 64px; font-size: 17px; margin-top: 20px; }
.btn-icon { width: 22px; height: 22px; flex: none; }
.btn.recording { background: #E5484D; }

/* Fields */
.field { display: block; margin-bottom: 12px; }
.field span { display: block; font-size: 13px; color: #8B8FA3; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; background: #13131A; border: 1px solid #2A2A36; border-radius: 10px;
  padding: 12px 14px; font-size: 16px; outline: none;
}
.field input:focus, .field textarea:focus { border-color: #4F8EF7; }
.field textarea { resize: vertical; min-height: 80px; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.chip {
  border: 1px solid #2A2A36; background: #13131A; border-radius: 999px;
  padding: 8px 16px; cursor: pointer; font-size: 14px;
}
.chip[aria-checked="true"] { border-color: #4F8EF7; color: #4F8EF7; }

.row-buttons { display: flex; gap: 10px; margin-top: 8px; }
.row-buttons .btn-outline { flex: 1; }
.row-buttons .btn-primary { flex: 2; }

/* Cards and lists */
.card { background: #13131A; border-radius: 12px; padding: 16px; margin-bottom: 14px; }
.card-title { font-size: 16px; font-weight: 600; margin: 0 0 8px; }
.ok-card .card-title { color: #3DD68C; }
.points, .steps { margin: 8px 0 0; padding-left: 20px; }
.points li, .steps li { margin-bottom: 8px; }
.inline-icon { width: 18px; height: 18px; vertical-align: -3px; color: #A0BFFF; }
.intro-icon { width: 64px; height: 64px; color: #F0F0F5; margin: 24px 0 8px; }
#btn-install { margin-top: 8px; }

.home-body { flex: 1; padding: 0 20px 16px; }
.list { list-style: none; margin: 10px 0 0; padding: 0; }
.item { background: #13131A; border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.item-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item-meta { color: #8B8FA3; font-size: 13px; margin-top: 2px; }
.item-status { font-size: 13px; margin-top: 6px; }
.s-ok { color: #3DD68C; }
.s-wait { color: #F5A524; }
.s-bad { color: #F87171; }
.empty { text-align: center; margin-top: 48px; }
#counts { margin: 20px 0 0; }

.banner {
  display: block; width: 100%; text-align: left; margin-top: 16px; padding: 14px;
  background: #13131A; border: 1px solid #F87171; border-radius: 12px; cursor: pointer;
}

/* Recording */
.timer { font: 500 48px/1.2 "Poppins Tabular", Poppins, sans-serif; text-align: center; margin: 12px 0 0; }
.keep-open { color: #F5A524; text-align: center; margin: 10px 0 0; }

.footer { color: #8B8FA3; font-size: 11px; text-align: center; padding: 8px 20px 12px; }

/* Modal and toast */
.modal-back {
  position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6);
  display: flex; align-items: center; justify-content: center; padding: 24px; z-index: 10;
}
.modal { background: #13131A; border-radius: 16px; padding: 20px; width: 100%; max-width: 400px; }
.modal h2 { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.modal p { margin: 0 0 16px; color: #8B8FA3; }
.modal-buttons { display: flex; gap: 10px; }
.modal-buttons .btn { flex: 1; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  background: #F0F0F5; color: #0A0A0F; padding: 10px 16px; border-radius: 10px;
  font-size: 14px; max-width: calc(100% - 32px); z-index: 20;
}
