  :root { --bg:#f6f4ef; --surface:#fffdf8; --ink:#1c1b19; --muted:#6d6a63; --rule:#e2ddd2; --accent:#c0392b; --on-accent:#fff; --ok:#2e7d4f; --bad:#b3261e; --note:#fff6c9; }
  @media (prefers-color-scheme: dark) { :root { --bg:#121211; --surface:#1a1a18; --ink:#ecebe6; --muted:#9b978d; --rule:#2c2b28; --accent:#ef6f5e; --ok:#6fcf97; --bad:#f2847b; --note:#3a3420; } }
  * { box-sizing: border-box; }
  body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; }
  .wrap { max-width: 760px; margin: 0 auto; padding: 20px 16px 60px; display: grid; gap: 16px; }
  h1 { font: 600 26px/1.2 ui-serif, "New York", "Iowan Old Style", Georgia, serif; margin: 0; }
  h2 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
  a { color: var(--accent); }
  .box { background: var(--surface); border: 1px solid var(--rule); border-radius: 12px; padding: 16px; }
  label { display: grid; gap: 4px; font-weight: 500; font-size: 14px; margin-bottom: 12px; }
  input, textarea { font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding: 8px 10px; width: 100%; }
  textarea { min-height: 90px; resize: vertical; }
  .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
  .kinds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 14px; }
  .kinds button { border: 1px solid var(--rule); background: var(--bg); color: var(--ink); border-radius: 10px; padding: 9px 4px; font: 500 14px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; cursor: pointer; }
  .kinds button.on { border-color: var(--accent); color: var(--accent); background: var(--surface); font-weight: 600; }
  .drop { border: 2px dashed var(--rule); border-radius: 12px; padding: 22px; text-align: center; color: var(--muted); cursor: pointer; margin-bottom: 8px; }
  .drop.on { border-color: var(--accent); color: var(--accent); }
  .thumbs { display: grid; gap: 10px; margin: 10px 0; }
  .th { display: grid; grid-template-columns: 96px 1fr auto; gap: 10px; align-items: start; }
  .th img, .th video { width: 96px; height: 96px; object-fit: cover; border-radius: 6px; background: #000; }
  .th button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 20px; }
  .rec { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
  .recbtn { border: 0; border-radius: 99px; padding: 10px 18px; background: var(--accent); color: var(--on-accent); font: 600 15px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; cursor: pointer; }
  .recbtn.live { animation: pulse 1.2s infinite; } @keyframes pulse { 50% { opacity: .6; } }
  audio { width: 100%; margin: 6px 0 10px; }
  .nets { display: flex; flex-wrap: wrap; gap: 8px; }
  .net { display: flex; gap: 6px; align-items: center; border: 1px solid var(--rule); border-radius: 99px; padding: 5px 12px; font-weight: 500; margin: 0; width: auto; }
  .net input { width: auto; } .net.off { color: var(--muted); }
  .go { background: var(--accent); color: var(--on-accent); border: 0; border-radius: 10px; padding: 11px 22px; font: 600 15px -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif; cursor: pointer; }
  .go:disabled { opacity: .5; cursor: default; }
  a.go { display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; min-height: 44px; text-decoration: none; text-align: center; }   /* 190: a link that is the screen's one action */
  .note-txt { color: var(--muted); font-size: 13px; }
  .msg { font-weight: 500; } .msg:empty { display: none; } .msg.err { color: var(--bad); } .msg.ok { color: var(--ok); }
  .pin { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); }
  .pin:first-child { border-top: 0; }
  .pin .pic { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; }
  .pin .ico { width: 64px; height: 64px; border-radius: 6px; background: var(--note); display: grid; place-items: center; font-size: 26px; }
  .pin a { color: var(--ink); font-weight: 600; }
  .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
  .chip { font-size: 12.5px; border: 1px solid var(--rule); border-radius: 99px; padding: 1px 9px; text-decoration: none; }
  .chip.done { border-color: var(--ok); color: var(--ok); } .chip.failed { border-color: var(--bad); color: var(--bad); }
  .chip.pending { color: var(--accent); } .chip.skipped { color: var(--muted); }
  .chip button, .linkbtn { background: none; border: 0; color: inherit; text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
  .linkbtn { color: var(--muted); font-size: 12.5px; }
  .conn { border-top: 1px solid var(--rule); padding: 10px 0; } .conn:first-child { border-top: 0; }
  .conn summary { cursor: pointer; font-weight: 600; } .conn .state { font-weight: 400; color: var(--muted); margin-left: 6px; }
  .conn .state.on { color: var(--ok); } .conn form { margin-top: 10px; }
  .small { background: var(--surface); color: var(--ink); border: 1px solid var(--rule); border-radius: 8px; padding: 7px 14px; cursor: pointer; font: inherit; }
  .meter { display: grid; gap: 4px; font-size: 13px; color: var(--muted); }
  .meter .bar { height: 8px; border-radius: 99px; background: var(--rule); overflow: hidden; }
  .meter .bar span { display: block; height: 100%; background: var(--ok); border-radius: 99px; }
  .meter.warn .bar span { background: #d4a017; } .meter.full .bar span { background: var(--bad); }
  .ai { font-weight: 500; font-size: 12px; color: #7a5cc2; background: #efe9fb; border-radius: 99px; padding: 1px 8px; margin-left: 4px; }
  @media (prefers-color-scheme: dark) { .ai { color: #c9b6ff; background: #2d2541; } }
  [hidden] { display: none !important; }
  .ser { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--rule); align-items: start; }
  .ser:first-child { border-top: 0; } .ser img { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--rule); }
  .ser.gal { grid-template-columns: 1fr; }   /* 1442: a connected gallery on Your galleries (no cover) */
  .ser b { display: block; } .ser .acts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }
  .ser .acts a, .ser .acts button { min-height: 36px; display: inline-flex; align-items: center; }
  .state-on { color: var(--ok); } .state-off { color: var(--muted); }
  .pick { display: grid; gap: 4px; margin: 10px 0; } .pick label { display: flex; gap: 10px; align-items: center; font-weight: 500; margin: 0; min-height: 36px; }
  .pick input { width: auto; }
  .pvrow { border-top: 1px solid var(--rule); padding: 10px 0; } .pvrow input { margin: 6px 0; }
  /* Your galleries (owner 2026-11-18): the gallery tiles in Connected accounts */
  .gal { border-top: 1px solid var(--rule); padding: 10px 0; } .gal:first-child { border-top: 0; } .gal b { display: block; word-break: break-all; }
  .gal .acts { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; } .gal .acts button { min-height: 40px; }
  .galform label { font-weight: 600; } .galform .rec { margin: 6px 0 0; } .galform .go { min-height: 44px; }
  .galdone .go { width: 100%; min-height: 48px; font-size: 16px; }
  .fedi input { font-size: 16px; min-height: 44px; } .fedi .go { min-height: 44px; } .fedi .msg { display: block; margin: -4px 0 12px; padding: 0 !important; max-width: none !important; font-size: 15px !important; }
  .galmsg { display: block; margin-top: 8px; }
  .galsoon { margin: 8px 0 0; }
  .ivaddr { display: flex; align-items: center; background: var(--bg); border: 1px solid var(--rule); border-radius: 8px; padding-left: 10px; }
  .ivaddr span { color: var(--muted); white-space: nowrap; } .ivaddr input { border: 0 !important; background: none !important; box-shadow: none !important; padding-left: 1px; min-width: 0; flex: 1; }
  .ivrow { border-top: 1px solid var(--rule); padding: 12px 0; } .ivrow:first-child { margin-top: 12px; }
  .ivrow .acts { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-top: 8px; }
  .ivrow .acts .small, .ivrow .acts .linkbtn { min-height: 40px; }
  .ivst { font-size: 13px; font-weight: 500; border-radius: 99px; padding: 1px 9px; border: 1px solid var(--rule); color: var(--muted); margin-left: 6px; white-space: nowrap; }
  .ivst.opened { color: var(--accent); border-color: var(--accent); } .ivst.joined { color: var(--ok); border-color: var(--ok); }
  #asklist:not(:empty) { border-bottom: 1px solid var(--rule); margin-bottom: 14px; }
  #asklist .ivrow:first-child { margin-top: 0; border-top: 0; } #asklist .ivrow b { overflow-wrap: anywhere; }
  #asklist .letin { width: auto; min-height: var(--tap); padding: 0 22px; }
