/* saga: copied from shared/scarab by tools/scarab-connect.mjs. Do not edit here. */
/* Argo "Report a problem" sheet. Uses the host app's Argo colour names, with Sailcloth fallbacks.
   Do not edit the copies in <app>/public/scarab/: change shared/scarab/ and run tools/scarab-connect.sh. */
.ar-noscroll { overflow: hidden; }
.ar-host { position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; color: inherit; }
.ar-host::backdrop { background: transparent; }
.ar-scrim {
  position: fixed; inset: 0; z-index: 2147483000; display: flex; align-items: flex-end; justify-content: center;
  background: rgba(20, 14, 10, .45); opacity: 0; transition: opacity .16s ease;
  font-variant-numeric: lining-nums tabular-nums;
}
.ar-scrim.ar-in { opacity: 1; }
.ar-scrim.ar-out { opacity: 0; }
.ar-sheet {
  --ar-ground: var(--raised, var(--ground-raised, var(--card, var(--ground, var(--bg, #f7f3ec)))));
  --ar-ink: var(--ink, #2a1f1a);
  --ar-soft: var(--ink-soft, var(--muted, #6b5a50));
  --ar-rule: var(--rule, var(--line, rgba(60, 40, 30, .16)));
  --ar-rule2: var(--rule-strong, rgba(60, 40, 30, .32));
  --ar-accent: var(--accent, #8c3a3c);
  --ar-fill: var(--fill, var(--accent, #8c3a3c));
  --ar-onfill: var(--on-fill, #fff);
  --ar-sunk: var(--sunk, var(--ground-sunk, var(--soft, rgba(60, 40, 30, .06))));
  --ar-focus: var(--focus, var(--accent, #8c3a3c));
  box-sizing: border-box; width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh;
  display: flex; flex-direction: column; background: var(--ar-ground); color: var(--ar-ink);
  border: 1px solid var(--ar-rule2); border-bottom: 0; border-radius: 10px 10px 0 0;
  box-shadow: 0 -8px 40px rgba(0, 0, 0, .25); transform: translateY(24px); transition: transform .18s ease;
  font-size: 17px; line-height: 1.45; font-family: var(--text, var(--font-text, inherit));
  padding-bottom: env(safe-area-inset-bottom, 0);
}
.ar-in .ar-sheet { transform: none; }
@media (min-width: 640px) {
  .ar-scrim { align-items: center; padding: 24px; }
  .ar-sheet { border-bottom: 1px solid var(--ar-rule2); border-radius: 10px; }
}
@media (prefers-reduced-motion: reduce) { .ar-scrim, .ar-sheet { transition: none; } }
.ar-sheet *, .ar-sheet *::before, .ar-sheet *::after { box-sizing: border-box; }
.ar-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 12px; border-bottom: 1px solid var(--ar-rule); }
.ar-htext { flex: 1; min-width: 0; }
.ar-head-min { justify-content: flex-end; border-bottom: 0; padding-bottom: 0; }
.ar-head h2, .ar-thanks h2 { margin: 0; font-weight: 400; font-size: 22px; line-height: 1.2; font-family: var(--display, var(--font-display, "Marcellus", Georgia, serif)); color: var(--ar-accent); letter-spacing: .01em; }
.ar-appic { width: 32px; height: 32px; border-radius: 7px; flex: none; object-fit: contain; }
.ar-flag, .ar-bigic.ar-flag { display: inline-flex; align-items: center; justify-content: center; background: var(--ar-sunk); color: var(--ar-accent); }
.ar-ic { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ar-x { appearance: none; border: 1px solid var(--ar-rule2); background: transparent; color: var(--ar-ink); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ar-body { overflow: auto; overscroll-behavior: contain; padding: 16px; -webkit-overflow-scrolling: touch; }
.ar-form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.ar-field { display: flex; flex-direction: column; gap: 6px; position: relative; }
.ar-field label, .ar-flabel { font-size: 15px; font-weight: 600; color: var(--ar-ink); }
.ar-field input[type=text], .ar-field textarea {
  appearance: none; width: 100%; font: inherit; font-size: 17px; color: var(--ar-ink); background: var(--ground, var(--bg, #fff));
  border: 1px solid var(--ar-rule2); border-radius: 4px; padding: 10px 12px; min-height: 46px; resize: vertical;
}
.ar-field textarea { min-height: 84px; }
#ar-text { min-height: 132px; }
.ar-sheet.ar-drop { outline: 2px dashed var(--ar-accent); outline-offset: -8px; }
.ar-field input::placeholder, .ar-field textarea::placeholder { color: var(--ar-soft); opacity: .8; }
.ar-count { align-self: flex-end; font-size: 13px; color: var(--ar-soft); }
.ar-sheet :focus-visible { outline: 2px solid var(--ar-focus); outline-offset: 2px; }
.ar-soft { color: var(--ar-soft); margin: 0; }
.ar-small { font-size: 14px; line-height: 1.4; margin: 0; }
.ar-warn { color: var(--ar-accent); }
.ar-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ar-chip { appearance: none; font: inherit; font-size: 15px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--ar-rule2); background: transparent; color: var(--ar-ink); cursor: pointer; }
.ar-chip[aria-pressed=true] { background: var(--ar-fill); border-color: var(--ar-fill); color: var(--ar-onfill); }
.ar-btn { appearance: none; font: inherit; font-size: 16px; min-height: 46px; padding: 10px 16px; border-radius: 4px; border: 1px solid var(--ar-rule2); background: transparent; color: var(--ar-ink); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.ar-btn[hidden] { display: none; }
.ar-btn:disabled { opacity: .6; cursor: default; }
.ar-quiet { border-color: transparent; color: var(--ar-accent); min-height: 40px; padding: 6px 10px; }
.ar-primary { width: 100%; background: var(--ar-fill); border-color: var(--ar-fill); color: var(--ar-onfill); font-weight: 600; }
.ar-shots { display: flex; flex-direction: column; gap: 12px; }
.ar-shotbox { display: flex; flex-direction: column; gap: 4px; }
.ar-shot { width: 100%; height: auto; border: 1px solid var(--ar-rule2); border-radius: 4px; touch-action: none; cursor: crosshair; display: block; }
.ar-row { display: flex; gap: 8px; flex-wrap: wrap; }
.ar-hide, .ar-hp { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; left: -9999px; }
.ar-check { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 16px; min-height: 44px; }
.ar-cb { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ar-box { width: 24px; height: 24px; border: 1.5px solid var(--ar-rule2); border-radius: 4px; display: inline-flex; align-items: center; justify-content: center; color: transparent; flex: none; background: var(--ground, #fff); }
.ar-box .ar-ic { width: 18px; height: 18px; stroke-width: 2.2; }
.ar-cb:checked + .ar-box { background: var(--ar-fill); border-color: var(--ar-fill); color: var(--ar-onfill); }
.ar-cb:focus-visible + .ar-box { outline: 2px solid var(--ar-focus); outline-offset: 2px; }
.ar-disc { appearance: none; border: 0; background: none; padding: 4px 0; font: inherit; font-size: 15px; color: var(--ar-accent); display: inline-flex; align-items: center; gap: 4px; cursor: pointer; align-self: flex-start; min-height: 40px; }
.ar-disc[aria-expanded=true] .ar-ic { transform: rotate(180deg); }
.ar-facts { margin: 0; padding: 12px; border: 1px solid var(--ar-rule); border-radius: 4px; background: var(--ar-sunk); display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: 14px; }
.ar-facts[hidden] { display: none; }
.ar-facts dt { color: var(--ar-soft); }
.ar-facts dd { margin: 0; overflow-wrap: anywhere; }
.ar-facts p { grid-column: 1 / -1; margin-top: 6px; }
.ar-msg { margin: 0; min-height: 0; color: var(--danger, var(--ar-accent)); font-size: 15px; }
.ar-msg:empty { display: none; }
.ar-thanks { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding: 16px 8px 8px; }
.ar-thanks p { margin: 0; max-width: 36ch; }
.ar-bigic { width: 64px; height: 64px; border-radius: 14px; object-fit: contain; }
.ar-bigic .ar-ic { width: 32px; height: 32px; }

/* Scarab's line icon for an app's own menu row or button, in the accent colour:
   <span class="ar-menuic" aria-hidden="true"></span>Report a bug   (works before the sheet's script has loaded) */
.ar-menuic { display: inline-block; width: 22px; height: 22px; vertical-align: -5px; margin-right: 10px; flex: none;
  background-color: var(--accent, currentColor); -webkit-mask: url(scarab.svg) center / contain no-repeat; mask: url(scarab.svg) center / contain no-repeat; }
/* app buttons sometimes stretch their children (Dharani: .icon-btn > span { width: 100% }): keep the icon its own size */
.ar-menuic { width: 22px !important; height: 22px !important; min-width: 22px; flex: none !important; }
svg.ar-menuic { background: none; -webkit-mask: none; mask: none; color: var(--accent, currentColor); }
.ar-check > .ar-ic, .ar-disc > .ar-ic:first-child { color: var(--ar-accent); }
.ar-found { margin: 0; display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 4px; background: var(--ar-sunk); border: 1px solid var(--ar-rule); font-size: 15px; overflow-wrap: anywhere; }
.ar-found .ar-ic { color: var(--ar-accent); width: 18px; height: 18px; }
.ar-found b { font-weight: 600; }
.ar-tip { justify-content: center; text-align: center; }
.ar-menuic.ar-solo { margin: 0; }
.ar-hint { display: flex; gap: 8px; align-items: flex-start; }
.ar-hint .ar-ic { width: 18px; height: 18px; margin-top: 1px; }
.ar-primary .ar-ic { width: 22px; height: 22px; }
