@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/tajawal-arabic-400-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE80-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/tajawal-latin-400-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/tajawal-arabic-500-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE80-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/tajawal-latin-500-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/tajawal-arabic-700-normal.woff2") format("woff2"); unicode-range: U+0600-06FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE80-FEFC; }
@font-face { font-family: "Tajawal"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/tajawal-latin-700-normal.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
:root {
  --bg: #f3f6fb;
  --card: #ffffff;
  --text: #1b2333;
  --muted: #6a7489;
  --line: #e4e9f2;
  --brand: #0f8b8d;
  --brand-2: #1f5fae;
  --brand-soft: #e3f4f4;
  --on-brand: #ffffff;
  --me: #d9eefb;
  --them: #ffffff;
  --danger: #dc3f4a;
  --ok: #1a9a62;
  --warn: #c98100;
  --radius: 18px;
  --shadow: 0 6px 24px rgba(28, 48, 88, .08);
  --shadow-sm: 0 2px 8px rgba(28, 48, 88, .06);
  --chat-bg: #e9eff7;
  --sat: env(safe-area-inset-top, 0px);
  --sab: env(safe-area-inset-bottom, 0px);
  --font: "Tajawal", system-ui, -apple-system, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1320;
    --card: #162033;
    --text: #e8edf7;
    --muted: #8b97ae;
    --line: #243148;
    --brand: #26b3b0;
    --brand-soft: #123b3d;
    --me: #1c3f66;
    --them: #1a2638;
    --chat-bg: #0b111c;
    --shadow: 0 6px 24px rgba(0, 0, 0, .35);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, .3);
  }
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.55; }
body { overscroll-behavior-y: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: var(--brand-2); }
[hidden] { display: none !important; }
svg.ic { width: 1em; height: 1em; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; flex: none; }
.ic-wrap { display: inline-flex; align-items: center; justify-content: center; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

/* ───── الهيكل ───── */
#app { height: 100%; }
.shell { height: 100dvh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; background: var(--bg); position: relative; }
.topbar { display: flex; align-items: center; gap: 8px; padding: calc(10px + var(--sat)) 14px 10px; background: var(--bg); position: sticky; top: 0; z-index: 5; min-height: 58px; }
.topbar h1 { font-size: 20px; margin: 0; flex: 1; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--text); background: var(--card); box-shadow: var(--shadow-sm); }
.icon-btn:active { transform: scale(.94); }
.content { flex: 1; overflow-y: auto; padding: 4px 14px 24px; -webkit-overflow-scrolling: touch; }
.tabbar { display: flex; background: var(--card); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + var(--sab)); }
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; border-radius: 12px; color: var(--muted); font-size: 12px; position: relative; text-decoration: none; }
.tab .ic { font-size: 22px; }
.tab.active { color: var(--brand); font-weight: 700; }
.badge { min-width: 18px; height: 18px; border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 5px; }
.tab .badge { position: absolute; top: 0; inset-inline-start: calc(50% + 6px); }
.fab { position: absolute; inset-inline-start: 18px; bottom: calc(82px + var(--sab)); width: 56px; height: 56px; border-radius: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: 26px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 24px rgba(31, 95, 174, .35); z-index: 6; }

/* ───── المصادقة ───── */
.auth { min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 24px 18px calc(24px + var(--sab)); background: radial-gradient(1200px 500px at 50% -10%, var(--brand-soft), transparent), var(--bg); }
.auth-card { width: 100%; max-width: 420px; background: var(--card); border-radius: 26px; padding: 26px 22px 22px; box-shadow: var(--shadow); }
.logo { width: 76px; height: 76px; border-radius: 22px; display: block; margin: 0 auto 10px; box-shadow: 0 10px 26px rgba(31, 95, 174, .3); }
.auth h1 { text-align: center; margin: 4px 0 2px; font-size: 26px; }
.auth .sub { text-align: center; color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.seg { display: flex; background: var(--bg); border-radius: 14px; padding: 4px; gap: 4px; margin-bottom: 16px; }
.seg button { flex: 1; padding: 9px 6px; border-radius: 11px; color: var(--muted); font-weight: 500; font-size: 15px; display: inline-flex; gap: 6px; align-items: center; justify-content: center; }
.seg button.on { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); font-weight: 700; }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 13px; color: var(--muted); margin: 0 4px 5px; }
.input { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg); outline: none; transition: border-color .15s, background .15s; }
.input:focus { border-color: var(--brand); background: var(--card); }
.input[dir="ltr"] { text-align: right; }
textarea.input { resize: vertical; min-height: 110px; }
.pw { position: relative; }
.pw button { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); color: var(--brand); font-size: 13px; padding: 6px 8px; }
.pw .input { padding-left: 64px; padding-right: 14px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 18px; border-radius: 14px; font-weight: 700; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: var(--on-brand); width: 100%; box-shadow: 0 8px 18px rgba(31, 95, 174, .22); }
.btn:disabled { opacity: .55; box-shadow: none; }
.btn.ghost { background: var(--bg); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn.small { width: auto; padding: 8px 14px; font-size: 14px; border-radius: 12px; box-shadow: none; }
.err { color: var(--danger); font-size: 14px; min-height: 22px; margin: 4px 4px 8px; }
.hint { color: var(--muted); font-size: 13px; text-align: center; margin: 12px 4px 0; }
.banner { display: flex; gap: 10px; align-items: center; background: var(--brand-soft); border-radius: 16px; padding: 11px 12px; margin: 0 0 14px; font-size: 14px; }
.banner .grow { flex: 1; }
.center-card { text-align: center; padding: 30px 12px; }
.center-card .big { font-size: 54px; line-height: 1; }

/* ───── الرئيسية والأقسام ───── */
.hero { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-radius: 22px; padding: 18px 18px 16px; margin: 4px 0 16px; box-shadow: 0 12px 28px rgba(31, 95, 174, .25); }
.hero .hi { font-size: 14px; opacity: .85; }
.hero .nm { font-size: 22px; font-weight: 700; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat { background: var(--card); border-radius: var(--radius); padding: 16px 14px; text-align: start; box-shadow: var(--shadow-sm); position: relative; display: flex; flex-direction: column; gap: 10px; min-height: 118px; text-decoration: none; color: inherit; }
.cat:active { transform: scale(.98); }
.cat .ico { width: 46px; height: 46px; border-radius: 15px; display: flex; align-items: center; justify-content: center; font-size: 24px; }
.cat .t { font-weight: 700; font-size: 16px; }
.cat .c { color: var(--muted); font-size: 13px; }
.cat .badge { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--brand); }
.cat.wide { grid-column: span 2; min-height: 0; flex-direction: row; align-items: center; }
.post { background: var(--card); border-radius: var(--radius); padding: 15px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.post.pinned { border: 1.5px solid var(--brand-soft); }
.post h3 { margin: 0 0 4px; font-size: 18px; line-height: 1.4; }
.post .meta { color: var(--muted); font-size: 12.5px; margin-bottom: 8px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.post .body { white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
.pin-tag { color: var(--brand); font-weight: 700; display: inline-flex; gap: 3px; align-items: center; }
.post .more { margin-inline-start: auto; color: var(--muted); font-size: 20px; padding: 2px 6px; }
.linkchip { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); text-decoration: none; font-size: 14px; overflow: hidden; }
.linkchip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; direction: ltr; unicode-bidi: plaintext; }
.empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.empty .big { font-size: 46px; }
a.lnk { unicode-bidi: isolate; overflow-wrap: anywhere; word-break: normal; }

/* ───── المرفقات ───── */
.atts { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.atts .imgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 6px; }
.atts img { width: 100%; max-height: 340px; object-fit: cover; border-radius: 12px; display: block; background: var(--line); cursor: zoom-in; }
.atts .imgs.one img { max-height: 420px; }
.atts video { width: 100%; max-height: 380px; border-radius: 12px; background: #000; }
.filecard { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(120, 140, 170, .14); text-decoration: none; color: inherit; }
.filecard .fi { width: 38px; height: 38px; border-radius: 10px; background: #e5484d; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 20px; flex: none; }
.filecard .fn { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.filecard .fs { font-size: 12px; color: var(--muted); }
.filecard .fx { min-width: 0; }
.lightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, .92); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 10px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.lightbox button { position: absolute; top: calc(14px + var(--sat)); inset-inline-start: 14px; width: 42px; height: 42px; border-radius: 50%; background: rgba(255, 255, 255, .18); color: #fff; font-size: 22px; }
.tray { display: flex; gap: 8px; padding: 8px 10px 0; overflow-x: auto; }
.chip { display: flex; align-items: center; gap: 6px; padding: 5px 6px 5px 8px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 12.5px; flex: none; max-width: 190px; }
.chip img { width: 34px; height: 34px; border-radius: 8px; object-fit: cover; }
.chip-ic { font-size: 20px; color: var(--muted); }
.chip-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }
.chip.err { border-color: var(--danger); }
.chip-err { color: var(--danger); }
.chip-pct { color: var(--muted); }
.chip-x { width: 22px; height: 22px; border-radius: 50%; background: var(--bg); display: inline-flex; align-items: center; justify-content: center; }

/* ───── المحادثة ───── */
.chat { height: 100dvh; display: flex; flex-direction: column; max-width: 720px; margin: 0 auto; background: var(--chat-bg); }
.chat-head { display: flex; align-items: center; gap: 10px; padding: calc(8px + var(--sat)) 12px 8px; background: var(--card); box-shadow: var(--shadow-sm); z-index: 3; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; flex: none; }
.chat-head .who { flex: 1; min-width: 0; }
.chat-head .who b { display: block; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-head .who small { color: var(--muted); font-size: 12px; direction: ltr; unicode-bidi: plaintext; }
.msgs { flex: 1; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; -webkit-overflow-scrolling: touch; }
.day { align-self: center; background: rgba(120, 140, 170, .22); color: var(--muted); font-size: 12px; padding: 3px 12px; border-radius: 12px; margin: 10px 0 6px; }
.msg { max-width: 82%; padding: 7px 10px 5px; border-radius: 16px; box-shadow: 0 1px 2px rgba(20, 30, 50, .08); position: relative; word-break: break-word; overflow-wrap: anywhere; }
.msg.mine { align-self: flex-start; background: var(--me); border-end-start-radius: 5px; }
.msg.theirs { align-self: flex-end; background: var(--them); border-end-end-radius: 5px; }
.msg .txt { white-space: pre-wrap; }
.msg .who-name { font-size: 12px; font-weight: 700; color: var(--brand); margin-bottom: 1px; }
.msg .foot { display: flex; justify-content: flex-end; gap: 4px; align-items: center; font-size: 11px; color: var(--muted); margin-top: 1px; }
.msg .tick { font-size: 13px; }
.msg .tick.read { color: #2aa3ff; }
.msg.deleted .txt { color: var(--muted); font-style: italic; }
.msg.flash { animation: flash 1.2s ease; }
@keyframes flash { 0%, 60% { box-shadow: 0 0 0 3px var(--brand); } 100% { box-shadow: 0 1px 2px rgba(20, 30, 50, .08); } }
.quote { border-inline-start: 3px solid var(--brand); background: rgba(120, 140, 170, .16); border-radius: 8px; padding: 4px 8px; margin: 2px 0 5px; font-size: 13px; cursor: pointer; }
.quote b { display: block; color: var(--brand); font-size: 12px; }
.quote span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.older { align-self: center; color: var(--brand); font-size: 13px; padding: 6px 14px; background: var(--card); border-radius: 12px; margin-bottom: 6px; }
.reply-bar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--card); border-top: 1px solid var(--line); }
.reply-bar .quote { flex: 1; margin: 0; cursor: default; min-width: 0; }
.composer-wrap { background: var(--chat-bg); padding-bottom: var(--sab); }
.composer { display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px; }
.composer .field-box { flex: 1; display: flex; align-items: flex-end; background: var(--card); border-radius: 22px; padding: 3px 4px; box-shadow: var(--shadow-sm); min-width: 0; }
.composer textarea { flex: 1; border: 0; outline: none; background: transparent; resize: none; max-height: 120px; padding: 9px 6px; line-height: 1.4; min-width: 0; }
.composer .tool { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--muted); flex: none; }
.composer .send { width: 46px; height: 46px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 21px; flex: none; }
.composer .send:disabled { opacity: .45; }
.composer .send svg { transform: scaleX(-1); }
.emoji-panel { background: var(--card); border-top: 1px solid var(--line); height: 250px; display: flex; flex-direction: column; }
.emoji-tabs { display: flex; border-bottom: 1px solid var(--line); }
.emoji-tabs button { flex: 1; padding: 8px 0; font-size: 20px; opacity: .55; }
.emoji-tabs button.on { opacity: 1; border-bottom: 2px solid var(--brand); }
.emoji-grid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(8, 1fr); padding: 6px; align-content: start; }
.emoji-grid button { font-size: 26px; padding: 5px 0; border-radius: 10px; }
.emoji-grid button:active { background: var(--bg); }

/* ───── القوائم ───── */
.search { position: relative; margin-bottom: 12px; }
.search .s-ic { position: absolute; display: inline-flex; inset-inline-start: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search .input { padding-inline-start: 40px; }
.row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--card); border-radius: 16px; margin-bottom: 8px; box-shadow: var(--shadow-sm); text-decoration: none; color: inherit; }
.row .mid { flex: 1; min-width: 0; }
.row .nm { font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.row .sub { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .end { text-align: end; font-size: 12px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; align-items: flex-end; }
.tag { font-size: 11.5px; padding: 2px 8px; border-radius: 9px; font-weight: 700; background: var(--brand-soft); color: var(--brand); }
.tag.warn { background: #fff2d6; color: var(--warn); }
.tag.bad { background: #fde4e6; color: var(--danger); }
.tag.own { background: #e8e4fd; color: #5b43d6; }
@media (prefers-color-scheme: dark) { .tag.warn { background: #3a2d0d; } .tag.bad { background: #3b1a1e; } .tag.own { background: #2a2350; color: #b3a6ff; } }
.ucard { background: var(--card); border-radius: 16px; padding: 12px; margin-bottom: 10px; box-shadow: var(--shadow-sm); }
.ucard .top { display: flex; gap: 12px; align-items: center; }
.ucard .acts { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.panel { background: var(--card); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.panel h4 { margin: 0 0 8px; font-size: 15px; }
.switch-row { display: flex; align-items: center; gap: 12px; }
.switch-row .grow { flex: 1; }
.switch-row small { color: var(--muted); display: block; }
.switch { width: 52px; height: 30px; border-radius: 15px; background: var(--line); position: relative; flex: none; transition: background .15s; }
.switch::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch.on { background: var(--brand); }
.switch.on::after { transform: translateX(-22px); }
.invite { display: flex; gap: 8px; align-items: center; direction: ltr; }
.invite code { flex: 1; background: var(--bg); padding: 10px; border-radius: 12px; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pills { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.pill { padding: 7px 14px; border-radius: 20px; background: var(--card); color: var(--muted); font-size: 14px; white-space: nowrap; box-shadow: var(--shadow-sm); display: inline-flex; gap: 6px; align-items: center; }
.pill.on { background: var(--brand); color: #fff; font-weight: 700; }

/* ───── النوافذ ───── */
.backdrop { position: fixed; inset: 0; background: rgba(8, 14, 26, .5); z-index: 50; display: flex; align-items: flex-end; justify-content: center; opacity: 0; transition: opacity .18s; }
.backdrop.show { opacity: 1; }
.sheet { width: 100%; max-width: 720px; background: var(--card); border-radius: 24px 24px 0 0; padding: 8px 16px calc(18px + var(--sab)); max-height: 92dvh; overflow-y: auto; transform: translateY(30px); transition: transform .2s; }
.backdrop.show .sheet { transform: none; }
.grab { width: 42px; height: 5px; background: var(--line); border-radius: 3px; margin: 4px auto 10px; }
.sheet-title { margin: 4px 2px 12px; font-size: 18px; }
.act { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 8px; border-radius: 12px; font-size: 16px; text-align: start; }
.act:active { background: var(--bg); }
.act.danger { color: var(--danger); }
.act .ic { font-size: 20px; }
.sheet .btns { display: flex; gap: 10px; margin-top: 12px; }
.toast { position: fixed; inset-inline: 16px; bottom: calc(90px + var(--sab)); margin: 0 auto; max-width: 420px; background: #1b2333; color: #fff; padding: 12px 16px; border-radius: 14px; z-index: 200; text-align: center; box-shadow: var(--shadow); animation: pop .2s ease; font-size: 15px; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }
.spin { width: 28px; height: 28px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: sp .8s linear infinite; margin: 40px auto; }
@keyframes sp { to { transform: rotate(360deg); } }
.skeleton { height: 96px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card), var(--line), var(--card)); background-size: 200% 100%; animation: sh 1.2s infinite; margin-bottom: 12px; }
@keyframes sh { to { background-position: -200% 0; } }
@media (min-width: 721px) { .shell, .chat { border-inline: 1px solid var(--line); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
.row .sub { unicode-bidi: plaintext; }

.entry { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 12px 12px 2px; margin-bottom: 10px; }
.entry-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; color: var(--brand); }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--brand); flex: none; }

.req { display: flex; align-items: center; gap: 12px; width: 100%; text-align: start; background: var(--card); border: 1.5px solid var(--brand); border-radius: 18px; padding: 14px; margin-bottom: 14px; box-shadow: var(--shadow, 0 6px 18px rgba(0,0,0,.06)); color: inherit; font: inherit; cursor: pointer; }
.req-ic { font-size: 26px; }
.req-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.req-tx small { color: var(--muted); font-size: 13.5px; }
.req-tx small.ok { color: #16a34a; }
.req-tx small.wait { color: #d97706; }

.pfoot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--line); }
.pbtn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); color: var(--brand); font: inherit; font-size: 13.5px; font-weight: 700; text-decoration: none; cursor: pointer; }
.pbtn.wa { background: #16a34a; border-color: #16a34a; color: #fff; }
