:root {
  --bg: #f4f3ef;
  --surface: #ffffff;
  --ink: #1d2422;
  --muted: #66706d;
  --line: #e4e2dc;
  --brand: #0f5c55;
  --brand-ink: #ffffff;
  --brand-soft: #e3efec;
  --danger: #b4372f;
  --danger-soft: #fbe9e7;
  --warn: #9a6200;
  --warn-soft: #fdf1dc;
  --ok: #2c7a3f;
  --ok-soft: #e4f3e7;
  --info: #285e9c;
  --info-soft: #e5eef9;
  --violet: #6a4aa8;
  --violet-soft: #efeaf8;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(20, 30, 28, .06), 0 2px 8px rgba(20, 30, 28, .04);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Arabic", "Noto Sans Devanagari", "Noto Nastaliq Urdu", "Noto Sans Ethiopic", "Noto Sans Bengali", Kefa, Tahoma, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-text-size-adjust: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.text-danger { color: var(--danger); }
.grow { flex: 1; min-width: 0; }

.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.2em; }

/* ---------- layout ---------- */
#app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between;
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px; background: rgba(244, 243, 239, .92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; font-size: 20px; }
.brand-name { font-weight: 700; line-height: 1.2; }
.brand-sub { font-size: .8rem; color: var(--muted); }
.content { max-width: 720px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); }
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 10; display: flex; justify-content: space-around;
  background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; font-size: .72rem; color: var(--muted); border-radius: 10px; }
.tab .ic { width: 24px; height: 24px; }
.tab.active { color: var(--brand); font-weight: 600; }
.tab-new .ic { background: var(--brand); color: var(--brand-ink); border-radius: 50%; padding: 4px; width: 30px; height: 30px; }

.page-title { font-size: 1.45rem; margin: 6px 0 12px; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.section-title { font-size: 1.02rem; margin: 22px 0 10px; display: flex; align-items: center; gap: 8px; }
.count { background: var(--line); color: var(--muted); border-radius: 999px; padding: 0 8px; font-size: .8rem; font-weight: 600; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; }
.row > label { flex: 1; min-width: 140px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); margin-bottom: 8px; }
[dir="rtl"] .back .ic { transform: scaleX(-1); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow); }
.order-card { display: block; transition: transform .08s; }
.order-card:active { transform: scale(.99); }
.order-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-bottom: 4px; }
.order-num { color: var(--muted); font-size: .8rem; font-variant-numeric: tabular-nums; }
.order-title { font-weight: 650; font-size: 1.04rem; }
.order-title.big { font-size: 1.22rem; margin: 2px 0 6px; }
.order-desc { margin: 4px 0 8px; color: #3a4441; white-space: pre-wrap; }
.order-meta { display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-size: .86rem; margin-top: 6px; }
.order-meta span { display: inline-flex; align-items: center; gap: 4px; }
.order-badges { margin-top: 8px; }

.badge { display: inline-block; border-radius: 999px; padding: 1px 9px; font-size: .76rem; font-weight: 600; background: var(--line); color: var(--muted); }
.st-new, .st-received { background: var(--info-soft); color: var(--info); }
.st-in_progress { background: var(--warn-soft); color: var(--warn); }
.st-paused { background: #eceae4; color: #5b605e; }
.st-pending_review { background: var(--violet-soft); color: var(--violet); }
.st-approved { background: var(--ok-soft); color: var(--ok); }
.st-rejected, .st-overdue { background: var(--danger-soft); color: var(--danger); }
.st-cancelled { background: #eceae4; color: #8a8f8d; text-decoration: line-through; }
.pr-important { background: var(--warn-soft); color: var(--warn); }
.pr-urgent { background: var(--danger-soft); color: var(--danger); }
.pr-very_urgent { background: var(--danger); color: #fff; }

/* worker big cards */
.worker-card { border-inline-start: 5px solid var(--info); }
.st-border-in_progress { border-inline-start-color: var(--warn); }
.st-border-rejected { border-inline-start-color: var(--danger); }
.st-border-paused { border-inline-start-color: #9aa09d; }
.worker-card-link { display: block; }
.big-actions { display: grid; gap: 8px; margin-top: 12px; }
.review-note { background: var(--danger-soft); color: var(--danger); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.review-note.ok { background: var(--ok-soft); color: var(--ok); }

/* stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow); }
.stat-n { font-size: 1.7rem; font-weight: 750; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-l { font-size: .8rem; color: var(--muted); }
.stat-pending_review .stat-n { color: var(--violet); }
.stat-overdue .stat-n { color: var(--danger); }
.stat-approved .stat-n { color: var(--ok); }
.stat-in_progress .stat-n { color: var(--warn); }
.stat-new .stat-n { color: var(--info); }
.progress-card { margin-top: 10px; }
.progress-head { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: 6px; }
.progress { height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress div { height: 100%; background: var(--brand); border-radius: 99px; transition: width .4s; }
@media (max-width: 380px) { .stats { grid-template-columns: repeat(2, 1fr); } }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scrollbar-width: none; }
.chip { flex: none; padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .88rem; }
.chip span { color: var(--muted); margin-inline-start: 4px; }
.chip.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.chip.active span { color: rgba(255, 255, 255, .8); }

.empty { text-align: center; color: var(--muted); padding: 34px 12px; }
.empty .ic { width: 38px; height: 38px; opacity: .5; }

/* detail */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin: 14px 0; }
.facts dt { font-size: .76rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; }
.instructions { background: var(--brand-soft); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.instructions p { margin: 2px 0 0; white-space: pre-wrap; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }
.note-box { margin-top: 12px; display: grid; gap: 8px; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; display: block; }
.upload-tile { aspect-ratio: 1; border: 2px dashed var(--line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--muted); font-size: .8rem; cursor: pointer; background: var(--surface); text-align: center; padding: 4px; }
.upload-tile .ic { width: 26px; height: 26px; }
.note-form { display: flex; gap: 8px; margin-bottom: 10px; }
.note-form input { flex: 1; }
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { display: flex; gap: 12px; padding: 8px 0; position: relative; }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 7px; flex: none; outline: 3px solid var(--bg); }
.tl-item:not(:last-child)::before { content: ""; position: absolute; inset-inline-start: 4px; top: 22px; bottom: -8px; width: 2px; background: var(--line); }
.tl-created .tl-dot { background: var(--info); }
.tl-status_changed .tl-dot { background: var(--warn); }
.tl-note .tl-dot { background: var(--brand); }
.tl-head { font-size: .92rem; }
.tl-note { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin-top: 4px; white-space: pre-wrap; }
.tl-time { font-size: .76rem; color: var(--muted); }

/* team */
.member-row { display: flex; align-items: center; gap: 12px; }
.member-row.inactive { opacity: .55; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; flex: none; }
.row-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.member-row .row-actions { margin-top: 0; }
.invite-card summary { cursor: pointer; list-style: none; }
.invite-card summary::-webkit-details-marker { display: none; }
.invite-card[open] summary { margin-bottom: 12px; }
.invite-item { display: grid; gap: 8px; }
.invite-item .row-actions { margin-top: 0; }
.invite-head { display: flex; justify-content: space-between; align-items: start; gap: 8px; }
.invite-url { font-size: .85rem; padding: 8px 10px; background: var(--bg); }
.invite-new { border-color: var(--brand); background: var(--brand-soft); box-shadow: 0 0 0 3px rgba(15, 92, 85, .15); }
.switch { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; color: var(--muted); }
.switch input { width: auto; }
.warn { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: .9rem; }

/* forms */
.form { display: grid; gap: 12px; }
.card.form { margin-bottom: 12px; }
label { display: grid; gap: 4px; font-size: .88rem; font-weight: 600; color: #3a4441; }
input, select, textarea {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; font-weight: 400; font-size: 1rem;
  outline: none; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(15, 92, 85, .15); }
textarea { resize: vertical; }
.inline-form { display: flex; gap: 8px; align-items: end; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid transparent; border-radius: 11px;
  padding: 10px 16px; font-weight: 650; cursor: pointer; background: transparent; transition: filter .15s, transform .05s; text-align: center;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--brand-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: var(--surface); border-color: var(--line); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-link { color: var(--brand); padding: 6px 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 14px 18px; font-size: 1.05rem; border-radius: 13px; }
.btn-sm { padding: 6px 12px; font-size: .88rem; }
.icon-btn { border: 1px solid var(--line); background: var(--surface); width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; cursor: pointer; flex: none; }

/* auth */
.auth-wrap { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 16px; gap: 12px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 22px; box-shadow: var(--shadow); text-align: center; }
.auth-card .form { text-align: start; margin-top: 16px; }
.auth-card h1 { margin: 10px 0 4px; font-size: 1.5rem; }
.auth-logo { width: 64px; height: 64px; margin: 0 auto; border-radius: 18px; background: var(--brand); color: var(--brand-ink); display: grid; place-items: center; }
.auth-logo .ic { width: 34px; height: 34px; }
.auth-lang { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.lang-select { width: auto; padding: 6px 10px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 12px; padding: 4px; margin-top: 18px; }
.seg-btn { border: 0; background: transparent; padding: 8px; border-radius: 9px; cursor: pointer; font-weight: 600; color: var(--muted); }
.seg-btn.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.hint { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.version { font-size: .75rem; color: #a1a6a4; text-align: center; }

.center-screen { min-height: 60dvh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border: 3px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.toast {
  position: fixed; inset-inline: 16px; bottom: calc(90px + env(safe-area-inset-bottom)); z-index: 50; max-width: 480px; margin: 0 auto;
  padding: 12px 16px; border-radius: 12px; background: #1d2422; color: #fff; box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
  opacity: 0; transform: translateY(10px); transition: opacity .25s, transform .25s; text-align: center;
}
.toast.show { opacity: 1; transform: none; }
.toast-err { background: var(--danger); }

.readonly { background: var(--bg); color: var(--muted); }
.hint.top { margin: 12px 0 0; }
.member-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 8px; }
.inline-label { display: flex; align-items: center; gap: 6px; font-weight: 500; color: var(--muted); }
.inline-label select { width: auto; padding: 6px 8px; font-size: .9rem; }
.update-bar { position: fixed; top: calc(env(safe-area-inset-top) + 8px); inset-inline: 16px; z-index: 60; max-width: 480px; margin: 0 auto;
  padding: 10px 14px; border: 0; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 650; box-shadow: 0 8px 24px rgba(0,0,0,.2); cursor: pointer; }
.member-side { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
@media (max-width: 420px) { .member-row { flex-wrap: wrap; } .member-side { flex-direction: row; flex-wrap: wrap; width: 100%; } }

/* ---------- 0.3: quick orders, alerts, recurring ---------- */
.login-id-box { display: flex; justify-content: space-between; align-items: center; gap: 8px; background: var(--brand-soft); border-radius: 10px; padding: 10px 12px; }
.login-id-box b { font-size: 1.05rem; letter-spacing: .3px; }
.pw-form { display: flex; gap: 8px; margin-top: 8px; }
.pw-form input { flex: 1; padding: 8px 10px; }
.quick-composer { display: grid; gap: 10px; margin-bottom: 8px; }
.quick-composer textarea { min-height: 60px; }
.quick-row { display: flex; gap: 8px; align-items: center; }
.quick-row select { flex: 1; min-width: 0; padding: 9px 10px; }
.quick-row .icon-btn { width: 44px; height: 44px; }
.quick-attach { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-attach:empty { display: none; }
.pending-item { display: flex; align-items: center; gap: 6px; background: var(--bg); border-radius: 10px; padding: 6px; }
.pending-item img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; }
.pending-item audio { height: 36px; max-width: 220px; }
.icon-btn.small { width: 32px; height: 32px; border-radius: 9px; }
.icon-btn.recording, .upload-tile.recording { background: var(--danger); color: #fff; border-color: var(--danger); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .65; } }
.quick-card { border-inline-start: 5px solid var(--info); display: grid; gap: 8px; }
.quick-card.mine { background: #fbfdfc; }
.quick-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .92rem; }
.quick-head .ic { transform: scaleX(-1); width: 14px; height: 14px; color: var(--muted); }
[dir="rtl"] .quick-head .ic { transform: none; }
.quick-head .muted { margin-inline-start: auto; }
.quick-text { font-size: 1.05rem; white-space: pre-wrap; }
.quick-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
audio.voice { width: 100%; height: 40px; }
.gallery.small { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); }
.st-border-approved { border-inline-start-color: var(--ok); }
.st-border-received { border-inline-start-color: var(--info); }
.st-border-cancelled { border-inline-start-color: #c9cdcb; opacity: .7; }
.quick-alert { display: flex; align-items: center; gap: 10px; background: var(--warn-soft); border-color: #f0d9a8; color: var(--warn); margin-bottom: 10px; }
.notify-prompt { display: flex; align-items: center; gap: 10px; width: 100%; text-align: start; background: var(--info-soft); color: var(--info); border-color: #cddcf0; cursor: pointer; margin-bottom: 10px; font-weight: 600; }
.platform-link { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; color: var(--brand); }
.weekday-box { display: flex; flex-wrap: wrap; gap: 6px; }
.day-chip { display: inline-flex; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip span { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-weight: 500; cursor: pointer; }
.day-chip input:checked + span { background: var(--brand); color: #fff; border-color: var(--brand); }
.alert-banner { position: fixed; top: calc(env(safe-area-inset-top) + 8px); inset-inline: 12px; z-index: 70; max-width: 520px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: #1d2422; color: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.3);
  animation: drop .25s ease-out; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } }
.alert-icon { width: 38px; height: 38px; border-radius: 10px; background: var(--danger); display: grid; place-items: center; flex: none; animation: pulse 1s infinite; }
.alert-banner .grow div { font-size: .9rem; opacity: .85; }
.alert-banner .icon-btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); font-size: 1rem; }
.btn-light { background: #fff; color: var(--ink); }
.sr { display: none; }

/* ملف مهام البيت */
.seg { display: flex; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; margin: 12px 0; }
.seg-btn { flex: 1; text-align: center; padding: 8px 10px; border-radius: 9px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.seg-btn.active { background: var(--brand); color: var(--brand-ink); }
.lib-cat { margin-bottom: 6px; }
.lib-cat-head { display: flex; align-items: center; gap: 8px; }
.lib-cat-head .section-title { flex: 1; }
.lib-task { padding: 14px; }
.lib-task.inactive { opacity: .55; }
.lib-head { display: flex; align-items: flex-start; gap: 10px; }
.lib-head .muted .ic { width: 14px; height: 14px; vertical-align: -2px; }
.wchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.wchip { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 6px 14px; border-radius: 999px; border: 1.5px dashed var(--line); background: #fff; font: inherit; font-size: .92rem; color: var(--muted); cursor: pointer; }
.wchip .ic { width: 16px; height: 16px; }
.wchip.on { background: var(--brand); border: 1.5px solid var(--brand); color: #fff; font-weight: 600; }
.wchip:disabled { opacity: .6; }
.lib-checklist { padding: 4px 14px; }
.lib-check { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.lib-check:last-child { border-bottom: 0; }
.lib-check.inactive { opacity: .55; }
.lib-check input[type=checkbox] { width: 24px; height: 24px; accent-color: var(--brand); flex: none; }
.lib-workers { border: 1px solid var(--line); border-radius: 12px; padding: 4px 14px; margin: 0; }
.lib-workers legend { padding: 0 6px; font-weight: 600; font-size: .9rem; }
.dep-pill { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); background: #fff; border-radius: 999px; padding-inline-start: 12px; }
.dep-pill a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; font-size: .92rem; font-weight: 600; color: var(--brand); }
.dep-pill a .ic { width: 16px; height: 16px; }
.dep-pill .icon-btn { border: 0; background: transparent; }

/* يوم العامل */
.day-group { padding: 0; overflow: hidden; }
.day-group summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 16px; cursor: pointer; list-style: none; font-size: 1.02rem; }
.day-group summary::-webkit-details-marker { display: none; }
.day-group[open] summary { border-bottom: 1px solid var(--line); }
.tick-row { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.tick-row:last-child { border-bottom: 0; }
.tick { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: transparent; display: grid; place-items: center; cursor: pointer; }
.tick .ic { width: 26px; height: 26px; stroke-width: 2.6; }
.tick-row.done .tick { background: var(--ok); border-color: var(--ok); color: #fff; }
.tick.static { width: 30px; height: 30px; }
.tick.static .ic { width: 18px; height: 18px; }
.tick-title { font-weight: 600; font-size: 1.02rem; padding-top: 10px; }
.tick-row.done .tick-title { color: var(--muted); }
.tick-row .muted .ic { width: 14px; height: 14px; vertical-align: -2px; }
.lvl-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.lvl-chip { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: .85rem; color: var(--muted); cursor: pointer; }
.lvl-chip.on.lvl-full, .lvl-pick input:checked + .lvl-full { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.lvl-chip.on.lvl-partial, .lvl-pick input:checked + .lvl-partial { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); font-weight: 600; }
.lvl-chip.on.lvl-little, .lvl-pick input:checked + .lvl-little { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); font-weight: 600; }
.lvl-pick input { position: absolute; opacity: 0; pointer-events: none; }
.badge.lvl-full { background: var(--ok-soft); color: var(--ok); }
.badge.lvl-partial { background: var(--warn-soft); color: var(--warn); }
.badge.lvl-little { background: var(--danger-soft); color: var(--danger); }
.worker-note { margin-top: 6px; padding: 6px 10px; border-radius: 8px; background: var(--info-soft); color: var(--info); font-size: .88rem; }
.note-form { display: flex; gap: 8px; align-items: flex-end; margin-top: 8px; }
.note-form textarea { flex: 1; }
.report-link { display: flex; align-items: center; gap: 10px; color: var(--brand); }
/* التقرير */
.day-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 8px 0 14px; }
.report-card { display: grid; gap: 10px; }
.report-head { display: flex; align-items: center; gap: 12px; }
.report-pct { font-size: 1.3rem; color: var(--brand); }
.report-nums { display: flex; gap: 6px; flex-wrap: wrap; }
.report-line { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: .92rem; }
.report-line .ic { width: 15px; height: 15px; vertical-align: -2px; color: var(--ok); }
.motivation { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ok-soft); color: var(--ok); font-weight: 600; }
.quick-card.is-message { border-inline-start-color: var(--info); }
.reset-card { border: 1.5px solid var(--warn); background: var(--warn-soft); display: grid; gap: 8px; }
.reset-line { display: flex; align-items: center; gap: 10px; }
/* شعار الاستضافة: نرفع القائمة السفلية فوقه */
body.has-host-badge .tabbar { padding-bottom: calc(env(safe-area-inset-bottom) + 64px); }
body.has-host-badge .content { padding-bottom: calc(160px + env(safe-area-inset-bottom)); }
