/* افزونه‌ی صفحه‌ی «کلید و CSR مودیان»؛ بعد از stuffid.css بارگذاری می‌شود و از کلاس‌های sid-* آن استفاده می‌کند */

.mk-flow { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; counter-reset: s }
.mk-flow li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; padding-inline-start: 64px }
.mk-flow li::before { content: counter(s, persian); position: absolute; inset-inline-start: 14px; top: 14px; width: 36px; height: 36px; border-radius: 12px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center }
.mk-flow li b { color: var(--brand-dark) }
.mk-flow li.mk-here { border-color: var(--brand); box-shadow: 0 12px 30px -20px rgba(14,127,116,.6) }
.mk-flow li .mk-tag { display: inline-block; font-size: .75rem; font-weight: 700; color: var(--brand-dark); background: #e3f7f4; border-radius: 99px; padding: 0 10px; margin-inline-start: 6px }

.mk-table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: #fff }
.mk-table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .92rem }
.mk-table th, .mk-table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: top }
.mk-table thead th { background: #f1faf8; color: var(--brand-dark); font-weight: 800 }
.mk-table tbody tr:last-child td { border-bottom: 0 }
.mk-table td:first-child { font-weight: 700; white-space: nowrap }

.mk-code { direction: ltr; text-align: left; background: #0f2b28; color: #d7f5ef; border-radius: 14px; padding: 14px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .82rem; line-height: 1.9; overflow-x: auto; margin: 12px 0 }

.mk-warn { background: #fff8ec; border: 1px solid #f2d9a6; border-radius: 16px; padding: 14px 18px; margin: 14px 0; color: #5f4200 }
.mk-warn b { color: #8a5a00 }

/* ابزار تولید کلید و CSR */
.mk-tool { border: 2px dashed var(--line); border-radius: 22px; padding: 22px; background: #f7fcfb }
.mk-tool-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px }
.mk-ready { font-size: .8rem; font-weight: 800; color: var(--brand-dark); background: #e3f7f4; border-radius: 99px; padding: 2px 12px }
.mk-soon { font-size: .8rem; font-weight: 800; color: #8a5a00; background: #fff3d6; border-radius: 99px; padding: 2px 12px }
.mk-io { display: grid; grid-template-columns: 1fr 1fr; gap: 14px }
.mk-io ul { margin: 6px 0 0; padding-inline-start: 20px; color: #1d3c39 }
.mk-io h3 { font-size: 1rem; margin: 0 }

.mk-lead { margin: 0 0 14px; color: #1d3c39; font-size: .92rem }
.mk-form { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end }
.mk-f { display: grid; gap: 4px; font-weight: 700; font-size: .88rem; color: var(--brand-dark) }
.mk-f input { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: #10312e }
.mk-f input:focus { outline: 2px solid var(--brand); outline-offset: 1px }
.mk-actions { grid-column: 1 / -1 }
.mk-status { min-height: 1.4em; margin: 10px 0 0; font-size: .9rem; color: #1d3c39 }
.mk-status.ok { color: #0a6b3a; font-weight: 700 }
.mk-status.err { color: #a12622; font-weight: 700 }
.mk-out { margin: 14px 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px }
.mk-out-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: space-between; margin-bottom: 6px }
.mk-out-head h3 { margin: 0; font-size: 1rem }
.mk-out small { display: block; margin-top: 6px; color: var(--muted) }
.mk-out code { font-size: .76rem; word-break: break-all }
.mk-ta { width: 100%; box-sizing: border-box; direction: ltr; text-align: left; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .76rem; line-height: 1.6; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: #f7fcfb; color: #10312e; resize: vertical }
.mk-sm { padding: 4px 12px; font-size: .82rem; min-height: 0; margin-inline-start: 6px; cursor: pointer }

@media (max-width: 720px) { .mk-io { grid-template-columns: 1fr } .mk-form { grid-template-columns: 1fr } }

@counter-style persian { system: numeric; symbols: "۰" "۱" "۲" "۳" "۴" "۵" "۶" "۷" "۸" "۹" }
