* { box-sizing: border-box; }
body { margin: 0; font-family: Vazirmatn, Tahoma, sans-serif; background: #0f172a; color: #e2e8f0; font-size: 15px; padding-bottom: env(safe-area-inset-bottom); }
header { position: sticky; top: 0; display: flex; gap: 10px; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 14px 10px; background: #b91c1c; color: #fff; font-weight: 700; z-index: 5; }
header .net { font-size: 12px; font-weight: 400; margin-inline-start: auto; }
main { padding: 14px; max-width: 560px; margin: 0 auto; }
h2 { margin: 4px 0 12px; } h3 { margin: 16px 0 6px; font-size: 15px; }
label { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; font-size: 13px; color: #94a3b8; }
input, select, textarea { font: inherit; font-size: 16px; padding: 10px; border-radius: 10px; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; }
button { font: inherit; cursor: pointer; }
.primary { background: #dc2626; color: #fff; border: none; border-radius: 10px; padding: 12px 18px; font-weight: 700; }
.primary.big { width: 100%; padding: 18px; font-size: 18px; }
.link { background: none; border: none; color: #38bdf8; padding: 6px; }
.btn { flex: 1; text-align: center; background: #1e293b; border: 1px solid #334155; border-radius: 10px; padding: 12px 6px; color: #e2e8f0; font-size: 14px; flex-direction: row; justify-content: center; }
.row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.media-btns { display: flex; gap: 6px; margin: 8px 0; }
.sev { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; }
.sev label { flex-direction: row; align-items: center; margin: 0; color: #e2e8f0; }
.gps { display: flex; justify-content: space-between; align-items: center; background: #1e293b; border-radius: 10px; padding: 8px 10px; font-size: 13px; }
.gps.ok { border: 1px solid #16a34a; } .gps.bad { border: 1px solid #f59e0b; }
#thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
#thumbs div { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: #1e293b; display: grid; place-items: center; font-size: 26px; }
#thumbs img { width: 100%; height: 100%; object-fit: cover; }
#thumbs button { position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; }
.item { background: #1e293b; border-radius: 10px; padding: 10px; margin-bottom: 6px; font-size: 13px; display: flex; justify-content: space-between; gap: 8px; }
.item small { color: #94a3b8; display: block; }
.st { white-space: nowrap; font-size: 12px; }
.st.q { color: #f59e0b; } .st.e { color: #f87171; } .st.r { color: #38bdf8; } .st.t { color: #4ade80; }
.err { color: #f87171; font-size: 13px; min-height: 1em; }
.hint { color: #94a3b8; font-size: 12px; line-height: 1.8; }
.hello { color: #94a3b8; }
.hidden { display: none !important; }
.mod-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.mod-tabs button { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid #334155; background: #1e293b; color: #e2e8f0; font: inherit; }
.mod-tabs button.on { background: #b91c1c; border-color: #b91c1c; color: #fff; font-weight: 700; }
.qc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.qc-btn { min-height: 86px; border-radius: 14px; border: none; color: #fff; font: inherit; font-size: 16px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-shadow: 0 1px 2px rgba(0,0,0,0.5); }
.qc-btn span { font-size: 26px; }
.qc-btn small { font-weight: 400; font-size: 11px; opacity: 0.9; }
.qc-btn:active { transform: scale(0.97); }
.thumbs { display: flex; flex-wrap: wrap; gap: 6px; }
.thumbs div { position: relative; width: 76px; height: 76px; border-radius: 8px; overflow: hidden; background: #1e293b; display: grid; place-items: center; font-size: 26px; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.thumbs button { position: absolute; top: 2px; left: 2px; background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%; width: 22px; height: 22px; font-size: 12px; }
.thumbs small { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.55); font-size: 10px; text-align: center; color: #fff; }
.draft { background: #1e293b; border-radius: 10px; padding: 10px; margin-bottom: 6px; display: flex; gap: 8px; align-items: center; border-inline-start: 4px solid var(--c, #64748b); }
.draft div { flex: 1; font-size: 13px; }
.draft small { display: block; color: #94a3b8; }
.draft .err { margin: 0; }
.danger { color: #f87171 !important; }
.overlay { position: fixed; inset: 0; background: rgba(15,23,42,0.85); display: grid; place-items: center; z-index: 50; }
.overlay-box { background: #1e293b; border-radius: 14px; padding: 22px; width: 82%; max-width: 360px; display: flex; flex-direction: column; gap: 10px; align-items: center; text-align: center; }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid #334155; border-top-color: #dc2626; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.req::after { content: " *"; color: #f87171; }
