/* FuSnapshot — واجهة الموظف */
:root { --ink: #0f1d45; --tx: #1d2433; --mut: #6b7280; --line: #e3e6ee; --bg: #f5f6fa; --card: #fff; --acc: #f23b6d; }
* { box-sizing: border-box; }
body { margin: 0; font-family: Cairo, Almarai, system-ui, sans-serif; background: var(--bg); color: var(--tx); }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 20px; background: var(--ink); color: #fff; }
.brand b { font-size: 1.25rem; letter-spacing: .02em; }
.brand span { margin-inline-start: 10px; opacity: .75; font-size: .9rem; }
#who { font-size: .9rem; opacity: .9; }
main { max-width: 1100px; margin: 0 auto; padding: 20px 16px 60px; }
.empty { padding: 40px; text-align: center; color: var(--mut); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin-bottom: 16px; }
h2 { margin: 0 0 12px; font-size: 1.15rem; color: var(--ink); }
label { display: block; margin: 12px 0 4px; font-weight: 700; font-size: .9rem; color: var(--ink); }
label small { font-weight: 500; color: var(--mut); }
input, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font: inherit; font-size: .95rem; background: #fff; color: var(--tx); }
textarea { min-height: 130px; resize: vertical; line-height: 1.6; }
textarea.idea { min-height: 220px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
@media (max-width: 760px) { .grid { grid-template-columns: 1fr; } header .brand span { display: none; } }
button, .btn { border: 0; border-radius: 10px; padding: 10px 16px; font: inherit; font-weight: 700; cursor: pointer; background: var(--ink); color: #fff; text-decoration: none; display: inline-block; }
button.light, .btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line); }
button.danger { background: #fff; color: #b42318; border: 1px solid #f3c7c3; }
button:disabled { opacity: .5; cursor: default; }
.list .it { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line); cursor: pointer; }
.list .it:last-child { border-bottom: 0; }
.list .it:hover { background: #fafbfd; }
.it .t { font-weight: 700; color: var(--ink); }
.it .m { font-size: .82rem; color: var(--mut); }
.st { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.st.ready { background: #e7f6ec; color: #18794e; }
.st.pending { background: #fff4e0; color: #9a5b00; }
.st.failed { background: #fde8e8; color: #b42318; }
.note { background: #fff8e6; border: 1px solid #f5d48a; color: #7a5200; border-radius: 10px; padding: 10px 12px; font-size: .88rem; }
.err { background: #fde8e8; border: 1px solid #f3c7c3; color: #b42318; border-radius: 10px; padding: 10px 12px; font-size: .9rem; }
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid #ccd; border-top-color: var(--ink); border-radius: 50%; animation: s 1s linear infinite; vertical-align: middle; margin-inline-end: 8px; }
@keyframes s { to { transform: rotate(360deg); } }
details summary { cursor: pointer; font-weight: 700; color: var(--ink); }
.back { color: var(--ink); text-decoration: none; font-weight: 700; display: inline-block; margin-bottom: 12px; cursor: pointer; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 18px; border-radius: 10px; opacity: 0; transition: opacity .2s; pointer-events: none; }
#toast.on { opacity: 1; }
