/* Admin panel: Arabic, RTL, laid out for a laptop but usable on a phone. */
.admin { max-width: 1040px; margin: 0 auto; padding: 0 16px 80px; }
.admin-bar { display: flex; align-items: center; gap: 12px; padding: 14px 0; position: sticky; top: 0; background: var(--bg); z-index: 4; flex-wrap: wrap; }
.admin-bar h1 { font-size: 20px; font-weight: 600; flex: 1; min-width: 160px; }
.admin-nav { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 14px; border-bottom: 2px solid var(--line); margin-bottom: 20px; }
.admin-nav a { padding: 8px 14px; border-radius: 99px; text-decoration: none; color: var(--ink-2); font-size: 14px; font-weight: 500; min-height: 40px; display: inline-flex; align-items: center; }
.admin-nav a[aria-current="page"] { background: var(--go); color: #fff; }
.admin h2 { font-size: 20px; font-weight: 600; margin: 0 0 14px; }
.admin h3 { font-size: 16px; font-weight: 600; margin: 22px 0 10px; }
.admin .btn { width: auto; min-height: 44px; padding: 0 18px; font-size: 15px; }
.admin .btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 12px; box-shadow: 0 3px 0 var(--go-d); }
.admin .btn.ghost.sm { box-shadow: none; }
.admin .btn.bad.sm { box-shadow: 0 3px 0 var(--bad-d); }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { background: var(--surface); border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; }
.metric b { display: block; font-size: 28px; font-weight: 600; line-height: 1.2; }
.metric span { font-size: 13px; color: var(--ink-2); }
.table-wrap { overflow-x: auto; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); }
table.t { border-collapse: collapse; width: 100%; font-size: 14px; }
table.t th, table.t td { padding: 10px 12px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.t th { font-weight: 600; color: var(--ink-2); font-size: 13px; background: var(--bg); white-space: nowrap; }
table.t tr:last-child td { border-bottom: 0; }
td.ltr, .ltr { direction: ltr; text-align: left; unicode-bidi: plaintext; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--line); color: var(--ink-2); }
.pill.ok { background: var(--go-t); color: var(--go-ink); }
.pill.draft { background: #FFF1CC; color: #6B4A00; }
.pill.bad { background: var(--bad-t); color: var(--bad-ink); }
.item-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.item { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; padding: 10px 12px; flex-wrap: wrap; }
.item .grow { flex: 1; min-width: 160px; overflow-wrap: anywhere; }
.item .grow b { font-weight: 500; }
.item .grow small { display: block; color: var(--ink-2); font-size: 12px; }
.icon-sm { width: 36px; height: 36px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; }
.icon-sm:hover { background: var(--line); color: var(--ink); }
.icon-sm .ic { width: 18px; height: 18px; }
.icon-sm.danger:hover { background: var(--bad-t); color: var(--bad); }
.module-block { margin-bottom: 26px; }
.module-block > header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.module-block > header h3 { margin: 0; flex: 1; }
.editor-split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .editor-split { grid-template-columns: 1fr; } }
.preview { border: 2px solid var(--line); border-radius: 16px; padding: 14px 16px; background: var(--surface); min-height: 200px; overflow: auto; max-height: 520px; }
.problems { background: var(--bad-t); color: var(--bad-ink); border-radius: 14px; padding: 10px 14px 10px 28px; margin: 10px 0; font-size: 14px; }
.problems li { margin: 2px 0; }
.okbox { background: var(--go-t); color: var(--go-ink); border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.opt-edit { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.opt-edit input[type="radio"] { width: 22px; height: 22px; accent-color: var(--go); flex: none; }
.opt-edit .input { flex: 1; }
.pw { font: 600 15px var(--mono); direction: ltr; letter-spacing: .5px; }
.warn { background: #FFF1CC; color: #6B4A00; border-radius: 14px; padding: 10px 14px; font-size: 14px; margin: 10px 0; }
.drop { border: 2px dashed var(--line); border-radius: 16px; padding: 18px; text-align: center; color: var(--ink-2); }

.steps { padding-inline-start: 22px; margin: 0 0 18px; display: grid; gap: 6px; }
.steps li { line-height: 1.7; }

