/* The support page, #/support (support.js).

   Sits on the shared .doc card, so the frame, the kicker chip and the text
   fields come from home.css and glass.css; this file only lays out what is
   new: the quick-fix list, the report form's extras and its three end
   states. One column at every width, so nothing reflows between phone and
   desktop beyond the name/email pair (glass.css .field-row stacks it below
   480px). Loaded just before glass.css, which stays last. */

.support-page{ max-width:780px; }
.support-lead{ margin:14px 0 0; font-size:16.5px; line-height:1.6; color:var(--ink-2); max-width:62ch; }
.support-page h2{ margin:34px 0 14px; font-size:22px; }

/* --- email us directly ----------------------------------------------------
   "Send an email" opens a short list: Gmail, Outlook, the device's email
   app, copy the address. A bare mailto: link did nothing for anyone without
   an email app set up (support.js). */
.support-mail{ display:flex; align-items:center; gap:14px; margin:22px 0 0; padding:16px 18px;
  border:1px solid var(--line); border-radius:calc(var(--rad-btn, 10px) + 4px);
  background:linear-gradient(135deg, var(--brand-soft, var(--card-2)), var(--card)); }
.support-mail-ic{ flex:none; display:grid; place-items:center; width:42px; height:42px; border-radius:12px;
  background:var(--card); border:1px solid var(--line); color:var(--brand); }
.support-mail-ic svg{ width:22px; height:22px; }
.support-mail-text{ display:flex; flex-direction:column; gap:2px; min-width:0; font-size:14.5px; line-height:1.5; color:var(--ink-2); }
.support-mail-text > b{ font-size:15.5px; color:var(--ink); }
.support-mail-text .support-addr{ font-weight:600; color:var(--ink); overflow-wrap:anywhere; }
.support-linkbtn{ display:inline; padding:0; border:0; background:none; font:inherit; font-weight:600;
  color:var(--brand-deep); text-decoration:underline; text-underline-offset:2px; cursor:pointer; }
:root[data-theme="light"] .support-linkbtn{ color:var(--brand); }
.support-mail-pick{ position:relative; flex:none; margin-left:auto; }
.support-mail-btn{ white-space:nowrap; gap:6px; }
.support-chev{ width:16px; height:16px; transition:transform .2s ease; }
.support-mail-btn[aria-expanded="true"] .support-chev{ transform:rotate(180deg); }
.support-mail-menu{ position:absolute; right:0; top:calc(100% + 8px); z-index:20; min-width:220px; padding:6px;
  display:flex; flex-direction:column; border:1px solid var(--line-strong, var(--line)); border-radius:14px;
  background:var(--glass-solid, var(--card)); box-shadow:var(--glass-shadow-lg, 0 18px 40px rgba(0,0,0,.35)); }
.support-mail-menu[hidden]{ display:none; }
.support-mail-menu :is(a, button){ display:flex; align-items:center; min-height:44px; padding:0 14px; border:0;
  border-radius:10px; background:none; font:inherit; font-size:15px; font-weight:600; color:var(--ink);
  text-align:left; text-decoration:none; cursor:pointer; }
.support-mail-menu :is(a, button):is(:hover, :focus-visible){ background:var(--glass-chip-hover, var(--card-2)); color:var(--ink); }
.support-mail-menu button{ border-top:1px solid var(--line); border-radius:0 0 10px 10px; margin-top:4px; }
.support-report h2{ scroll-margin-top:110px; }
@media (max-width:600px){
  .support-mail{ flex-wrap:wrap; }
  .support-mail-pick{ flex:1 1 100%; margin-left:0; }
  .support-mail-btn{ width:100%; justify-content:center; }
  .support-mail-menu{ left:0; right:0; }
}

/* --- quick fixes ------------------------------------------------------ */
.support-fix{ border:1px solid var(--line); border-radius:var(--rad-btn, 10px); background:var(--card);
  margin:0 0 10px; }
.support-fix summary{ list-style:none; cursor:pointer; display:flex; align-items:center; gap:12px;
  min-height:48px; padding:12px 16px; box-sizing:border-box; font-weight:600; font-size:15.5px; color:var(--ink); }
.support-fix summary::-webkit-details-marker{ display:none; }
.support-fix summary::after{ content:""; flex:none; width:9px; height:9px; margin-left:auto;
  border-right:2px solid var(--ink-2); border-bottom:2px solid var(--ink-2);
  transform:rotate(45deg) translate(-2px,-2px); transition:transform .15s ease; }
.support-fix[open] summary::after{ transform:rotate(-135deg) translate(-2px,-2px); }
.support-fix summary:hover{ color:var(--brand-deep); }
.support-fix-body{ padding:0 16px 14px; font-size:15px; line-height:1.6; color:var(--ink-2); }
.support-fix-body p{ margin:0 0 8px; }
.support-fix-body ul{ margin:0 0 8px; padding-left:20px; }
.support-fix-body li{ margin:4px 0; }
.support-fix-body a{ font-weight:600; text-decoration:underline; text-underline-offset:2px; }
.support-fix-body kbd{ display:inline-block; padding:1px 6px; font-size:12.5px; line-height:1.5;
  border:1px solid var(--line-strong, var(--line)); border-bottom-width:2px; border-radius:5px;
  background:var(--card-2); color:var(--ink); }

/* --- the form --------------------------------------------------------- */
.support-intro{ margin:0 0 18px; font-size:15px; line-height:1.55; color:var(--ink-2); }
.support-note{ margin:0 0 18px; padding:10px 14px; border-radius:var(--rad-btn, 10px);
  background:var(--brand-soft); color:var(--ink); font-size:14px; line-height:1.5; overflow-wrap:anywhere; }
.support-opt{ font-weight:400; color:var(--ink-3); }
.support-form textarea{ display:block; width:100%; box-sizing:border-box; min-height:120px; resize:vertical; }
.support-form select{ width:100%; box-sizing:border-box; }
/* An outline, not a border: glass.css sets every field's border with
   !important (and a more specific light-mode rule), so a red border would
   lose. Nothing there sets outline with !important, but styles.css's
   `.field input[type=...]{outline:none}` needs the extra .field to beat. */
.support-form .field [aria-invalid="true"]{ outline:2px solid var(--red); outline-offset:-1px; }
/* The shared .field-err red is about 3:1 on white, so the words take --ink
   and only the icon stays red (as on the account pages). */
.support-form .field-err{ color:var(--ink); }
.support-form .field-err svg{ flex:none; color:var(--red); }
.support-check{ display:grid; grid-template-columns:auto 1fr; align-items:center; gap:4px 10px; margin:4px 0 20px; }
.support-check input{ width:20px; height:20px; margin:0; accent-color:var(--brand); }
.support-check label{ font-size:14.5px; font-weight:600; color:var(--ink); cursor:pointer; }
.support-device{ grid-column:2; margin:0; font-family:var(--mono, ui-monospace, monospace); font-size:12px;
  line-height:1.45; color:var(--ink-3); overflow-wrap:anywhere; }
.support-check input:not(:checked) ~ .support-device{ text-decoration:line-through; }
#sp-msg:focus{ outline:2px solid var(--focus, var(--brand)); outline-offset:2px; }
.support-submit{ width:100%; justify-content:center; }
.support-fine{ margin:12px 0 0; font-size:13px; line-height:1.5; color:var(--ink-3); }

/* --- end states (sent / switched off / couldn't load) ----------------- */
.support-state{ padding:6px 0 4px; }
.support-state p{ margin:0 0 12px; font-size:15px; line-height:1.6; color:var(--ink-2); overflow-wrap:anywhere; }
.support-title{ margin:0 0 10px; font-size:20px; line-height:1.3; }
.support-title:focus{ outline:none; }
/* Focus scrolls these into view; leave room for the sticky header (and,
   for a title, the icon above it) so neither ends up underneath. */
.support-title{ scroll-margin-top:170px; }
.support-form .field :is(input,select,textarea){ scroll-margin-top:120px; }
.support-ref{ display:flex; flex-wrap:wrap; align-items:center; gap:10px; }
.support-ref b{ font-family:var(--mono, ui-monospace, monospace); font-size:17px; letter-spacing:.06em;
  padding:6px 12px; border-radius:var(--rad-btn, 10px); background:var(--card-2); border:1px solid var(--line);
  color:var(--ink); user-select:all; }
.support-actions{ display:flex; flex-wrap:wrap; gap:10px; margin-top:18px; }
.support-state .acct-msg{ margin-top:12px; }

@media (max-width:600px){
  .support-page h2{ margin-top:28px; font-size:20px; }
  .support-actions .btn{ flex:1 1 100%; justify-content:center; }
}
