/* ============================================================
   Meeting Desk — design system
   Fonts: Space Grotesk (display) · IBM Plex Sans (body/UI) · IBM Plex Mono (data)
   ============================================================ */

:root {
  --ink:          #16282E;
  --ink-soft:     #3A4D52;
  --muted:        #647571;
  --paper:        #E9EBE6;
  --surface:      #FFFFFF;
  --surface-2:    #F4F5F1;
  --line:         #D6DAD2;
  --line-soft:    #E4E7E0;
  --petrol:       #0F6B5F;
  --petrol-deep:  #0A4A42;
  --petrol-wash:  #E4EEEB;
  --ochre:        #B5762A;
  --ochre-wash:   #F3E9D8;
  --danger:       #A23B36;
  --radius:       7px;
  --radius-lg:    12px;
  --shadow:       0 1px 2px rgba(22,40,46,.05), 0 8px 30px rgba(22,40,46,.06);
  --shadow-pop:   0 6px 16px rgba(22,40,46,.10), 0 20px 50px rgba(22,40,46,.12);
  --mono:         'IBM Plex Mono', ui-monospace, monospace;
  --sans:         'IBM Plex Sans', system-ui, sans-serif;
  --disp:         'Space Grotesk', 'IBM Plex Sans', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button { font-family: inherit; }
::selection { background: var(--petrol-wash); }

/* ---------- focus ring (petrol, keyboard-only) ---------- */
:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}

/* ============================================================
   Shared atoms
   ============================================================ */
.eyebrow {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mono { font-family: var(--mono); }

/* ---- buttons ---- */
.btn {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
  background: var(--petrol);
  color: #fff;
  border: 1px solid var(--petrol);
  padding: 11px 20px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease, transform .05s ease;
}
.btn:hover  { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn--ghost:hover { background: var(--surface-2); border-color: var(--muted); }

.btn--sm { padding: 7px 13px; font-size: 12.5px; }

.btn--danger-ghost {
  background: transparent;
  color: var(--danger);
  border: 1px solid transparent;
}
.btn--danger-ghost:hover { background: #F6E9E8; }

.linkbtn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
}
.linkbtn:hover { color: var(--ink); background: var(--surface-2); }

/* ---- form controls ---- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  letter-spacing: .01em;
}
.field .hint { font-size: 11px; color: var(--muted); }

input, select, textarea {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
input::placeholder, textarea::placeholder { color: #9AA7A2; }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--petrol);
  box-shadow: 0 0 0 3px var(--petrol-wash);
}

select {
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23647571' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 34px;
}
textarea { resize: vertical; min-height: 64px; }

/* ---- status tags ---- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 100px;
  white-space: nowrap;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; }
.tag--pending  { background: var(--ochre-wash); color: #7C4F16; }
.tag--pending::before  { background: var(--ochre); }
.tag--approved { background: var(--petrol-wash); color: var(--petrol-deep); }
.tag--approved::before { background: var(--petrol); }

.err { color: var(--danger); font-size: 12.5px; margin-top: 8px; min-height: 1px; }

/* ============================================================
   Login page
   ============================================================ */
.stage {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.stage__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
}
.login {
  position: relative;
  width: 100%;
  max-width: 392px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 38px 36px 32px;
}
.login__top {
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 2px;
  background: var(--petrol);
  border-radius: 2px;
}
.brand { display: flex; align-items: center; gap: 11px; margin-bottom: 30px; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--paper);
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -.02em;
}
.brand__name {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -.01em;
}
.brand__name span { color: var(--muted); font-weight: 500; }

.login h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 21px;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.login p.sub  { margin: 0 0 24px; color: var(--muted); font-size: 13.5px; }
.login .field { margin-bottom: 14px; }
.login .btn   { width: 100%; margin-top: 8px; }
.login__note {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}

/* ============================================================
   App shell — topbar
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar__accent { height: 2px; background: var(--petrol); }
.topbar__row {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 20px;
}

/* nav tabs */
.nav { display: flex; gap: 4px; margin-left: 14px; }
.nav__tab {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13.5px;
  letter-spacing: .01em;
  background: none;
  border: none;
  color: var(--muted);
  cursor: pointer;
  padding: 8px 13px;
  border-radius: var(--radius);
  position: relative;
}
.nav__tab:hover { color: var(--ink); background: var(--surface-2); }
.nav__tab[aria-current="true"] { color: var(--petrol-deep); }
.nav__tab[aria-current="true"]::after {
  content: "";
  position: absolute;
  left: 13px; right: 13px;
  bottom: -19px;
  height: 2px;
  background: var(--petrol);
}

.spacer { flex: 1; }
.user { display: flex; align-items: center; gap: 10px; }
.user__meta { text-align: right; line-height: 1.25; }
.user__name { font-size: 13px; font-weight: 600; }
.user__role {
  font-family: var(--disp);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--petrol);
}
.avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--petrol-wash);
  color: var(--petrol-deep);
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================================
   Page layout
   ============================================================ */
.page { max-width: 1080px; margin: 0 auto; padding: 30px 24px 80px; }
.view { display: none; }
.view.is-active {
  display: block;
  animation: rise .4s cubic-bezier(.2,.7,.2,1) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

/* ============================================================
   Composer (new-request / edit form)
   ============================================================ */
.composer {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 34px;
}
.composer__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--line-soft);
}
.composer__head h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  letter-spacing: -.01em;
}
.composer__head .editing {
  display: none;
  font-size: 12px;
  color: var(--ochre);
  font-weight: 600;
}
.composer__body { padding: 20px 24px 6px; }

/* field groups */
.group { margin-bottom: 4px; }
.group + .group {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px dashed var(--line-soft);
}
.group__label { margin-bottom: 13px; }

.grid { display: grid; gap: 15px 16px; }
.g-primary { grid-template-columns: 1.4fr 1fr .9fr; }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.span-2 { grid-column: span 2; }
.full    { grid-column: 1 / -1; }

.composer__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 24px;
  background: var(--surface-2);
  border-top: 1px solid var(--line-soft);
}
.composer__foot .note { font-size: 12px; color: var(--muted); }
.foot-actions { display: flex; gap: 10px; }

/* ============================================================
   Partner combobox / typeahead
   ============================================================ */
.combo { position: relative; }
.combo__menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 20;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-pop);
  max-height: 236px;
  overflow: auto;
  padding: 5px;
  display: none;
}
.combo.is-open .combo__menu { display: block; }
.combo__opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.combo__opt:hover, .combo__opt.is-active { background: var(--petrol-wash); }
.combo__opt mark  { background: none; color: var(--petrol-deep); font-weight: 600; }
.combo__opt .flag { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.combo__add {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 11px;
  margin-top: 3px;
  border-top: 1px solid var(--line-soft);
  color: var(--petrol-deep);
  font-size: 13px;
  cursor: pointer;
  border-radius: 6px;
  font-weight: 500;
}
.combo__add:hover { background: var(--petrol-wash); }
.combo__empty { padding: 11px; color: var(--muted); font-size: 13px; }

/* ============================================================
   Ledger — the geography-anchored signature element
   ============================================================ */
.ledger__head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.ledger__head h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  letter-spacing: -.01em;
}
.count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 2px 9px;
}
.ledger { display: flex; flex-direction: column; gap: 8px; }

/* entry row */
.entry {
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--ochre);   /* ochre = to-be-approved; petrol = approved */
  border-radius: var(--radius);
  padding: 14px 16px 14px 15px;
  box-shadow: var(--shadow);
  position: relative;
  transition: border-color .15s, box-shadow .15s;
}
.entry--approved { border-left-color: var(--petrol); }
.entry:hover { box-shadow: var(--shadow-pop); }
.entry:hover .entry__actions { opacity: 1; }

/* ISO country code — the geography anchor */
.iso {
  font-family: var(--mono);
  font-weight: 500;
  font-size: 18px;
  color: var(--ink);
  letter-spacing: .02em;
  line-height: 1;
}
.iso small {
  display: block;
  font-family: var(--disp);
  font-size: 9px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
  font-weight: 600;
}

.entry__main { min-width: 0; }
.entry__title { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.entry__partner { font-weight: 600; font-size: 15px; }
.entry__client  { color: var(--muted); font-size: 14px; }
.entry__client::before { content: "·"; margin-right: 9px; color: var(--line); }

.typechip {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-soft);
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  padding: 2px 7px;
  border-radius: 5px;
}
.entry__meta {
  display: flex;
  gap: 18px;
  margin-top: 7px;
  font-size: 12.5px;
  color: var(--muted);
  flex-wrap: wrap;
}
.entry__meta b { font-family: var(--mono); font-weight: 500; color: var(--ink-soft); }

.entry__right { display: flex; align-items: center; gap: 14px; }
.entry__actions { display: flex; gap: 4px; opacity: 0; transition: opacity .15s; }
.iconbtn {
  width: 30px; height: 30px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: none;
  border: 1px solid transparent;
  cursor: pointer;
  color: var(--muted);
}
.iconbtn:hover { background: var(--surface-2); color: var(--ink); border-color: var(--line); }
.iconbtn--danger:hover { color: var(--danger); background: #F6E9E8; border-color: #EAD3D1; }

/* empty state */
.empty {
  text-align: center;
  padding: 54px 20px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  color: var(--muted);
}
.empty h3 {
  font-family: var(--disp);
  color: var(--ink);
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 600;
}

/* ============================================================
   Admin page
   ============================================================ */
.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 20px 22px;
}
.card h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 16px;
  margin: 0 0 3px;
  letter-spacing: -.01em;
}
.card .desc { color: var(--muted); font-size: 12.5px; margin: 0 0 16px; }

.inline-form { display: flex; gap: 8px; margin-bottom: 14px; }
.inline-form input, .inline-form select { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: 100px;
  padding: 5px 6px 5px 12px;
  font-size: 13px;
}
.chip.is-off { opacity: .5; }
.chip__x {
  width: 18px; height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}
.chip__x:hover { background: var(--line); color: var(--ink); }

.typelist { display: flex; flex-direction: column; gap: 8px; }
.typerow { display: flex; align-items: center; gap: 10px; }
.typerow .code {
  font-family: var(--mono);
  font-size: 13px;
  width: 84px;
  color: var(--petrol-deep);
  flex-shrink: 0;
}
.typerow input { flex: 1; }

.formline { display: flex; flex-direction: column; gap: 11px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* ============================================================
   Admin page header
   ============================================================ */
.admin-header {
  margin-bottom: 28px;
}
.admin-header h1 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 22px;
  margin: 0 0 4px;
  letter-spacing: -.01em;
}
.admin-header p {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0;
}

/* ============================================================
   Toast notification
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: var(--paper);
  font-size: 13.5px;
  font-weight: 500;
  padding: 12px 18px;
  border-radius: 100px;
  box-shadow: var(--shadow-pop);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 10px;
}
.toast.is-on { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--petrol);
  flex-shrink: 0;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 820px) {
  .g-primary, .g-3, .g-2 { grid-template-columns: 1fr; }
  .span-2 { grid-column: auto; }
  .admin-grid { grid-template-columns: 1fr; }

  .entry { grid-template-columns: 46px 1fr; gap: 12px; }
  .entry__right {
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line-soft);
  }
  .entry__actions { opacity: 1; } /* always visible on touch */

  .nav { margin-left: 0; }
  .user__meta { display: none; }

  .login { padding: 32px 24px 28px; }
}

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

/* ============================================================
   In-person badge (ledger entry)
   ============================================================ */
.badge-inperson {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--petrol-deep);
  background: var(--petrol-wash);
  border: 1px solid #c4dbd6;
  padding: 2px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* ============================================================
   In-person toggle (form)
   ============================================================ */
.toggle-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  height: 42px;
}
.toggle-wrap input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 36px;
  height: 20px;
  background: var(--line);
  border-radius: 100px;
  border: none;
  position: relative;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: background .2s ease;
}
.toggle-wrap input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
  transition: transform .2s ease;
}
.toggle-wrap input[type="checkbox"]:checked {
  background: var(--petrol);
}
.toggle-wrap input[type="checkbox"]:checked::after {
  transform: translateX(16px);
}
.toggle-wrap input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--petrol);
  outline-offset: 2px;
}
.toggle-wrap .toggle-label {
  font-size: 14px;
  color: var(--muted);
  user-select: none;
}
.toggle-wrap:has(input:checked) .toggle-label {
  color: var(--petrol-deep);
  font-weight: 500;
}

/* ============================================================
   Create-new-client inline panel
   ============================================================ */
.new-client-panel {
  background: var(--petrol-wash);
  border: 1px solid #c4dbd6;
  border-radius: var(--radius);
  padding: 16px 18px;
  margin-top: 8px;
  grid-column: 1 / -1;
}
.new-client-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.new-client-panel__head .eyebrow { color: var(--petrol-deep); }

.contact-rows { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 10px; }
.contact-row {
  display: flex;
  gap: 6px;
  align-items: center;
}
.contact-row .cr-inputs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.4fr 1fr;
  gap: 6px;
  flex: 1;
}
.contact-row .cr-inputs input {
  font-size: 13px;
  padding: 7px 9px;
}
.contact-row .cr-remove {
  flex-shrink: 0;
}

@media (max-width: 820px) {
  .contact-row .cr-inputs {
    grid-template-columns: 1fr 1fr;
  }
}

/* ============================================================
   To-confirm view
   ============================================================ */
.confirm-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}
.confirm-head h2 {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 18px;
  margin: 0;
  letter-spacing: -.01em;
}

/* Confirm button on entry rows */
.btn--confirm {
  font-family: var(--disp);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: .01em;
  background: var(--petrol);
  color: #fff;
  border: 1px solid var(--petrol);
  padding: 6px 13px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s ease;
  white-space: nowrap;
}
.btn--confirm:hover { background: var(--petrol-deep); border-color: var(--petrol-deep); }
.btn--confirm:focus-visible { outline: 2px solid var(--petrol); outline-offset: 3px; }

/* ============================================================
   Admin — client list
   ============================================================ */
.client-list { display: flex; flex-direction: column; gap: 8px; }
.client-item {
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.client-item__row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.client-item__name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.client-item__meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.client-item.is-off { opacity: .55; }

.client-edit-panel {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.client-edit-panel .field label { font-size: 11px; }
.client-edit-panel .field input,
.client-edit-panel .field select {
  font-size: 13px;
  padding: 7px 9px;
}
.client-edit-panel .edit-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ============================================================
   Admin — users & roles panel
   ============================================================ */
.user-list { display: flex; flex-direction: column; gap: 8px; }
.user-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.user-item__info { flex: 1; min-width: 0; }
.user-item__name { font-weight: 600; font-size: 13.5px; }
.user-item__email { font-size: 12px; color: var(--muted); }
.user-item select {
  font-size: 13px;
  padding: 6px 28px 6px 9px;
  width: auto;
}
.user-item.is-inactive { opacity: .5; }
