/* Listen (listen.awahab.site): shared stylesheet, base taken from Live Poll (Nov 2026). */
:root { --bg:#f5f7f7; --surface:#fff; --ink:#22303a; --muted:#5d6b70; --line:#d7dee0; --teal:#1f6f78; --teal-soft:#dceef0;
  --ok:#2e8c46; --warn:#b06a10; --font:"Segoe UI", Calibri, "Helvetica Neue", Arial, sans-serif; }
@media (prefers-color-scheme: dark) { :root.adapt { --bg:#121718; --surface:#1b2224; --ink:#e3e9ea; --muted:#9aa8ab; --line:#2f3a3d;
  --teal:#58b3bd; --teal-soft:#173a3e; --ok:#5cc27a; --warn:#e0a050; color-scheme: dark; } }
* { box-sizing: border-box; }
body { margin:0; background:var(--bg); color:var(--ink); font:17px/1.45 var(--font); }
.wrap { max-width: 640px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-right, 0px)) 40px max(16px, env(safe-area-inset-left, 0px)); }
h1 { font-size: 1.25rem; margin: 0 0 4px; } .muted { color: var(--muted); } .small { font-size: .9rem; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-top: 14px; }
label { display: block; font-weight: 600; margin: 10px 0 4px; }
input[type=text], input[type=tel], textarea { width: 100%; font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
textarea { min-height: 90px; resize: vertical; }
button { font: inherit; cursor: pointer; }
.primary { background: var(--teal); color: #fff; border: 0; border-radius: 10px; padding: 12px 18px; font-weight: 700; width: 100%; margin-top: 14px; font-size: 1.05rem; }
.saved { color: var(--ok); font-weight: 700; margin-top: 12px; } .err { color: #b3261e; font-weight: 600; margin-top: 10px; }
.pill { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; border-radius: 999px; padding: 2px 10px; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.qr-big[hidden] { display: none; } .qr-big img { width: 70vh; height: 70vh; } .qr-big p { font-size: 4vw; font-weight: 800; color: #1f6f78; margin: 2vh 0 0; }
#pcTimer { font: 14px var(--font); padding: 5px; border-radius: 8px; border: 1px solid #5d6b70; background: #2b3a41; color: #fff; }
.devices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
/* moved out of inline styles: the site's CSP allows only this stylesheet (26 Oct 2026) */
.tight { margin: 0 0 6px; } .spaced { margin-top: 10px; }
.help .wrap { max-width: 820px; } .help h2 { font-size: 1.1rem; margin: 22px 0 6px; } .help li { margin: 4px 0; }
.help code { background: var(--teal-soft); padding: 1px 5px; border-radius: 5px; }
.help table { border-collapse: collapse; } .help td { padding: 4px 12px 4px 0; vertical-align: top; } .help td:first-child { font-weight: 700; white-space: nowrap; }
/* ---------------------------------------------------------------- standalone app (Nov 2026) */
a { color: var(--teal); }
.brandbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 6px; }
.brand { font-weight: 800; letter-spacing: .02em; color: var(--teal); text-decoration: none; font-size: 1.05rem; }
.brand::before { content: ""; display: inline-block; width: .8em; height: .8em; border-radius: 50%; background: var(--teal); box-shadow: .28em 0 0 -.12em var(--teal-soft); margin-right: .55em; vertical-align: -.05em; }
.center { text-align: center; } .hidden { display: none !important; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grow { flex: 1 1 auto; min-width: 0; }
select, input[type=number], input[type=password], input[type=email] { font: inherit; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); }
input[type=password] { width: 100%; }
.btn.danger { color: #b3261e; border-color: #e3b5b1; } .btn.ghost { background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); background: #1d2a30; color: #fff; padding: 10px 16px; border-radius: 10px;
  font-size: .95rem; opacity: 0; transition: opacity .2s; pointer-events: none; z-index: 50; max-width: 92vw; }
.toast.show { opacity: 1; } .toast.bad { background: #b3261e; }
.evlist { width: 100%; border-collapse: collapse; } .evlist td, .evlist th { text-align: left; padding: 9px 8px; border-top: 1px solid var(--line); vertical-align: middle; }
.evlist th { font-size: .82rem; color: var(--muted); font-weight: 600; border-top: 0; }
.linkbox { background: var(--teal-soft); border-radius: 10px; padding: 10px 12px; word-break: break-all; font-family: ui-monospace, Consolas, monospace; font-size: .9rem; }
.tablewrap { overflow-x: auto; }
.inline { display: inline-flex; gap: 6px; align-items: center; font-weight: 500; margin: 0; }
h2 { font-size: 1.1rem; margin: 0 0 8px; }
a { color: var(--teal); }
.end { justify-content: flex-end; margin-top: 12px; }
/* library */
.lib .wrap, .rev .wrap { max-width: 860px; }
.drop { border-style: dashed; border-width: 2px; text-align: center; }
.drop.over { border-color: var(--teal); background: var(--teal-soft); }
.drop .pick { display: inline-block; width: auto; padding: 12px 28px; cursor: pointer; }
.drop .hint-drag { margin: 8px 0 0; }
.upbar { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; margin-top: 10px; }
.upbar i { display: block; height: 100%; width: 0; background: var(--teal); transition: width .3s; }
.doc { padding: 14px 0; border-top: 1px solid var(--line); }
.doc:first-child { border-top: 0; padding-top: 4px; }
.dochead { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; }
.doctitle { font-weight: 700; font-size: 1.05rem; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
a.doctitle[href]:hover { text-decoration: underline; }
.docmeta { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.docacts { margin-top: 10px; }
a.btn { text-decoration: none; display: inline-block; }
.chip { font-size: .8rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; white-space: nowrap; background: var(--line); color: var(--ink); }
.chip.ok { background: var(--ok); color: #fff; } .chip.todo { background: var(--warn); color: #fff; }
.chip.busy { background: var(--teal-soft); color: var(--teal); } .chip.bad { background: #fbe3e1; color: #9b1c15; white-space: normal; }
.evlist tr.off td { color: var(--muted); }
.dlg { border: 1px solid var(--line); border-radius: 14px; padding: 18px; max-width: min(520px, 92vw); background: var(--surface); color: var(--ink); }
.dlg::backdrop { background: rgba(0,0,0,.35); }
.sharelist { list-style: none; padding: 0; margin: 12px 0 0; } .sharelist li { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
/* review */
.voices { border: 0; padding: 0; margin: 12px 0 0; display: grid; gap: 6px; } .voices legend { font-weight: 600; margin-bottom: 4px; }
.how ul { margin: 6px 0 10px; padding-left: 1.2em; } .off-sample { color: var(--muted); text-decoration: line-through; }
.para { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.para:first-child { border-top: 0; }
.para input[type=checkbox] { width: 20px; height: 20px; margin-top: 3px; }
.ptext { margin: 0; overflow-wrap: anywhere; line-height: 1.55; }
.ptext:lang(ar) { font-family: "Segoe UI", Tahoma, "Noto Naskh Arabic", "Geeza Pro", Arial, sans-serif; line-height: 1.8; font-size: 1.05em; }
.para.h1 .ptext { font-weight: 800; font-size: 1.2rem; } .para.h2 .ptext { font-weight: 700; font-size: 1.05rem; }
.para.off .ptext { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 45%, transparent); }
.why { margin: 4px 0 0; font-size: .82rem; color: var(--warn); }
.pacts { margin-top: 8px; } .pacts .btn { font-size: .8rem; padding: 4px 10px; }
#paras.hideoff .para.off { display: none; }
.para textarea { min-height: 80px; margin-bottom: 8px; }
.exgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ex { margin: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); }
.ex img { display: block; width: 100%; height: 150px; object-fit: contain; background: #fff; }
.ex figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6px; align-items: center; padding: 8px; }
.ex figcaption input[type=text] { padding: 6px 8px; font-size: .85rem; }
.ex figcaption span { grid-column: 1 / -1; }
.ex.off img { opacity: .35; }
.savebar { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-left, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)); z-index: 5; }
.wrapbar { max-width: 860px; margin: 0 auto; display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.btn.big { font-size: 1rem; padding: 10px 20px; }
/* help */
.guide .wrap { max-width: 760px; } .guide h2 { margin-top: 22px; } .guide li { margin: 5px 0; }
/* buttons (base from Live Poll; .go is the main action here) */
.btn { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 8px; padding: 7px 14px;
  font-weight: 600; font-size: .9rem; line-height: 1.3; cursor: pointer; }
.btn:hover { border-color: var(--teal); }
.btn.go { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.go:hover { filter: brightness(1.08); }
.btn.danger.ghost { background: transparent; }
