/* public/portal.css — internal portal (team-facing) UI styles.
   Distinct from the public report.css, but reuses the rank-sample palette and
   typography (Inter + JetBrains Mono) so the team UI and client reports feel
   like one product. */

:root {
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --bg: #f6f5f3;
  --surface: #ffffff;
  --surface-2: #fbfbfa;
  --ink: #16151a;
  --muted: #6b6a73;
  --faint: #9a99a1;
  --line: #e8e6e2;
  --line-strong: #dcd9d3;
  --brand: #c2455e;
  --brand-ink: #a5334a;
  --brand-tint: #fbeef1;

  --ok: #1f7a4d;
  --ok-bg: #e7f6ee;
  --ok-line: #b6e3cb;
  --err: #b8344b;
  --err-bg: #fbeaed;
  --err-line: #f0c2cc;

  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(20, 19, 26, .04), 0 6px 24px -12px rgba(20, 19, 26, .12);
  --shadow-sm: 0 1px 2px rgba(20, 19, 26, .05);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- top nav ---------- */
.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: var(--shadow-sm);
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -.02em;
  color: var(--ink);
}
.brand:hover { text-decoration: none; }
.brand span { color: var(--brand); margin-left: 2px; }
.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.navlinks > a { color: var(--muted); font-weight: 500; }
.navlinks > a:hover { color: var(--ink); text-decoration: none; }
.nav-user { color: var(--faint); font-size: 13px; display: inline-flex; align-items: center; gap: 8px; }
.nav-logout { color: var(--muted); font-weight: 500; }

/* ---------- layout ---------- */
.portal {
  max-width: 1100px;
  margin: 0 auto;
  padding: 36px 24px 96px;
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
h1 {
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 800;
  letter-spacing: -.025em;
  line-height: 1.1;
}
h2 { font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.back-link { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.head-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* ---------- card ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
/* A card holding a custom dropdown must not clip its (absolutely-positioned)
   menu — let those cards overflow so the open listbox is never cut off. */
.card:has(.dropdown) { overflow: visible; }
.card + .card { margin-top: 20px; }
.card-pad { padding: 22px 24px; }
.card-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--surface-2);
}

/* ---------- tables ---------- */
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover { background: var(--surface-2); }
.data-table .empty-row td {
  text-align: center;
  color: var(--faint);
  padding: 34px 16px;
}
.data-table .empty-row:hover { background: transparent; }
td.mono, .mono { font-family: var(--font-mono); }
td.num { font-family: var(--font-mono); text-align: right; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.cell-strong { font-weight: 600; }
.cell-sub { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.col-actions { text-align: right; white-space: nowrap; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); border-color: var(--faint); text-decoration: none; }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.btn-ghost { border-color: transparent; background: transparent; box-shadow: none; color: var(--muted); padding: 7px 12px; }
.btn-ghost:hover { background: #f1f2f4; color: var(--ink); }
.btn-danger { color: var(--err); border-color: var(--err-line); background: var(--err-bg); }
.btn-danger:hover { background: #f6dade; border-color: var(--err); color: var(--err); }
.btn-sm { font-size: 13px; padding: 7px 12px; }
.btn-block { width: 100%; justify-content: center; padding: 12px 16px; }
.btn.is-busy { opacity: .8; cursor: progress; pointer-events: none; }
.btn.is-busy::after {
  content: '';
  width: 13px; height: 13px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }

/* ---------- forms ---------- */
.form { max-width: 560px; }
.field { display: block; margin-bottom: 18px; }
.field > span:not(.field-hint),
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 7px;
}
.field-hint { display: block; font-weight: 400; font-size: 11px; color: #b6b4bb; margin-top: 5px; line-height: 1.5; }
.input, .field input, .field select, .field textarea, .bulk-add textarea,
.bulk-newname, .bulk-bar input[type="text"] {
  width: 100%;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 11px 13px;
  outline: none;
  box-shadow: var(--shadow-sm);
}
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, .bulk-add textarea:focus,
.bulk-newname:focus, .bulk-bar input[type="text"]:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 69, 94, .12);
}
.field input[readonly] { background: var(--surface-2); color: var(--muted); cursor: not-allowed; }
.field-row { display: flex; gap: 14px; flex-wrap: wrap; }
.field-row > .field { flex: 1 1 200px; }
.form-actions { display: flex; gap: 12px; align-items: center; margin-top: 24px; }

/* inline forms (refresh / rename / delete) */
.inline-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.inline-form input[type="text"] {
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 7px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  outline: none;
}
.inline-form input[type="text"]:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(194, 69, 94, .12); }

/* ----- inline keyword row actions (Edit / Move / Remove) ----- */
.row-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}
.row-actions .inline-form { margin: 0; }
/* keep the inline move dropdown compact inside the table cell */
.row-actions .dropdown { min-width: 116px; }
.row-actions .dropdown-toggle { padding-top: 5px; padding-bottom: 5px; }

/* a JS-driven move auto-submits on change, so hide the fallback button then */
.has-js .inline-move-go { display: none; }

/* Subtle destructive affordance for the × remove button. Scoped to the ghost
   variant so the filled .btn-danger (e.g. the user-delete button) is left as-is. */
.btn-ghost.btn-danger { color: var(--muted); background: transparent; border-color: transparent; }
.btn-ghost.btn-danger:hover { color: var(--brand); border-color: var(--brand); background: transparent; }

/* ----- bulk-add keywords box ----- */
.bulk-add { margin-bottom: 18px; }
.bulk-add > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
  list-style: none;
}
.bulk-add > summary::-webkit-details-marker { display: none; }
.bulk-add > summary::before {
  content: '+ ';
  color: var(--muted);
  font-weight: 700;
}
.bulk-add[open] > summary::before { content: '\2013 '; }
.bulk-add > summary + * { margin-top: 16px; }
/* width/resize/line-height only — border/padding/radius/background/focus + the
   var(--font-sans) 14px font come from the shared input selector list above (the
   textarea is also listed there), so it matches the other form inputs. */
.bulk-add textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
  line-height: 1.5;
}

/* ---------- badges ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-ink);
  border: 1px solid var(--err-line);
}
.badge-muted { background: var(--surface-2); color: var(--faint); border-color: var(--line); }
.badge-ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-line); }
.pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faint);
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 7px;
}

/* ---------- alerts ---------- */
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  animation: alert-in .28s ease both;
}
@keyframes alert-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.alert.is-leaving {
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity .4s ease, transform .4s ease;
}
.alert-error { background: var(--err-bg); border-color: var(--err-line); color: var(--err); }
.alert-ok    { background: var(--ok-bg);  border-color: var(--ok-line);  color: var(--ok); }
.alert-info  { background: #edf3fc; border-color: #bdd2f0; color: #1d52a8; }

/* Inline cell spinner (live refresh) — reuses the btn-spin keyframe */
.cell-spinner {
  display: inline-block;
  width: 13px; height: 13px;
  border: 2px solid var(--line);
  border-top-color: var(--muted);
  border-radius: 50%;
  animation: btn-spin .65s linear infinite;
  vertical-align: middle;
}

/* ---------- cluster blocks (client detail) ---------- */
.cluster-block { margin-top: 22px; }
.cluster-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.cluster-head h3 { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- combined keyword table (client detail) ---------- */
/* A single .data-table groups every cluster: each cluster gets a full-width
   header row (.cluster-row) followed by its keyword rows. */
.kw-combined .cluster-row td {
  background: var(--surface-2);
  padding: 12px 16px;
  border-top: 1px solid var(--line-strong);
}
.kw-combined thead th {
  background: var(--surface-2);
  border-bottom: 1px solid var(--line-strong);
  padding-top: 8px;
  padding-bottom: 8px;
}
.kw-combined .cluster-row:first-child td {
  border-top: 0;          /* keep: avoid a double line under the header */
  padding-top: 10px;      /* sit close to the header (was 16px — too airy) */
}

/* Per-cluster colour tints (N = 0..7, assigned per cluster, cycling). Each
   cluster's label row reads as its own gentle colour band. The extra
   .cluster-tint-N class raises specificity above the base `.cluster-row td`
   rule above, so these override its var(--surface-2) background (padding /
   border-top are inherited from that base rule and left intact). Soft,
   low-saturation (~95% lightness) tints to fit the warm editorial theme;
   keyword data rows stay plain (untinted). */
.kw-combined .cluster-row.cluster-tint-0 td { background: #fbecef; } /* soft rose */
.kw-combined .cluster-row.cluster-tint-1 td { background: #fcefe6; } /* peach / apricot */
.kw-combined .cluster-row.cluster-tint-2 td { background: #fbf3e2; } /* warm gold */
.kw-combined .cluster-row.cluster-tint-3 td { background: #eef4ea; } /* sage green */
.kw-combined .cluster-row.cluster-tint-4 td { background: #e7f3f1; } /* teal */
.kw-combined .cluster-row.cluster-tint-5 td { background: #eaf1f7; } /* sky blue */
.kw-combined .cluster-row.cluster-tint-6 td { background: #eeeef7; } /* periwinkle / indigo */
.kw-combined .cluster-row.cluster-tint-7 td { background: #f4eef6; } /* soft lilac */

.cluster-row-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.cluster-row-label {
  display: flex;
  align-items: center;
  gap: 8px;
}
.cluster-title { font-weight: 700; }
/* the rename form is pushed right by the flex row; keep its input tidy */
.cluster-row .inline-form { flex: 0 0 auto; }
.cluster-row .inline-form input[type="text"] { width: 220px; max-width: 100%; }

/* detected-URL sub-line beneath the keyword (replaces the old keyword_en line);
   modeled on .cell-sub. */
.cell-url { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.cell-url a { font-size: 12px; }

/* numeric Vol column, consistent with the .num right-aligned treatment */
.data-table th.col-vol, .data-table td.col-vol { text-align: right; }

/* Rank column — centred, narrow */
.data-table th.col-rank, .data-table td.col-rank { text-align: center; white-space: nowrap; }

/* Rank position pills */
.rank-pill { display: inline-block; min-width: 2.2em; text-align: center; padding: 2px 7px; border-radius: 5px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.rank-top  { background: var(--ok-bg); color: var(--ok); }
.rank-mid  { background: rgba(202, 138, 4, .12); color: #92400e; }
.rank-low  { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }

/* selection checkbox column (edit mode, leftmost): keep it only as wide as the
   native checkbox it holds. The checkbox itself is left as a native control. */
.data-table th.col-check, .data-table td.col-check { width: 1%; white-space: nowrap; text-align: center; }
.data-table td.col-check input[type="checkbox"] { vertical-align: middle; }

/* bulk-action toolbar: a horizontal bar that sits just above the combined table
   in edit mode. Padding/border/radius/surface mirror the .card-head look. */
.bulk-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  margin-bottom: 14px;
  /* the bar holds the shared .dropdown, whose menu is absolutely positioned and
     would be clipped by an overflow:hidden ancestor — keep it visible (mirrors
     .card:has(.dropdown){overflow:visible}). Never give this bar overflow:hidden. */
  overflow: visible;
}
.bulk-count { color: var(--muted); font-size: 14px; }
.bulk-count strong { color: var(--brand-ink); }
.bulk-move-group { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
/* push the destructive Remove button to the far right of the bar. */
.bulk-bar .js-bulk-remove { margin-left: auto; }
/* width/cap only — border, padding, font, background and the focus ring all come
   from the shared input selector list (this input was added to it). The
   input.bulk-newname compound matches the shared `.bulk-bar input[type="text"]`
   specificity (0,2,1) and, being later in source, wins the width override. */
.bulk-bar input.bulk-newname { width: 160px; max-width: 100%; }
/* disabled state for the bulk buttons (JS adds `disabled` when nothing is
   selected). No pre-existing .btn:disabled rule, so this is additive. */
.btn:disabled, .btn[disabled] { opacity: .5; cursor: not-allowed; }

@media (max-width: 560px) {
  /* The global nth-child(3) hide (below) was written for the old per-cluster
     tables where column 3 was Vol. In the combined table column 3 is the admin
     actions column, so keep it and hide the Vol column instead. */
  .data-table.kw-combined th:nth-child(3),
  .data-table.kw-combined td:nth-child(3) { display: table-cell; }
  .data-table.kw-combined .col-vol { display: none; }
}

/* ---------- meta grid (client detail header) ---------- */
.meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  margin-top: 4px;
}
.meta-grid .k {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--faint);
}
.meta-grid .v { font-size: 15px; font-weight: 600; margin-top: 4px; word-break: break-word; }

/* ---------- auth (login) ---------- */
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.auth-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
}
.auth-brand {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 14px;
}
.auth-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.auth-sub { color: var(--muted); font-size: 14px; margin-bottom: 24px; }

@media (max-width: 560px) {
  .page-head { align-items: flex-start; }
  .data-table th:nth-child(3), .data-table td:nth-child(3) { display: none; }
}

/* ===== Dropdown component (docs/design-rule.md #1) ===== */
/* Restyled to match the report's "Range" dropdown (.dd-* in
   public/assets/report.css): same var(--line) border, var(--radius-sm) radius,
   10px 12px padding, var(--font-sans) at 13px, var(--surface) background,
   var(--ink) color, var(--shadow), SVG chevron, neutral grey hover, and a
   trailing ✓ on the selected option. Both stylesheets share the same CSS
   variables, so values port directly. The only intentional deviation is the
   full-width flex toggle (see below) so it fills the form column. */

.dropdown { position: relative; }

.dropdown-toggle {
  /* DEVIATION (keep): full-width + flex so it fills the form column like the
     text inputs beside it — the report's .dd-btn is a fixed 152px toolbar widget. */
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  text-align: left;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  box-shadow: var(--shadow);
  cursor: pointer;
  outline: none;
}
.dropdown-toggle:focus,
.dropdown-toggle:focus-visible,
.dropdown.is-open .dropdown-toggle {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(194, 69, 94, .12);
}

.dropdown-value { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dropdown-optlabel { display: inline-flex; align-items: baseline; gap: 8px; min-width: 0; }
.dropdown-code { font-family: var(--font-mono); font-size: 11px; letter-spacing: .02em; color: var(--muted); }

/* SVG chevron (matches report .dd-chev); rotates when open. */
.dropdown-caret { width: 14px; height: 14px; color: var(--faint); transition: transform .15s ease; flex: none; }
.dropdown.is-open .dropdown-caret { transform: rotate(180deg); }

.dropdown-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  width: 100%;
  z-index: 50;
  max-height: 280px;
  overflow-y: auto;
  list-style: none;
  margin: 0;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 28px -8px rgba(20, 19, 26, .22);
}
/* The `hidden` attribute keeps the menu display:none — do not override it. */

.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 10px;
  border-radius: 7px;
  font-size: 13px;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
}
.dropdown-option:hover,
.dropdown-option.is-active { background: #f3f2f0; }
.dropdown-option[aria-selected="true"] { color: var(--brand); font-weight: 600; }
.dropdown-option[aria-selected="true"]::after { content: '\2713'; font-size: 11px; }

/* ===== Confirm modal (docs/design-rule.md #3) ===== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(16, 15, 20, .48);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-backdrop[aria-hidden="true"] { display: none; }
.modal-backdrop[aria-hidden="false"] { animation: modal-bg-in .16s ease both; }
.modal-backdrop[aria-hidden="false"] .modal { animation: modal-in .2s cubic-bezier(.34, 1.1, .64, 1) both; }

@keyframes modal-bg-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modal-in {
  from { opacity: 0; transform: scale(.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 48px -8px rgba(16, 15, 20, .28), 0 2px 8px rgba(16, 15, 20, .06);
  padding: 28px 28px 22px;
  max-width: 420px;
  width: 100%;
}

.modal-msg {
  font-size: 15px;
  line-height: 1.55;
  color: var(--ink);
  margin-bottom: 22px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
