:root {
  --bg: #ffffff;
  --ink: #0f0f14;
  --muted: #5f5f6b;
  --line: #ececee;
  --accent: #8e10fe;
  --grad: linear-gradient(135deg, #8e10fe 0%, #e014ea 40%, #fd19d9 58%, #f63b73 100%);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f0f14;
    --ink: #f3f3f6;
    --muted: #a3a3ad;
    --line: #2a2a31;
    --accent: #c08bff;
  }
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
main {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 64px;
}
header.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
}
header.brand img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
}
header.brand a {
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  font-size: 22px;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  margin: 0 0 12px;
}
h2 {
  font-size: 20px;
  margin: 32px 0 8px;
}
p,
li {
  color: var(--muted);
}
strong {
  color: var(--ink);
}
a {
  color: var(--accent);
}
.cta {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--grad);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
}
.features {
  display: grid;
  gap: 14px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}
footer a {
  margin-right: 14px;
}
.updated {
  font-size: 14px;
}

/* Invite and welcome pages */
/* An invite link opens ViewSeen's own window at the top right, under its
   toolbar icon (about 400 x 590). On a wide screen keep that corner clear:
   the page sits in the space to its left, so it reads the same whether the
   window is open or not and nothing moves either way. Narrower screens
   centre as usual. */
/* 560px kept clear on the right: the 392px window plus room for the icon
   sitting a little in from the edge (other extensions, the profile button).
   From 980px wide - most laptops - the column narrows to fit beside it. */
@media (min-width: 980px) {
  main.invite-page {
    max-width: min(720px, calc(100vw - 560px));
    margin-left: max(24px, calc((100vw - 560px - min(720px, 100vw - 560px)) / 2));
  }
}
/* "Continue in ViewSeen" once it has opened: the next step, not a footnote. */
.invite-hero .next {
  display: inline-block;
  margin: 6px 0 0;
  padding: 10px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  color: var(--ink);
  font-weight: 600;
}
.invite-hero {
  text-align: center;
  margin: 8px 0 36px;
}
.invite-hero h1 {
  margin-top: 14px;
}
.invite-photo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--grad);
  color: #fff;
  font-size: 36px;
  font-weight: 700;
}
.invite-photo:empty {
  display: none;
}
.invite-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
button.cta {
  border: none;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button.cta:disabled {
  opacity: 0.7;
  cursor: default;
}
.muted,
.small {
  color: var(--muted);
}
.small {
  font-size: 14px;
}
.steps {
  text-align: left;
  max-width: 520px;
  margin: 18px auto 0;
  padding-left: 22px;
  display: grid;
  gap: 10px;
}

/* Support page */
.support-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 24px 0 16px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 8px 30px rgba(15, 15, 20, 0.06);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.field label,
.field .field-label {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
}
.req {
  color: #e5484d;
  font-weight: 700;
}
.optional {
  font-weight: 400;
  color: var(--muted);
}
.field input[type="text"],
.field input[type="email"],
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field textarea {
  resize: vertical;
  min-height: 140px;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
  opacity: 0.7;
}
.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(142, 16, 254, 0.18);
}
.file-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.file-pick {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  cursor: pointer;
  font-weight: 400 !important;
}
.file-pick:hover {
  border-color: var(--accent);
}
.file-pick:focus-within {
  border-color: var(--accent);
}
.file-btn {
  flex: none;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 600;
  font-size: 14px;
}
.file-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 14px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
}
.error {
  font-size: 13px;
  color: #e5484d;
}
.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.form-foot .cta {
  margin-top: 0;
  padding: 12px 32px;
}
.notice {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  color: var(--muted);
}
[hidden] {
  display: none !important;
}
@media (max-width: 480px) {
  .support-card {
    padding: 18px;
  }
}
