/*
 * HORET Control Center.
 *
 * Arabic and RTL first. Logical properties throughout (inline-start rather than
 * left) so the English view is the same stylesheet mirrored rather than a second
 * set of rules that drift apart.
 *
 * Colours are the HORET palette. Every text pair here clears 4.5:1 and every
 * badge carries a word as well as a colour, because a status told only in colour
 * is a status a colour-blind operator cannot read — and these statuses decide
 * whether money moved.
 */

:root {
  --teal: #0f766e;
  --teal-dark: #0b544e;
  --deep: #063f3d;
  --ink: #172a43;
  --slate: #5b6a66;
  --line: #e2ebe8;
  --paper: #f7faf9;
  --white: #ffffff;
  --danger: #b3261e;
  --danger-bg: #fdecea;
  --warn-ink: #8a5a00;
  --warn-bg: #fff6e5;
  --ok-ink: #1c6b43;
  --ok-bg: #e9f6ef;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(6, 63, 61, .05), 0 8px 24px rgba(6, 63, 61, .06);
}

* { box-sizing: border-box; }

/*
 * An explicit display beats the hidden attribute, which is how a field that
 * JavaScript hides stays stubbornly visible. .field sets display:block, so
 * every [hidden] in this file needs this one line to mean what it says.
 */
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Alexandria', 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.65;
  -webkit-text-size-adjust: 100%;
}

html[lang="en"] body { font-family: 'Plus Jakarta Sans', 'Alexandria', system-ui, sans-serif; }
.lang-en { display: none; }
html[lang="en"] .lang-ar { display: none; }
html[lang="en"] .lang-en { display: inline; }

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 100;
  background: var(--deep); color: #fff; padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { inset-inline-start: 0; }

:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; border-radius: 6px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

/* ----------------------------------------------------------------- layout */

.admin-layout { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }

.admin-nav {
  background: var(--deep);
  color: #cfe3e0;
  padding: 20px 14px 14px;
  display: flex; flex-direction: column; gap: 18px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}

.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 14px; border-bottom: 1px solid rgba(255,255,255,.09); }
.brand img { width: 90px; height: auto; }
.brand span { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: #8fb8b3; }

.nav-group-title {
  margin: 0 0 6px; padding-inline-start: 10px;
  font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: #7ea8a3;
}
.nav-group ul { list-style: none; margin: 0 0 4px; padding: 0; display: grid; gap: 2px; }

.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: 10px; color: #d9eae8; font-size: 12.5px;
}
.nav-link:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.nav-link.is-current { background: var(--teal); color: #fff; font-weight: 600; }
.nav-text { flex: 1; }

.nav-icon { width: 7px; height: 7px; border-radius: 2px; background: currentColor; opacity: .5; flex: none; }
.nav-link.is-current .nav-icon { opacity: 1; }

.nav-badge {
  background: #ff7a59; color: #3a1206; font-weight: 700;
  font-size: 10px; min-width: 20px; text-align: center;
  padding: 1px 6px; border-radius: 999px;
}

.nav-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid rgba(255,255,255,.09); }
.who { margin: 0 0 8px; padding-inline-start: 10px; font-size: 11px; color: #a9c9c5; }
.nav-foot-actions { display: flex; gap: 6px; }

.admin-main { padding: 26px clamp(16px, 3vw, 34px) 80px; min-width: 0; }

.admin-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 22px; flex-wrap: wrap;
}
.admin-head h1 { margin: 0; font-size: clamp(19px, 3vw, 25px); letter-spacing: -.01em; }
.view-store { font-size: 11px; color: var(--slate); border: 1px solid var(--line); background: #fff; padding: 7px 13px; border-radius: 999px; }

.nav-toggle { display: none; }

/* ------------------------------------------------------------------ cards */

.section-title { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate); margin: 26px 0 10px; }
.section-title:first-child { margin-top: 0; }
.section-note { margin: -4px 0 12px; font-size: 11.5px; color: var(--slate); max-width: 76ch; }

.card-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }

.stat-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; box-shadow: var(--shadow);
}
a.stat-card:hover { border-color: var(--teal); text-decoration: none; }
.stat-value { font-size: 26px; font-weight: 700; color: var(--deep); line-height: 1.2; }
.stat-value small { font-size: 11px; font-weight: 500; color: var(--slate); margin-inline-start: 5px; }
.stat-label { font-size: 11.5px; color: var(--slate); }

/* Urgency is carried by a border and a word, never by colour alone. */
.stat-card.is-urgent { border-inline-start: 4px solid var(--danger); background: var(--danger-bg); }
.stat-card.is-urgent .stat-value { color: var(--danger); }
.stat-card.is-warn { border-inline-start: 4px solid var(--warn-ink); background: var(--warn-bg); }
.stat-card.is-warn .stat-value { color: var(--warn-ink); }

.stat-lines { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 3px; font-size: 11px; color: var(--slate); }
.stat-lines li { display: flex; justify-content: space-between; gap: 10px; }
.stat-lines b { color: var(--ink); font-weight: 600; }

.two-column { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; align-items: start; margin-top: 22px; }
.stack { display: grid; gap: 18px; }

.panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; box-shadow: var(--shadow); margin-bottom: 18px;
}
.panel h3 { margin: 0 0 12px; font-size: 14px; }

/* ------------------------------------------------------------------ chart */

.chart { display: flex; align-items: flex-end; gap: 5px; height: 150px; padding: 12px 0 0; }
.chart-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 5px; height: 100%; justify-content: flex-end; }
.bar { width: 100%; max-width: 30px; background: var(--teal); border-radius: 5px 5px 0 0; position: relative; min-height: 2px; display: flex; align-items: flex-end; }
.bar-commission { width: 100%; background: #ff9f7e; border-radius: 0 0 5px 5px; }
.chart-day { font-size: 9px; color: var(--slate); }
.chart-key { display: flex; gap: 8px; align-items: center; font-size: 10.5px; color: var(--slate); margin-top: 8px; flex-wrap: wrap; }
.key-gross, .key-commission { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.key-gross { background: var(--teal); }
.key-commission { background: #ff9f7e; margin-inline-start: 10px; }

/* ----------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; }
.data-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 12.5px; }
.data-table th {
  text-align: start; font-size: 10px; letter-spacing: .07em; text-transform: uppercase;
  color: var(--slate); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.data-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: #fafdfc; }
.data-table .num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table.compact td { padding: 8px 12px; }
.data-table tr.is-reversal td { background: var(--danger-bg); }

.mono { font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace; font-size: .92em; }
.strong { font-weight: 700; }
.muted { color: var(--slate); }
.small { font-size: 11px; }
.warn { color: var(--warn-ink); font-weight: 600; }

.result-count { font-size: 11.5px; color: var(--slate); margin: 12px 0; }

/* ----------------------------------------------------------------- badges */

.badge {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; border: 1px solid transparent; white-space: nowrap;
}
.badge-awaiting_payment, .badge-received { background: #eef2f6; color: #3c4a5c; border-color: #d3dde7; }
.badge-proof_uploaded, .badge-under_review, .badge-uploaded, .badge-preparing, .badge-ready {
  background: var(--warn-bg); color: var(--warn-ink); border-color: #f0d9a8;
}
.badge-verified, .badge-approved, .badge-delivered, .badge-confirmed, .badge-sale {
  background: var(--ok-bg); color: var(--ok-ink); border-color: #b9e0cb;
}
.badge-rejected, .badge-cancelled, .badge-expired, .badge-out_of_stock, .badge-reversal {
  background: var(--danger-bg); color: var(--danger); border-color: #f2c2be;
}
.badge-partially_paid, .badge-low_stock, .badge-out_for_delivery, .badge-returned {
  background: #fff0e8; color: #9a4a22; border-color: #f3cdb8;
}
.badge-in_stock, .badge-settlement { background: var(--ok-bg); color: var(--ok-ink); border-color: #b9e0cb; }

/* ------------------------------------------------------------------ forms */

.field { display: block; margin-bottom: 13px; }
.field > span { display: block; font-size: 11px; color: var(--slate); margin-bottom: 5px; font-weight: 600; }
.field input[type="text"], .field input[type="search"], .field input[type="email"],
.field input[type="password"], .field input[type="number"], .field input[type="date"],
.field select, textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 13px; background: #fff; color: var(--ink);
}
.field input:focus, .field select:focus, textarea:focus { border-color: var(--teal); outline-offset: 1px; }
.field.narrow { max-width: 260px; }
.field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 0 14px; }
.req { color: var(--danger); }

.checkbox { display: flex; align-items: flex-start; gap: 9px; margin-bottom: 10px; font-size: 12.5px; cursor: pointer; }
.checkbox input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--teal); flex: none; }

.filters {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; margin-bottom: 16px;
}
.filters .field { margin-bottom: 0; min-width: 140px; flex: 1 1 140px; }

.chip {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 6px 14px; font-size: 12px; color: var(--slate);
}
.chip.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip:hover { text-decoration: none; border-color: var(--teal); }

.primary-button, .secondary-button, .danger-button, .ghost-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px 18px; border-radius: 999px; font: inherit; font-size: 12.5px;
  font-weight: 600; cursor: pointer; border: 1px solid transparent; text-align: center;
}
.primary-button { background: var(--teal); color: #fff; }
.primary-button:hover { background: var(--teal-dark); text-decoration: none; }
.secondary-button { background: #fff; color: var(--deep); border-color: var(--line); }
.secondary-button:hover { border-color: var(--teal); text-decoration: none; }
.danger-button { background: #fff; color: var(--danger); border-color: #f2c2be; }
.danger-button:hover { background: var(--danger-bg); text-decoration: none; }
.ghost-button { background: rgba(255,255,255,.08); color: inherit; font-size: 11px; padding: 6px 12px; }
.ghost-button:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.primary-button.wide { width: 100%; }
button:disabled, .is-busy { opacity: .55; cursor: not-allowed; }

.linkish { background: none; border: 0; color: var(--teal); font: inherit; cursor: pointer; padding: 0; }

.sticky-save {
  position: sticky; bottom: 0; background: rgba(247,250,249,.94);
  backdrop-filter: blur(6px); padding: 14px 0; border-top: 1px solid var(--line); margin-top: 10px;
}

/* --------------------------------------------------------------- notices */

.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-size: 12.5px; border-inline-start: 4px solid; }
.notice-success { background: var(--ok-bg); color: var(--ok-ink); border-color: var(--ok-ink); }
.notice-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.notice-info { background: #eef4f9; color: #2b4a63; border-color: #4a7fa5; }
.notice ul.plain { list-style: none; margin: 8px 0 0; padding: 0; }

.empty-state {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 26px; text-align: center; color: var(--slate);
}
.empty-state.large { padding: 54px 26px; }
.empty-state h2 { margin: 0 0 8px; color: var(--ink); font-size: 16px; }
.empty-state p { margin: 0 auto 14px; max-width: 52ch; font-size: 12.5px; }

/* ------------------------------------------------------------ order detail */

.breadcrumb { font-size: 11.5px; color: var(--slate); margin: 0 0 12px; }
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.order-number { margin: 0; font-size: 20px; font-family: ui-monospace, Menlo, Consolas, monospace; }
.order-badges { display: flex; gap: 7px; flex-wrap: wrap; }

.facts { margin: 0; display: grid; gap: 9px; }
.facts > div { display: grid; grid-template-columns: 108px 1fr; gap: 10px; font-size: 12.5px; }
.facts dt { color: var(--slate); font-size: 11px; }
.facts dd { margin: 0; }

.totals { margin: 14px 0 0; display: grid; gap: 6px; font-size: 12.5px; }
.totals > div { display: flex; justify-content: space-between; gap: 12px; }
.totals dt { color: var(--slate); }
.totals dd { margin: 0; font-variant-numeric: tabular-nums; }
.totals .grand { border-top: 1px solid var(--line); padding-top: 7px; font-weight: 700; font-size: 14px; }
.totals.commission { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 12px; }

.blocked-note { font-size: 11.5px; color: var(--warn-ink); background: var(--warn-bg); padding: 9px 12px; border-radius: 10px; margin-top: 10px; }

.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.timeline li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; position: relative; }
.timeline li:not(:last-child)::before {
  content: ''; position: absolute; inset-inline-start: 6px; top: 16px; bottom: -14px;
  width: 2px; background: var(--line);
}
.timeline-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--teal); margin-top: 5px; }
.timeline-action { margin: 0; font-size: 12.5px; }
.timeline p { margin: 0; }

/* --------------------------------------------------------- payment proofs */

.verify-banner {
  background: var(--warn-bg); border: 1px solid #f0d9a8; border-inline-start: 5px solid var(--warn-ink);
  border-radius: var(--radius); padding: 16px 20px; margin-bottom: 18px;
}
.verify-banner h2 { margin: 0 0 6px; font-size: 15px; color: var(--warn-ink); }
.verify-banner p { margin: 0; font-size: 12.5px; color: #6b4a0d; max-width: 84ch; }

.proof-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; margin-bottom: 16px; box-shadow: var(--shadow);
}
.proof-card.has-duplicate { border-inline-start: 5px solid var(--danger); }
.proof-head { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.proof-amount { text-align: end; }
.proof-amount strong { display: block; font-size: 17px; color: var(--deep); }
.proof-body { display: grid; grid-template-columns: 260px 1fr; gap: 22px; align-items: start; }
.proof-file img { width: 100%; border-radius: 10px; border: 1px solid var(--line); }
.step { font-size: 11.5px; color: var(--slate); font-weight: 600; margin: 4px 0 8px; }
.decision-buttons { display: flex; gap: 9px; flex-wrap: wrap; }
.reject-form { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line); }
.mismatch {
  background: var(--danger-bg); color: var(--danger); border: 1px solid #f2c2be;
  border-radius: 10px; padding: 9px 12px; font-size: 12px; font-weight: 600; margin: 0 0 12px;
}
.method-block { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.method-block:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }

.pagination { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 16px; }
.page { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 5px 11px; font-size: 12px; }
.page.is-current { background: var(--teal); border-color: var(--teal); color: #fff; }

/* ------------------------------------------------------------------ login */

.login-body { display: grid; place-items: center; min-height: 100vh; background: linear-gradient(160deg, #063f3d, #0f766e); padding: 20px; }
.login-shell { width: min(420px, 100%); }
.login-card { background: #fff; border-radius: 22px; padding: 34px clamp(22px, 5vw, 38px); box-shadow: 0 24px 60px rgba(0,0,0,.22); }
.login-logo { width: 112px; height: auto; display: block; margin: 0 auto 14px; }
.login-kicker { text-align: center; font-size: 9px; letter-spacing: .17em; text-transform: uppercase; color: var(--slate); margin: 0 0 4px; }
.login-card h1 { text-align: center; margin: 0 0 22px; font-size: 19px; }
.login-links { text-align: center; margin: 16px 0 0; font-size: 11.5px; color: var(--slate); display: flex; gap: 8px; justify-content: center; align-items: center; }
.login-foot { text-align: center; color: #bdd8d5; font-size: 11.5px; margin-top: 18px; }
.login-foot a { color: #fff; text-decoration: underline; }
.forbidden-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.login-body .ghost-button { background: #f2f6f5; color: var(--deep); border-color: var(--line); }

/* ----------------------------------------------------------------- mobile */

@media (max-width: 1000px) {
  .two-column { grid-template-columns: 1fr; }
  .proof-body { grid-template-columns: 1fr; }
  .proof-file img { max-width: 320px; }
}

@media (max-width: 780px) {
  .admin-layout { grid-template-columns: 1fr; }

  .nav-toggle {
    display: grid; place-items: center; position: fixed; top: 12px; inset-inline-end: 12px;
    z-index: 40; width: 44px; height: 44px; border-radius: 12px;
    background: var(--deep); border: 0; cursor: pointer;
  }
  .bars, .bars::before, .bars::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; }
  .bars::before, .bars::after { content: ''; position: relative; }
  .bars::before { top: -6px; }
  .bars::after { top: 4px; }

  .admin-nav {
    position: fixed; inset-block: 0; inset-inline-start: 0; width: min(276px, 84vw);
    z-index: 39; transform: translateX(-110%); transition: transform .2s ease; height: 100dvh;
  }
  html[dir="rtl"] .admin-nav { transform: translateX(110%); }
  body.nav-open .admin-nav { transform: translateX(0); }

  .admin-main { padding: 64px 16px 70px; }

  /* Tables become stacked cards rather than a horizontal scroll nobody finds. */
  .data-table.orders, .data-table.orders thead, .data-table.orders tbody,
  .data-table.orders tr, .data-table.orders td { display: block; width: 100%; }
  .data-table.orders thead { display: none; }
  .data-table.orders tr { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 6px 4px; }
  .data-table.orders td { border: 0; display: flex; justify-content: space-between; gap: 14px; padding: 7px 12px; text-align: start; }
  .data-table.orders td::before {
    content: attr(data-label); color: var(--slate); font-size: 10px;
    text-transform: uppercase; letter-spacing: .06em; flex: none;
  }
  .data-table.orders .num { text-align: end; }

  .facts > div { grid-template-columns: 1fr; gap: 2px; }
  .filters .field { flex-basis: 100%; }
}

/* ------------------------------------------------------- media and content */

.media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.media-item { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.media-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: #eef4f3; }
.media-item figcaption { padding: 10px 12px; display: grid; gap: 5px; }
.media-name { margin: 0; font-size: 11.5px; font-weight: 600; overflow-wrap: anywhere; }
.media-item .field { margin: 0; }
.media-item input.copyable { padding: 4px 8px; font-size: 11px; text-align: center; }

.preview-image { width: 100%; max-width: 260px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; display: block; }
.image-placeholder {
  width: 100%; max-width: 260px; aspect-ratio: 4 / 3; border: 1px dashed var(--line);
  border-radius: 10px; display: grid; place-items: center; color: var(--slate);
  font-size: 11.5px; margin-bottom: 12px; background: #fbfdfc;
}
.row-thumb { width: 34px; height: 34px; object-fit: cover; border-radius: 7px; border: 1px solid var(--line); vertical-align: middle; margin-inline-end: 8px; }

.tabs { display: flex; gap: 6px; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; flex-wrap: wrap; }
.tab {
  border: 1px solid var(--line); background: #fff; border-radius: 999px;
  padding: 7px 15px; font: inherit; font-size: 12px; color: var(--slate); cursor: pointer;
}
.tab.is-current { background: var(--teal); border-color: var(--teal); color: #fff; font-weight: 600; }

.password-row { display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.password-row input {
  flex: 1 1 240px; font-family: ui-monospace, Menlo, Consolas, monospace;
  letter-spacing: .02em;
}

.small-button { padding: 5px 11px; font-size: 11px; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form select { padding: 5px 9px; font-size: 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; }
.row-actions { display: flex; gap: 6px; flex-wrap: wrap; }

input[type="file"] {
  width: 100%; padding: 9px 12px; border: 1px dashed var(--line); border-radius: 10px;
  background: #fbfdfc; font: inherit; font-size: 12px;
}

/* Setting somebody else's password.
   Folded shut by default: it is a rare action sitting in a row of common ones,
   and an open password field on every row invites a mistyped one. */
.password-setter { flex: 1 0 100%; margin-top: 4px; }
.password-setter > summary { display: inline-block; cursor: pointer; font-size: 12px; font-weight: 600; color: var(--slate); padding: 4px 0; }
.password-setter > summary:hover { color: var(--teal); }
.password-setter[open] > summary { margin-bottom: 6px; }
.stacked-form { max-width: 320px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }
.stacked-form .field { margin-bottom: 8px; }
.stacked-form .field input { width: 100%; }
