/* =========================================================
   ضغط مرفقات ناجز — هوية «نجد» (نفس عائلة مساعد ناجز المتكامل)
   رملي + فيروزي عميق + زعفران، شريط زخرفة نجدية
   ========================================================= */
:root {
  --sand: #F3E9D7; --sand-2: #FBF6EC; --sand-3: #E6D6B8; --sand-4: #D9C7A6;
  --teal: #0E4D52; --teal-2: #13706F; --teal-3: #0B3B3F; --teal-soft: #E3EFEC;
  --saffron: #E3A02B; --saffron-2: #C9861A; --saffron-soft: #FBF0DA; --gold-line: #F0D49B;
  --palm: #3E8E6A; --palm-soft: #E5F1EA; --palm-line: #BFDCCB;
  --dl: #C2412D; --dl-soft: #FBEAE5; --dl-line: #F1C4B9;
  --text: #1F2A2B; --muted: #6B6457; --muted-2: #8A8170;
  --radius: 22px; --radius-sm: 14px;
  --shadow-sm: 0 1px 2px rgba(60, 40, 10, .06);
  --shadow: 0 8px 22px -14px rgba(60, 40, 10, .35);
  --font: 'Tajawal', 'Readex Pro', system-ui, sans-serif;
  color-scheme: light;
}
[hidden] { display: none !important; }
*, ::before, ::after { box-sizing: border-box; border-color: var(--sand-3); }
body { margin: 0; background: var(--sand); color: var(--text); font-family: var(--font); font-size: 14.5px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
::selection { background: #F0D49B; color: var(--teal-3); }
* { scrollbar-width: thin; scrollbar-color: var(--sand-4) transparent; }

/* الشريط النجدي */
.nd-band {
  height: 16px; flex: none;
  background:
    repeating-linear-gradient(45deg, var(--teal) 0 7px, transparent 7px 14px),
    repeating-linear-gradient(-45deg, var(--saffron) 0 7px, var(--sand) 7px 14px);
}

/* علامة المعيّن */
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 10px; background: var(--sand); transform: rotate(45deg); display: grid; place-items: center; overflow: hidden; }
.brand-mark img { width: 26px; height: 26px; transform: rotate(-45deg); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 500; color: var(--saffron-2); }
.eyebrow::before { content: ""; width: 9px; height: 9px; border-radius: 2px; background: var(--saffron); transform: rotate(45deg); }

.card { background: #fff; border: 1px solid var(--sand-3); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.card-title { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--teal-3); margin: 0 0 4px; font-size: 1rem; }
.card-title .ico { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--saffron-soft); color: var(--saffron-2); border: 1px solid var(--gold-line); flex: none; }
.card-title .ico svg { width: 17px; height: 17px; }

/* الأزرار */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--teal); background: transparent; color: var(--teal); border-radius: 14px; padding: 9px 18px; font-weight: 500; cursor: pointer; transition: background .15s, box-shadow .15s, color .15s; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:not(:disabled):hover { background: var(--teal-soft); box-shadow: 0 8px 18px -10px rgba(14, 77, 82, .55); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--sand); font-weight: 600; }
.btn.primary:not(:disabled):hover { background: var(--teal-3); }
.btn.saffron { background: var(--saffron); border-color: var(--saffron); color: var(--teal-3); font-weight: 600; }
.btn.saffron:not(:disabled):hover { background: var(--saffron-2); color: #fff; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* الحقول */
select, input[type=text], input[type=number] { background: #fff; border: 1px solid var(--sand-4); border-radius: 12px; padding: 7px 12px; }
select:focus, input:focus { outline: 2px solid var(--saffron); outline-offset: 0; border-color: var(--saffron); }

/* المفتاح */
.switch { appearance: none; width: 42px; height: 24px; border-radius: 24px; background: var(--sand-4); position: relative; cursor: pointer; flex: none; transition: background .15s; margin: 0; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: right .15s; }
.switch:checked { background: var(--teal-2); }
.switch:checked::after { right: 21px; }
.switch:focus-visible { outline: 2px solid var(--saffron); outline-offset: 2px; }

/* أزرار مقطعية */
.seg { display: flex; gap: 6px; flex-wrap: wrap; }
.seg button { border: 1px solid var(--sand-3); background: #fff; color: var(--text); font-weight: 500; border-radius: 12px; padding: 6px 14px; cursor: pointer; }
.seg button:hover { border-color: var(--sand-4); }
.seg button.on { background: var(--teal); border-color: var(--teal); color: var(--sand); }

.nd-foot { display: flex; justify-content: center; align-items: center; gap: 10px; padding: 6px 0 18px; font-size: .78rem; color: var(--muted-2); }
.nd-foot .nd-dot { width: 7px; height: 7px; background: var(--saffron); transform: rotate(45deg); }
