/* =========================================================
   بوابة كليات جامعة بنغازي — الهوية البصرية
   أزرق الجامعة + الذهبي، خط IBM Plex Sans Arabic، عناوين Amiri
   ========================================================= */
@import url('https://fonts.googleapis.com/css2?family=Amiri:wght@400;700&family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&display=swap');

:root {
  --navy: #0b3a6f; --navy-2: #0f4c8f; --navy-ink: #072849;
  --gold: #c8a64b; --gold-soft: #f4ecd4;
  --bg: #f3f6fa; --surface: #ffffff; --surface-2: #f7f9fc; --line: #dde3ec;
  --text: #1d2433; --muted: #5b6678; --ok: #1f7a4d; --ok-bg: #e5f4ec;
  --bad: #b3261e; --bad-bg: #fbe9e7; --warn: #8a5a00; --warn-bg: #fff4d6;
  --focus: #2f7de1;
  --radius: 10px; --radius-sm: 6px;
  --shadow: 0 1px 2px rgba(7, 40, 73, .06), 0 4px 16px rgba(7, 40, 73, .06);
  --font: 'IBM Plex Sans Arabic', Tahoma, 'Segoe UI', sans-serif;
  --display: 'Amiri', 'Times New Roman', serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1524; --surface: #121e33; --surface-2: #17253d; --line: #24385a;
    --text: #e6ebf3; --muted: #9aa8bf; --navy-ink: #0a1a30;
    --gold-soft: #2f2a19; --ok: #5cc98f; --ok-bg: #12301f; --bad: #ff8a80; --bad-bg: #3a1714;
    --warn: #ffcf66; --warn-bg: #3a2e10; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1524; --surface: #121e33; --surface-2: #17253d; --line: #24385a;
  --text: #e6ebf3; --muted: #9aa8bf; --navy-ink: #0a1a30;
  --gold-soft: #2f2a19; --ok: #5cc98f; --ok-bg: #12301f; --bad: #ff8a80; --bad-bg: #3a1714;
  --warn: #ffcf66; --warn-bg: #3a2e10; --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 15px; line-height: 1.65; }
a { color: var(--navy-2); }
:root[data-theme="dark"] a { color: #8db8f0; }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.hidden { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }
h1, h2, h3 { line-height: 1.3; margin: 0 0 .5em; }
h1 { font-size: 26px; } h2 { font-size: 20px; } h3 { font-size: 16px; }

/* ---------- الشريط العلوي ---------- */
.topbar { background: var(--navy); color: #fff; border-bottom: 3px solid var(--gold); }
.topbar-inner { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 14px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand img { width: 46px; height: 46px; border-radius: 50%; background: #fff; padding: 2px; flex: none; }
.brand-name { font-family: var(--display); font-size: 22px; font-weight: 700; line-height: 1.1; }
.brand-sub { font-size: 12.5px; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar .spacer { flex: 1; }
.icon-btn { background: transparent; border: 1px solid rgba(255,255,255,.35); color: #fff; border-radius: var(--radius-sm);
  height: 36px; min-width: 36px; padding: 0 10px; cursor: pointer; font: inherit; display: inline-flex; align-items: center; gap: 6px; }
.icon-btn:hover { background: rgba(255,255,255,.1); }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- عناصر النماذج ---------- */
label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--navy-2); outline: 2px solid color-mix(in srgb, var(--navy-2) 25%, transparent); outline-offset: 0; }
input[type="checkbox"] { width: 20px; height: 20px; min-height: 0; accent-color: var(--navy); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 600; cursor: pointer;
  border-radius: var(--radius-sm); border: 1px solid transparent; padding: 9px 18px; min-height: 42px; text-decoration: none; white-space: nowrap; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-2); }
.btn-gold { background: var(--gold); color: #1c1606; }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-danger { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); }
.btn-sm { min-height: 34px; padding: 5px 12px; font-size: 13.5px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 720px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

.alert { border-radius: var(--radius-sm); padding: 10px 14px; margin-bottom: 14px; font-size: 14px; border: 1px solid transparent; }
.alert-error { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 25%, transparent); }
.alert-ok { background: var(--ok-bg); color: var(--ok); }
.alert-notice { background: var(--gold-soft); color: var(--text); border-inline-start: 4px solid var(--gold); white-space: pre-line; }

/* ---------- صفحة الدخول ---------- */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: var(--navy); color: #fff; position: relative; overflow: hidden; display: flex; flex-direction: column;
  justify-content: space-between; padding: 40px 48px; }
.login-art::before { content: ''; position: absolute; inset: 0; opacity: .08; pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, #fff 1px, transparent 0); background-size: 22px 22px; }
.login-art .seal { width: 128px; height: 128px; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 0 0 6px rgba(200,166,75,.45); }
.login-art h1 { font-family: var(--display); font-size: 46px; margin: 28px 0 6px; }
.login-art p { font-size: 17px; opacity: .9; max-width: 34ch; margin: 0; }
.login-art .rule { width: 72px; height: 3px; background: var(--gold); margin: 22px 0; }
.login-art footer { font-size: 13px; opacity: .75; position: relative; }
.login-form-wrap { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.login-form { width: 100%; max-width: 420px; }
.login-form h2 { font-size: 24px; margin-bottom: 4px; }
.login-form .lead { color: var(--muted); margin: 0 0 24px; }
.login-form .btn-primary { width: 100%; min-height: 48px; font-size: 16px; }
.login-tools { position: absolute; top: 16px; inset-inline-end: 16px; }
.login-tools .icon-btn { color: var(--text); border-color: var(--line); background: var(--surface); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-inline-end: 72px; }
.pw-toggle { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0;
  color: var(--navy-2); font: inherit; font-size: 13px; cursor: pointer; padding: 6px 8px; }
@media (max-width: 860px) {
  .login-page { grid-template-columns: 1fr; }
  .login-art { padding: 22px 20px; flex-direction: row; align-items: center; gap: 14px; }
  .login-art .seal { width: 60px; height: 60px; box-shadow: 0 0 0 3px rgba(200,166,75,.45); }
  .login-art h1 { font-size: 26px; margin: 0; } .login-art p, .login-art .rule, .login-art footer { display: none; }
}

/* ---------- تخطيط الصفحات ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 20px 16px 48px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }

.identity { display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; margin-bottom: 18px; border-top: 4px solid var(--gold); }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-size: 26px; font-weight: 700; }
.identity h1 { font-size: 22px; margin: 0; }
.identity .meta { color: var(--muted); font-size: 14px; display: flex; gap: 6px 18px; flex-wrap: wrap; }
@media (max-width: 640px) { .identity { grid-template-columns: auto 1fr; } .identity > :last-child { grid-column: 1 / -1; } }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: thin; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 10px 16px; font: inherit; font-weight: 600; color: var(--muted);
  cursor: pointer; white-space: nowrap; margin-bottom: -1px; }
.tab[aria-selected="true"] { color: var(--navy); border-bottom-color: var(--gold); }
:root[data-theme="dark"] .tab[aria-selected="true"] { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tab[aria-selected="true"] { color: #fff; } }
.tab .lock { font-size: 11px; font-weight: 500; background: var(--surface-2); border: 1px solid var(--line); border-radius: 20px; padding: 0 7px; margin-inline-start: 6px; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts div { padding: 12px 16px; border-bottom: 1px solid var(--line); border-inline-start: 1px solid var(--line); margin-inline-start: -1px; }
.facts dt { font-size: 12.5px; color: var(--muted); margin: 0; }
.facts dd { margin: 2px 0 0; font-weight: 600; word-break: break-word; }

/* ---------- الجداول ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { background: var(--surface-2); font-weight: 600; color: var(--muted); font-size: 13px; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: color-mix(in srgb, var(--surface-2) 70%, transparent); }
td.c, th.c { text-align: center; }
.badge { display: inline-block; padding: 1px 10px; border-radius: 20px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-bad { background: var(--bad-bg); color: var(--bad); }
.b-warn { background: var(--warn-bg); color: var(--warn); } .b-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty strong { display: block; color: var(--text); font-size: 16px; margin-bottom: 4px; }

/* ---------- كشف النتيجة الرسمي (العنصر المميز) ---------- */
.sheet { background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: 6px; margin-bottom: 18px; box-shadow: var(--shadow); }
.sheet-frame { border: 2px solid var(--navy); outline: 1px solid var(--gold); outline-offset: -6px; padding: 26px 28px 22px; }
:root[data-theme="dark"] .sheet-frame { border-color: #3f6aa3; }
.sheet-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; text-align: center; border-bottom: 1px solid var(--gold); padding-bottom: 14px; margin-bottom: 16px; }
.sheet-head .side { font-size: 13px; color: var(--muted); }
.sheet-head .side:first-child { text-align: start; } .sheet-head .side:last-child { text-align: end; }
.sheet-head img { width: 76px; height: 76px; margin: 0 auto 4px; display: block; }
.sheet-title { font-family: var(--display); font-size: 28px; font-weight: 700; color: var(--navy); margin: 6px 0 0; }
:root[data-theme="dark"] .sheet-title { color: #e9d9a6; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .sheet-title { color: #e9d9a6; } }
.sheet-sub { font-size: 14px; color: var(--muted); }
.sheet-info { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 16px; font-size: 14px; margin-bottom: 16px; }
.sheet-info b { font-weight: 600; color: var(--muted); font-size: 12.5px; display: block; }
.sheet table th { background: var(--navy); color: #fff; font-size: 13px; text-align: center; }
.sheet table td { text-align: center; border: 1px solid var(--line); }
.sheet table td.name { text-align: start; }
.sheet .total { font-weight: 700; font-size: 15px; }
.sheet-summary { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 16px; padding: 12px 16px; background: var(--gold-soft); border-inline-start: 4px solid var(--gold); }
.sheet-summary .avg { font-family: var(--display); font-size: 26px; font-weight: 700; line-height: 1; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.sem-title { font-family: var(--display); font-size: 20px; color: var(--navy); margin: 22px 0 8px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
:root[data-theme="dark"] .sem-title { color: #e9d9a6; }
@media (max-width: 640px) { .sheet-frame { padding: 16px 12px; } .sheet-head { grid-template-columns: 1fr; } .sheet-head .side { text-align: center !important; } .sheet-info { grid-template-columns: 1fr 1fr; } }

.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.toolbar .grow { flex: 1; min-width: 180px; }

/* ---------- لوحة التحكم ---------- */
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 70px); }
.sidenav { background: var(--surface); border-inline-end: 1px solid var(--line); padding: 14px 10px; position: sticky; top: 0; align-self: start; height: calc(100vh - 70px); overflow-y: auto; }
.sidenav .group { font-size: 12px; color: var(--muted); padding: 14px 12px 4px; }
.nav-link { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; font: inherit; color: var(--text);
  padding: 9px 12px; border-radius: var(--radius-sm); cursor: pointer; text-align: start; }
.nav-link svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.nav-link:hover { background: var(--surface-2); }
.nav-link[aria-current="page"] { background: var(--navy); color: #fff; }
.nav-link[aria-current="page"] svg { color: var(--gold); }
.admin-main { padding: 20px 24px 60px; min-width: 0; }
.context-bar { display: flex; gap: 12px; align-items: end; flex-wrap: wrap; margin-bottom: 18px; }
.context-bar .field { margin: 0; min-width: 220px; }
.context-bar h1 { margin: 0; font-size: 24px; flex: 1; min-width: 200px; }
.menu-btn { display: none; }
@media (max-width: 900px) {
  .admin-shell { grid-template-columns: 1fr; }
  .sidenav { position: fixed; inset-block: 0; inset-inline-start: 0; width: 270px; z-index: 50; height: 100vh; transform: translateX(100%); transition: transform .2s; box-shadow: var(--shadow); }
  .sidenav.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .admin-main { padding: 16px; }
}

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-bottom: 18px; overflow: hidden; }
.stat { padding: 16px 18px; border-inline-start: 1px solid var(--line); margin-inline-start: -1px; border-bottom: 1px solid var(--line); margin-bottom: -1px; }
.stat .v { font-size: 28px; font-weight: 700; line-height: 1.2; color: var(--navy); }
:root[data-theme="dark"] .stat .v { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .stat .v { color: #fff; } }
.stat .l { font-size: 13px; color: var(--muted); }
.stat .s { font-size: 12.5px; color: var(--muted); }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 1000px) { .cols-2 { grid-template-columns: 1fr; } }

.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 150px) 1fr 52px; gap: 10px; align-items: center; font-size: 13.5px; }
.bar-row .track { display: block; background: var(--surface-2); border-radius: 4px; height: 12px; overflow: hidden; border: 1px solid var(--line); }
.bar-row .fill { display: block; height: 100%; background: var(--navy-2); border-radius: 3px; width: 0; transition: width .4s ease-out; }
.bar-row .fill.gold { background: var(--gold); }
.bar-row .label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meter { height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.meter > span { display: block; height: 100%; background: var(--ok); }

.switch-list { display: grid; gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.switch-item { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.switch-item:last-child { border-bottom: 0; }
.switch-item .txt { flex: 1; }
.switch-item .txt strong { display: block; }
.switch-item .txt span { font-size: 13px; color: var(--muted); }
.switch { position: relative; width: 52px; height: 30px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; margin: 0; position: absolute; cursor: pointer; z-index: 1; }
.switch .knob { position: absolute; inset: 0; background: #b7c0ce; border-radius: 30px; transition: background .15s; }
.switch .knob::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,.3); }
.switch input:checked + .knob { background: var(--ok); }
.switch input:checked + .knob::after { transform: translateX(-22px); }
.switch input:focus-visible + .knob { outline: 3px solid var(--focus); outline-offset: 2px; }
.state-pill { font-size: 12.5px; font-weight: 600; min-width: 64px; text-align: center; }

.dropzone { border: 2px dashed var(--line); border-radius: var(--radius); padding: 26px; text-align: center; background: var(--surface-2); cursor: pointer; }
.dropzone.drag { border-color: var(--navy-2); background: color-mix(in srgb, var(--navy-2) 8%, var(--surface)); }
.dropzone input { display: none; }

.pager { display: flex; gap: 8px; justify-content: space-between; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.grade-input { width: 80px; min-height: 36px; padding: 6px 8px; text-align: center; }
tr.dirty td { background: var(--warn-bg); }

/* ---------- نوافذ وتنبيهات ---------- */
dialog { border: 1px solid var(--line); border-radius: var(--radius); padding: 0; background: var(--surface); color: var(--text); width: min(640px, calc(100vw - 24px)); max-height: 90vh; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(7, 20, 40, .55); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { margin: 0; font-size: 18px; }
.dlg-body { padding: 18px 20px; overflow-y: auto; max-height: calc(90vh - 130px); }
.dlg-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 12px 20px; border-top: 1px solid var(--line); background: var(--surface-2); }
.close-x { background: none; border: 0; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px 8px; }
#toasts { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 100; display: grid; gap: 8px; }
.toast { background: var(--navy-ink); color: #fff; padding: 11px 16px; border-radius: var(--radius-sm); box-shadow: var(--shadow); font-size: 14px; max-width: 380px; border-inline-start: 4px solid var(--gold); }
.toast.err { border-inline-start-color: #ff6b5e; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--navy-2); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; vertical-align: middle; }
.loading { padding: 40px; text-align: center; color: var(--muted); }
@keyframes spin { to { transform: rotate(360deg); } }
.site-foot { text-align: center; font-size: 13px; color: var(--muted); padding: 18px 16px 28px; border-top: 1px solid var(--line); }
.site-foot b { color: var(--text); font-weight: 600; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- الطباعة: يُطبع الكشف الرسمي فقط ---------- */
@media print {
  @page { size: A4; margin: 12mm; }
  :root { --surface: #fff; --surface-2: #f3f5f9; --text: #000; --muted: #333; --line: #999; --gold-soft: #f6efd9; color-scheme: light; }
  body { background: #fff; font-size: 12pt; }
  .topbar, .tabs, .identity, .no-print, .site-foot, #toasts, .sidenav, .context-bar, .toolbar { display: none !important; }
  .page { padding: 0; max-width: none; }
  .sheet { box-shadow: none; border: 0; padding: 0; }
  .sheet-frame { border-color: #0b3a6f; }
  .sheet-title, .sem-title { color: #0b3a6f !important; }
  .sheet table th { background: #0b3a6f !important; color: #fff !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sheet-summary { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sem-block { break-inside: avoid; }
  tr { break-inside: avoid; }
}

/* أدوات مسافات (بدلاً من الأنماط المضمّنة الممنوعة بسياسة CSP) */
.u-mb { margin-bottom: 12px; } .u-my { margin: 14px 0; } .u-mt { margin-top: 18px; }
.u-bigpw { font-size: 22px; font-weight: 700; user-select: all; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.toolbar input, .toolbar select { width: auto; }
.toolbar input.grow, .toolbar select.grow { flex: 1; width: 100%; }
@media (max-width: 640px) { .toolbar input, .toolbar select { width: 100%; } }
:root .topbar .brand { color: #fff; }
.bar-row .track, .meter { display: flex; flex-direction: row; justify-content: flex-start; direction: rtl; } .bar-row .fill, .meter > span { flex: none; }
