/* Section: الإعدادات (P1a: «الحساب», the device-check link, logging out). Copied from the demo's settings.css. */

.set-block {
  margin-top: 22px;
}

.set-block:first-of-type {
  margin-top: 6px;
}

.set-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--text);
  font-size: 18px;
  font-weight: 900;
}

.set-title .icon {
  color: var(--brand);
}

.set-title .icon svg {
  width: 22px;
  height: 22px;
}

.set-value {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 8px;
}

.set-text {
  margin: 12px 0 0;
  font-size: 16px;
}

.set-help {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 14px;
}

.set-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.set-actions .btn {
  flex: 1 1 200px;
}

@media (min-width: 720px) {
  .set-actions .btn {
    flex: 0 1 auto;
  }
}

.set-notice {
  margin: 14px 0 0;
}

.set-notice p {
  margin: 0;
}

.set-steps {
  margin: 6px 0 10px;
  padding-inline-start: 22px;
  font-weight: 400;
}

/* ------------------------------------------------------------ a whole-row link (the device check, staging only) */

.set-link-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: var(--tap);
  margin-top: 22px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--brand-ink);
  font-size: 16px;
  font-weight: 700;
}

.set-link-line:hover {
  background: var(--brand-soft);
}

.set-link-line .icon svg {
  width: 22px;
  height: 22px;
}

.set-link-line .icon:first-child {
  color: var(--brand);
}

.set-link-text {
  flex: 1;
  min-width: 0;
}

/* ------------------------------------------------------------ the Cloudflare explanation in the email form */

.set-explain {
  margin: 0 0 16px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--soon-soft);
  color: var(--text);
  font-size: 15px;
}

.set-explain p {
  margin: 0;
}

.set-explain p + p {
  margin-top: 8px;
}

.set-path {
  display: block;
  margin: 6px 0;
  padding: 6px 10px;
  border-radius: 8px;
  background: var(--surface);
  font-weight: 800;
  text-align: left;
  overflow-wrap: anywhere;
}

.set-pending {
  color: var(--late);
  font-weight: 700;
}

/* ------------------------------------------------------------ «النسخ الاحتياطي» (P1b) */

/* «ما صارت للحين، أول نسخة الليلة…»: no run yet, which is fine. */
.set-first-run {
  color: var(--muted);
  font-weight: 600;
}

.set-loading {
  color: var(--muted);
}

/* ------------------------------------------------------------ «التصنيفات» (P2; copied from the demo) */

.set-list {
  display: flex;
  flex-direction: column;
}

.set-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.set-item:last-child {
  border-bottom: 0;
}

.set-item-main {
  min-width: 0;
}

.set-item-name {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 17px;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.set-item-hidden .set-item-name bdi {
  color: var(--muted);
}

.set-item-sub {
  color: var(--muted);
  font-size: 14px;
}

.set-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.set-del {
  color: var(--late);
}

.set-del:hover:not(:disabled) {
  border-color: var(--late);
}

.set-used {
  padding-inline: 4px;
  color: var(--muted);
  font-size: 14px;
}

@media (min-width: 720px) {
  .set-item {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
  }

  .set-item-actions {
    flex-shrink: 0;
    justify-content: flex-end;
  }
}

/* A first paragraph at the top of a panel. */
.set-text-first {
  margin-top: 0;
}

/* The line at the top of a form, above its first field. */
.set-intro {
  margin: 0 0 14px;
  font-size: 16px;
}

/* ------------------------------------------------------------ «تصدير كل شيء» (P2: the progress sheet) */

.exp-status {
  margin: 0 0 12px;
  font-size: 17px;
  font-weight: 700;
}

.exp-failed {
  color: var(--late);
}

.exp-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--line);
  overflow: hidden;
}

.exp-bar-fill {
  inline-size: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--brand);
  transition: inline-size 0.2s ease;
}

.exp-result:empty {
  display: none;
}

.exp-result {
  margin-top: 14px;
}

.exp-tip {
  margin: 0 0 10px;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: var(--soon-soft);
  font-weight: 700;
}

.exp-help {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 15px;
}

.exp-links {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}

.exp-links .btn {
  overflow-wrap: anywhere;
}
