/* ============================================================
   TransferTed Portal: admin.css
   The Workspaces area (Areas/Admin), in the portal's own language.

   Loads LAST, after transferted-theme.css, site.css, secure-upload.css and
   portal.css, so a bare global selector here would repaint the whole
   application. EVERY selector in this file therefore carries a .tta- token.

   Selectors that name a class from outside the namespace are all ANCHORED to a
   .tta- class in the same selector, and there are only four families:

     .tta-field .form-control, .tta-field .form-select,
     .tta-choice .form-check-input, .tta-issue .form-select,
     .tta-tokenact .form-control
                          the house form controls, dressed rather than replaced,
                          so focus rings and invalid states stay the theme's.
     .tta-summary.validation-summary-valid
                          MVC's validation summary renders on EVERY page load and
                          carries this class when it has nothing to say. It used
                          to wear .alert-danger, so a fresh Create form opened
                          with an empty red band above the first field. Hidden.
     .tta-* .bi           bootstrap icons, each anchored on its .tta- parent.
     .tta-* .btn          the house buttons, sized inside a panel head or a table
                          row. Colour, focus and disabled state stay the theme's.

   COLOUR. Only the --mv-* tokens and neutral tints of them. Green is the brand
   mark and is never a letterform on a light ground: here it is a fill, a rule or
   a dot, and where a green-ish word is wanted it is --mv-cyan (#047857, 5.5:1 on
   white). Charcoal carries importance; grey carries everything else.

   STATE. Every chip is charcoal type on a pale tint with a coloured dot, which
   is the construction the portal's own page message uses. So no state in this
   area is told by colour alone: the dot says it twice, the word says it plainly,
   and charcoal clears 16:1 on the palest of these grounds.
   ============================================================ */

.tta {
  --tta-radius:     14px;
  --tta-radius-lg:  18px;
  --tta-radius-sm:  10px;

  /* One type scale, the portal's own, so a heading here is the same size as a
     heading on the dashboard rather than a near miss. */
  --tta-fs-xs:      0.78rem;
  --tta-fs-sm:      0.85rem;
  --tta-fs-md:      0.95rem;
  --tta-fs-lg:      1.05rem;
  --tta-fs-xl:      1.15rem;

  --tta-hair:       1px solid var(--mv-silver);
  --tta-lift:       0 1px 2px rgba(16, 24, 40, 0.05), 0 10px 22px -20px rgba(16, 24, 40, 0.6);
  --tta-lift-hover: 0 1px 2px rgba(16, 24, 40, 0.05), 0 26px 44px -30px rgba(16, 24, 40, 0.45);
  --tta-measure:    62ch;

  padding-bottom: 1.5rem;
}

/* ── The area's own masthead ────────────────────────────────
   No heading of its own: every screen below carries the page's one h1, so this
   is the eyebrow that says where you are standing, and the switcher between the
   four screens. */
.tta-masthead {
  padding-bottom: 1.1rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
  border-bottom: var(--tta-hair);
}

.tta-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mv-iron);          /* 4.83:1 on white */
  margin-bottom: 0.9rem;
}

.tta-eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mv-ink);
  flex: 0 0 auto;
}

/* The eyebrow keeps a line to itself. Both it and the tab strip below are
   inline-level, so without this they share one line and the label sits wedged
   against the switcher. */
.tta-masthead .tta-eyebrow {
  display: flex;
  width: fit-content;
}

/* Four screens, one segmented control on a fog track. The current one is a white
   card standing proud of the track, which is the cue that survives a projector;
   charcoal type and aria-current say it again. */
/* inline-flex, so the track hugs the four tabs instead of painting a grey band
   across a 1440px column. max-width keeps it scrollable rather than overflowing
   once the column is narrower than the four of them. */
.tta-tabs {
  display: inline-flex;
  max-width: 100%;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0.3rem;
  background: var(--mv-fog);
  border-radius: var(--tta-radius);
  overflow-x: auto;
  scrollbar-width: thin;
}

.tta-tabs__item { flex: 0 0 auto; }

.tta-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-height: 40px;
  padding: 0.45rem 0.9rem;
  border-radius: var(--tta-radius-sm);
  font-size: var(--tta-fs-sm);
  font-weight: 600;
  color: var(--mv-graphite);      /* 9.37:1 on the fog track */
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.tta-tab .bi { font-size: 1rem; line-height: 1; color: var(--mv-iron); }

.tta-tab:hover {
  background: rgba(255, 255, 255, 0.7);
  color: var(--mv-ink);
}

.tta-tab.is-current {
  background: var(--mv-white);
  color: var(--mv-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 6px 14px -12px rgba(16, 24, 40, 0.6);
}

.tta-tab.is-current .bi { color: var(--mv-ink); }

/* ── Page header ────────────────────────────────────────────*/
.tta-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-bottom: 1.25rem;
  margin-bottom: clamp(1.25rem, 2.5vw, 1.75rem);
  border-bottom: var(--tta-hair);
}

.tta-head__text { min-width: 0; }

.tta-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--mv-ink);
  margin: 0 0 0.4rem;
}

.tta-lede {
  font-size: var(--tta-fs-md);
  line-height: 1.65;
  color: var(--mv-iron);
  max-width: var(--tta-measure);
  margin: 0;
}

/* A reveal control that lives inside a sentence. It is a button because it drives
   a collapse, and it is deep green rather than the theme's link green: #00B32F
   measures 2.68:1 on white, and a green letterform on a light ground is twice
   forbidden. --mv-cyan is 5.48:1, with the brand green kept as the underline. */
.tta-morebtn {
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 600;
  color: var(--mv-cyan);
  text-decoration: underline;
  text-decoration-color: var(--mv-blue);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  cursor: pointer;
}

.tta-morebtn:hover { color: var(--mv-cyan-hover); }

.tta-head__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

/* An action inside a header row is often a form, and a form is a block. This
   keeps it on the same line as the buttons beside it. */
.tta-head__actions form { margin: 0; }

/* Breadcrumb. Quiet by design: it is a way back, not a heading. */
.tta-crumbs {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
  font-size: var(--tta-fs-sm);
  color: var(--mv-iron);
  margin-bottom: 1rem;
}

.tta-crumbs a {
  color: var(--mv-iron);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.tta-crumbs a:hover {
  color: var(--mv-ink);
  border-bottom-color: var(--mv-slate);
}

.tta-crumbs__sep { color: var(--mv-slate); }
.tta-crumbs__here { color: var(--mv-graphite); font-weight: 600; }

/* The few facts that belong beside a record's name. */
.tta-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 2rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.tta-facts li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.tta-facts__label {
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mv-iron);
}

.tta-facts__value {
  font-size: var(--tta-fs-md);
  font-weight: 600;
  color: var(--mv-ink);
  font-variant-numeric: tabular-nums;
  overflow-wrap: anywhere;
}

/* ── Panels ─────────────────────────────────────────────────
   One surface for everything: white, a hairline, a soft shadow. A panel does not
   lift on hover, because a panel is not a target. The cards that ARE targets do. */
.tta-panel {
  background: var(--mv-white);
  border: var(--tta-hair);
  border-radius: var(--tta-radius-lg);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  margin-bottom: 1.25rem;
}

.tta-panel:last-child { margin-bottom: 0; }

.tta-panel__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 1.15rem 1.35rem;
  border-bottom: var(--tta-hair);
}

.tta-panel__title {
  font-size: var(--tta-fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mv-ink);
  margin: 0;
}

.tta-panel__sub {
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-iron);
  max-width: var(--tta-measure);
  margin: 0.3rem 0 0;
}

.tta-panel__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  flex-shrink: 0;
}

.tta-panel__body { padding: 1.35rem; }
.tta-panel__body--tight { padding: 1rem 1.35rem; }

.tta-panel__foot {
  padding: 1.15rem 1.35rem;
  border-top: var(--tta-hair);
  background: var(--mv-snow);
  border-radius: 0 0 var(--tta-radius-lg) var(--tta-radius-lg);
}

.tta-panel__empty {
  padding: 1.35rem;
  font-size: var(--tta-fs-md);
  line-height: 1.65;
  color: var(--mv-iron);
  max-width: var(--tta-measure);
  margin: 0;
}

/* A quiet line of explanation under a panel or a table. */
.tta-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-iron);
  max-width: var(--tta-measure);
  margin: 0.85rem 0 0;
}

.tta-hint .bi { color: var(--mv-mist); line-height: 1.5; flex: 0 0 auto; }
.tta-hint a { color: var(--mv-cyan); font-weight: 600; }

/* ── Chips ──────────────────────────────────────────────────
   Charcoal type on a pale tint, with a coloured dot. The dot is a second cue, so
   no state rests on colour alone, and charcoal on the palest of these grounds
   still measures better than 16:1. */
.tta-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tta-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1;
  padding: 0.38rem 0.68rem;
  border-radius: 50rem;
  white-space: nowrap;
  color: var(--mv-ink);
  background: var(--mv-fog);
  border: 1px solid var(--mv-silver);
}

.tta-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--mv-mist);
  flex: 0 0 auto;
}

/* Working as intended: active, enrolled, received, completed. */
.tta-chip--ok { background: var(--mv-blue-lt); border-color: var(--mv-blue-mid); }
.tta-chip--ok .tta-chip__dot { background: var(--mv-blue); }

/* Under way right now. Charcoal fill, because this is the one state an
   administrator scans a token table for. */
.tta-chip--busy {
  background: var(--mv-ink);
  color: var(--mv-white);          /* 17.40:1 */
  border-color: var(--mv-ink);
}

.tta-chip--busy .tta-chip__dot { background: var(--mv-blue); }

/* Waiting on somebody else. Nothing is wrong yet. */
.tta-chip--wait { background: var(--mv-white); border-color: var(--mv-slate); }
.tta-chip--wait .tta-chip__dot { background: var(--mv-iron); }

/* Worth a look. */
.tta-chip--warn { background: var(--mv-warning-lt); border-color: var(--mv-warning); }
.tta-chip--warn .tta-chip__dot { background: var(--mv-warning); }

/* Stopped, refused or spent. */
.tta-chip--stop { background: var(--mv-danger-lt); border-color: var(--mv-danger); }
.tta-chip--stop .tta-chip__dot { background: var(--mv-danger); }

/* Switched off deliberately. Not a fault, so never red. */
.tta-chip--off { color: var(--mv-graphite); background: var(--mv-fog); border-color: var(--mv-iron); }
.tta-chip--off .tta-chip__dot { background: var(--mv-iron); }

/* A stream this workspace is licensed for. A licence is an identity, not a
   state, so it stays out of the colour scheme. */
.tta-chip--tag {
  background: var(--mv-white);
  border-color: var(--mv-slate);
  color: var(--mv-graphite);
  font-weight: 600;
  letter-spacing: 0;
  white-space: normal;
}

/* Which engine runs it. Charcoal, the same identity colour the dashboard uses. */
.tta-chip--engine {
  background: var(--mv-ink);
  border-color: var(--mv-ink);
  color: var(--mv-white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ── Monospace values ───────────────────────────────────────
   A container name or a token hint has to be read character by character, so it
   gets a pill of its own rather than sitting inside the prose. */
.tta-mono {
  display: inline-block;
  font-family: var(--mv-font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--mv-graphite);
  background: var(--mv-fog);
  border: 1px solid var(--mv-silver);
  border-radius: 6px;
  padding: 0.15rem 0.45rem;
  word-break: break-all;
}

.tta-copyrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* ── Workspace cards ────────────────────────────────────────
   The front door. One card per client, carrying what an administrator would
   otherwise have to open the record to find out. */
.tta-wsgrid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .tta-wsgrid { grid-template-columns: 1fr; }
}

.tta-ws {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--mv-white);
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  padding: 1.35rem 1.4rem 1.15rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--tta-lift);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

/* A charcoal rule for an open workspace and none for a closed one, so the state
   is legible before a word is read. */
.tta-ws::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  border-radius: var(--tta-radius) var(--tta-radius) 0 0;
  background: var(--mv-ink);
}

.tta-ws:hover,
.tta-ws:focus-visible {
  transform: translateY(-4px);
  border-color: var(--mv-slate);
  box-shadow: var(--tta-lift-hover);
}

/* Closed: pressed into the page rather than lifted off it, dashed edge, no rule.
   Deliberately not dimmed with opacity. The record still has to be readable:
   closing a workspace is how a project ENDS, not a fault. */
.tta-ws--closed {
  background: var(--mv-snow);
  border-style: dashed;
  border-color: var(--mv-slate);
  box-shadow: inset 0 2px 4px rgba(16, 24, 40, 0.06);
}

.tta-ws--closed::before { background: transparent; }

.tta-ws__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.4rem;
}

.tta-ws__name {
  font-size: var(--tta-fs-lg);
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--mv-ink);
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.tta-ws__meta {
  font-size: var(--tta-fs-sm);
  color: var(--mv-iron);
  margin: 0 0 0.75rem;
}

.tta-ws__chips { margin-bottom: 1rem; }

.tta-ws__counts {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.tta-ws__count {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.tta-ws__countvalue {
  font-size: var(--tta-fs-xl);
  font-weight: 800;
  line-height: 1.1;
  color: var(--mv-ink);
  font-variant-numeric: tabular-nums;
}

.tta-ws__countlabel {
  font-size: var(--tta-fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mv-iron);
}

.tta-ws__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: var(--tta-hair);
}

.tta-ws__open {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--tta-fs-sm);
  font-weight: 600;
  color: var(--mv-graphite);
  transition: gap 0.18s ease, color 0.18s ease;
}

.tta-ws:hover .tta-ws__open {
  gap: 0.65rem;
  color: var(--mv-ink);
}

/* ── Counters and shortcut tiles ────────────────────────────*/
.tta-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

@media (max-width: 575.98px) {
  .tta-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.tta-stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--mv-white);
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tta-stat:hover,
.tta-stat:focus-visible {
  transform: translateY(-3px);
  border-color: var(--mv-slate);
  box-shadow: var(--tta-lift-hover);
}

.tta-stat__value {
  font-size: 1.9rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--mv-ink);
  font-variant-numeric: tabular-nums;
}

.tta-stat__label {
  font-size: var(--tta-fs-sm);
  font-weight: 600;
  color: var(--mv-iron);
}

/* A count that is only interesting when it is not zero. Amber edge and ground,
   charcoal figure: the number stays the loudest thing in the card. */
.tta-stat--flag {
  border-color: var(--mv-warning);
  background: var(--mv-warning-lt);
}

.tta-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.tta-tile {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  background: var(--mv-white);
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  padding: 1.15rem 1.25rem;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.tta-tile:hover,
.tta-tile:focus-visible {
  transform: translateY(-3px);
  border-color: var(--mv-slate);
  box-shadow: var(--tta-lift-hover);
}

.tta-tile .bi {
  font-size: 1.3rem;
  line-height: 1;
  color: var(--mv-ink);
  margin-bottom: 0.5rem;
}

.tta-tile__title { font-weight: 700; color: var(--mv-ink); }
.tta-tile__sub { font-size: var(--tta-fs-sm); color: var(--mv-iron); }

/* ── Section label ──────────────────────────────────────────*/
.tta-sectionlabel {
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--mv-iron);
  margin: 2rem 0 0.9rem;
}

/* ── Tables ─────────────────────────────────────────────────
   Still a table, because these are rows of like things and a table is what they
   are. Styled as the product rather than as bootstrap: a snow header in tracked
   small caps, hairlines between rows, generous cells, and a horizontal scroller
   of its own so a wide table can never push the page sideways on a phone. */
.tta-tablewrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.tta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--tta-fs-sm);
  color: var(--mv-ink);
}

.tta-table thead th {
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mv-iron);
  background: var(--mv-snow);
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: var(--tta-hair);
  white-space: nowrap;
}

.tta-table tbody td {
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--mv-fog);
  vertical-align: middle;
}

.tta-table tbody tr:first-child td { border-top: 0; }
.tta-table tbody tr:hover td { background: var(--mv-snow); }

/* A row worth a second look. The chip in the row says it in words; this is what
   makes it findable while scrolling a long list. */
.tta-table tbody tr.is-flagged td { background: var(--mv-warning-lt); }
.tta-table tbody tr.is-flagged:hover td { background: var(--mv-warning-lt); }

.tta-table__num { text-align: center; font-variant-numeric: tabular-nums; }
.tta-table__end { text-align: right; }
.tta-table__nowrap { white-space: nowrap; }

.tta-table a { color: var(--mv-ink); font-weight: 600; text-decoration: none; }
.tta-table a:hover { color: var(--mv-cyan); text-decoration: underline; }

.tta-cellname { font-weight: 700; color: var(--mv-ink); }

.tta-cellsub {
  display: block;
  font-size: var(--tta-fs-xs);
  color: var(--mv-iron);
  margin-top: 0.15rem;
}

/* A file path or a long name. Truncated, with the whole value on the title. */
.tta-truncate {
  display: block;
  max-width: 20rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* The phone version of a table: one card per row. */
.tta-rowcards { display: grid; gap: 0.6rem; }

.tta-rowcard {
  display: block;
  background: var(--mv-white);
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  padding: 0.9rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}

.tta-rowcard__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.35rem;
}

.tta-rowcard__name {
  font-weight: 700;
  color: var(--mv-ink);
  min-width: 0;
  overflow-wrap: anywhere;
}

.tta-rowcard__meta { font-size: var(--tta-fs-sm); color: var(--mv-iron); }
.tta-rowcard__actions { margin-top: 0.75rem; }

/* ── Description lists ──────────────────────────────────────*/
.tta-dl { margin: 0; }

.tta-dl > div {
  padding: 0.85rem 0;
  border-top: 1px solid var(--mv-fog);
}

.tta-dl > div:first-child { border-top: 0; padding-top: 0; }
.tta-dl > div:last-child { padding-bottom: 0; }

.tta-dl dt {
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mv-iron);
  margin-bottom: 0.3rem;
}

.tta-dl dd {
  margin: 0;
  font-size: var(--tta-fs-md);
  color: var(--mv-ink);
}

.tta-dl__note {
  display: block;
  font-size: var(--tta-fs-sm);
  line-height: 1.55;
  color: var(--mv-iron);
  margin-top: 0.4rem;
  max-width: var(--tta-measure);
}

/* ── Guidance notes ─────────────────────────────────────────
   The house page message, borrowed: a tinted ground, charcoal type, and the tone
   carried by a filled disc with an ink glyph rather than by coloured words. */
.tta-note {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: var(--mv-snow);
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  padding: 1.05rem 1.2rem;
  margin-bottom: 1.25rem;
  color: var(--mv-ink);
  font-size: var(--tta-fs-md);
}

.tta-note--warn { background: var(--mv-warning-lt); }
.tta-note--info { background: var(--mv-blue-lt); }
.tta-note--danger { background: var(--mv-danger-lt); }

.tta-note__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mv-slate);
  color: var(--mv-ink);
  font-size: 0.95rem;
  line-height: 1;
}

.tta-note--warn .tta-note__mark { background: var(--mv-warning); }    /* 8.10:1 */
.tta-note--info .tta-note__mark { background: var(--mv-blue); }       /* 8.85:1 */
.tta-note--danger .tta-note__mark { background: var(--mv-danger); }   /* 4.62:1 */

.tta-note__body { min-width: 0; max-width: var(--tta-measure); }

.tta-note__title {
  font-size: var(--tta-fs-md);
  font-weight: 700;
  color: var(--mv-ink);
  margin: 0 0 0.25rem;
}

.tta-note p {
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-graphite);
  margin: 0;
}

.tta-note p + p { margin-top: 0.5rem; }
.tta-note a { color: var(--mv-cyan); font-weight: 600; }
.tta-note em { color: var(--mv-ink); font-style: normal; font-weight: 600; }
.tta-note ul { margin: 0.35rem 0 0; padding-left: 1.1rem; }

.tta-note li {
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-graphite);
}

.tta-note__action { margin-top: 0.8rem; }

/* The next action inside a note is CHARCOAL, never the theme's green primary: on a
   green-tinted ground a green button is a shape you have to hunt for. Same
   reasoning, and the same look, as the portal's own page-message button. */
.tta-note__action .btn {
  background: var(--mv-ink);
  border-color: var(--mv-ink);
  color: var(--mv-white);
  font-weight: 600;
}

.tta-note__action .btn:hover,
.tta-note__action .btn:focus-visible {
  background: var(--mv-graphite);
  border-color: var(--mv-graphite);
  color: var(--mv-white);
}

/* The validation summary. MVC APPENDS its list to whatever the div already
   contains, so this one cannot be a .tta-note: a mark and a body would leave the
   errors as a third item in the flex row. It is a plain block instead.

   It is also rendered on EVERY page load and only carries validation-summary-valid
   when it has nothing to say. Wearing .alert-danger it opened every Create form
   with an empty red band above the first field. */
.tta-summary {
  background: var(--mv-danger-lt);
  border: 1px solid var(--mv-danger);
  border-radius: var(--tta-radius);
  padding: 1rem 1.2rem;
  margin-bottom: 1.25rem;
}

.tta-summary ul {
  margin: 0;
  padding-left: 1.1rem;
}

.tta-summary li {
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-ink);
}

.tta-summary.validation-summary-valid { display: none; }

/* ── Empty states ───────────────────────────────────────────*/
.tta-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--mv-white);
  border: 1px dashed var(--mv-slate);
  border-radius: var(--tta-radius-lg);
  padding: clamp(2rem, 5vw, 3.25rem) 1.5rem;
}

.tta-empty__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: var(--mv-fog);
  color: var(--mv-graphite);
  font-size: 1.35rem;
  margin-bottom: 1rem;
}

.tta-empty__title {
  font-size: var(--tta-fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mv-ink);
  margin: 0 0 0.4rem;
}

.tta-empty__text {
  font-size: var(--tta-fs-md);
  line-height: 1.65;
  color: var(--mv-iron);
  max-width: 48ch;
  margin: 0 0 1.35rem;
}

.tta-empty__steps {
  display: grid;
  gap: 0.5rem;
  text-align: left;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
  max-width: 34rem;
  width: 100%;
}

.tta-empty__steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-graphite);
  background: var(--mv-snow);
  border: var(--tta-hair);
  border-radius: var(--tta-radius-sm);
  padding: 0.7rem 0.85rem;
}

.tta-empty__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--mv-ink);
  color: var(--mv-white);
  font-size: var(--tta-fs-xs);
  font-weight: 800;
}

/* ── Forms ──────────────────────────────────────────────────
   One column, room to breathe, and every field carries its own help directly
   under it rather than in a paragraph elsewhere on the page. */
.tta-form { max-width: 40rem; }

.tta-field { margin-bottom: 1.35rem; }

.tta-field__label {
  display: block;
  font-size: var(--tta-fs-sm);
  font-weight: 700;
  color: var(--mv-ink);
  margin-bottom: 0.35rem;
}

.tta-field .form-control,
.tta-field .form-select {
  font-size: var(--tta-fs-md);
  padding: 0.6rem 0.9rem;
}

.tta-field .form-control.tta-mono {
  display: block;
  width: 100%;
  background: var(--mv-white);
  border: 1.5px solid var(--mv-silver);
  border-radius: var(--bs-border-radius);
  font-size: 0.9rem;
  padding: 0.6rem 0.9rem;
  word-break: normal;
}

.tta-help {
  display: block;
  font-size: var(--tta-fs-sm);
  line-height: 1.55;
  color: var(--mv-iron);
  margin-top: 0.4rem;
  max-width: var(--tta-measure);
}

.tta-help strong { color: var(--mv-graphite); }
.tta-help code { font-family: var(--mv-font-mono); font-size: 0.85em; color: var(--mv-graphite); }

.tta-error {
  display: block;
  font-size: var(--tta-fs-sm);
  font-weight: 600;
  color: var(--mv-danger);
  margin-top: 0.35rem;
}

.tta-fieldset { border: 0; padding: 0; margin: 0 0 1.35rem; }

.tta-legend {
  font-size: var(--tta-fs-sm);
  font-weight: 700;
  color: var(--mv-ink);
  padding: 0;
  margin-bottom: 0.35rem;
}

.tta-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  padding-top: 0.5rem;
}

/* ── Choosing a plan ────────────────────────────────────────
   The stream tick-boxes, grouped under the engine that runs them. Each stream is
   a row you can click anywhere on rather than a checkbox with a word beside it:
   this is where an administrator decides what a firm has bought. */
.tta-plan { display: grid; gap: 1rem; }

.tta-planengine {
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  overflow: hidden;
  background: var(--mv-white);
}

.tta-planengine__head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  padding: 0.8rem 1rem;
  background: var(--mv-snow);
  border-bottom: var(--tta-hair);
  border-left: 3px solid var(--mv-ink);
}

/* Engine identity, the same pair the dashboard uses: charcoal for Ted, violet for
   Tessa. The violet is portal.css's own --ttp-payroll-deep, which is always loaded
   before this file; the fallback keeps the rule honest if it ever is not. */
.tta-planengine--payroll .tta-planengine__head {
  border-left-color: var(--ttp-payroll-deep, var(--mv-graphite));
}

.tta-planengine__name {
  font-size: var(--tta-fs-md);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--mv-ink);
}

.tta-planengine__what {
  font-size: var(--tta-fs-sm);
  color: var(--mv-iron);
}

.tta-choice {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-top: 1px solid var(--mv-fog);
  cursor: pointer;
  transition: background 0.15s ease;
}

.tta-planengine__head + .tta-choice { border-top: 0; }

.tta-choice:hover { background: var(--mv-snow); }

.tta-choice .form-check-input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  border: 1.5px solid var(--mv-slate);
}

.tta-choice__body { min-width: 0; }

.tta-choice__name {
  display: block;
  font-size: var(--tta-fs-md);
  font-weight: 700;
  color: var(--mv-ink);
}

.tta-choice__hint {
  display: block;
  font-size: var(--tta-fs-sm);
  line-height: 1.55;
  color: var(--mv-iron);
  margin-top: 0.1rem;
}

/* The same chooser inside a narrow side panel: same shape, tighter. */
.tta-plan--compact .tta-planengine__head { padding: 0.6rem 0.8rem; }
.tta-plan--compact .tta-choice { padding: 0.65rem 0.8rem; }

/* ── The one-time reveal ────────────────────────────────────
   A token and a temporary password are shown ONCE and can never be recovered, so
   this is the loudest surface in the area: a charcoal card with a green rule,
   standing in a page that is otherwise white. It cannot be mistaken for one of
   the panels around it. */
.tta-reveal {
  background: var(--mv-ink);
  border-radius: var(--tta-radius-lg);
  border-top: 4px solid var(--mv-blue);
  box-shadow: 0 24px 48px -28px rgba(16, 24, 40, 0.65);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.tta-reveal__head {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.35rem 1.4rem 0;
}

.tta-reveal__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  background: var(--mv-blue);
  color: var(--mv-ink);            /* 8.85:1 */
  font-size: var(--tta-fs-lg);
  line-height: 1;
}

.tta-reveal__title {
  font-size: var(--tta-fs-xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--mv-white);
  margin: 0 0 0.3rem;
}

.tta-reveal__sub {
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.72);   /* 9.6:1 on the charcoal ground */
  margin: 0;
  max-width: var(--tta-measure);
}

.tta-reveal__body { padding: 1.35rem 1.4rem 1.4rem; }

/* The value itself: big, monospaced, tracked, on its own lighter slab, so it can
   be read out over a phone without anybody squinting. */
.tta-reveal__value {
  display: block;
  font-family: var(--mv-font-mono);
  font-size: clamp(1.05rem, 2.2vw, 1.4rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--mv-white);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--tta-radius-sm);
  padding: 0.85rem 1rem;
  word-break: break-all;
  min-width: 0;
  flex: 1 1 18rem;
}

.tta-reveal__copy {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 0 0 auto;
  min-height: 46px;
  padding: 0.6rem 1.15rem;
  border: 0;
  border-radius: var(--tta-radius-sm);
  background: var(--mv-blue);
  color: var(--mv-ink);
  font-family: var(--mv-font-body);
  font-size: var(--tta-fs-md);
  font-weight: 700;
  text-decoration: none;      /* the same shape is used by the two links in the foot */
  cursor: pointer;
  transition: background 0.18s ease;
}

.tta-reveal__copy:hover { background: var(--mv-blue-hover); }
.tta-reveal__copy:disabled { opacity: 0.75; cursor: default; }

/* A second-rank copy button on the dark ground: an outline, not a fill, so there
   is only ever one green button in the card. */
.tta-reveal__copy--ghost {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: var(--mv-white);
  font-weight: 600;
  min-height: 42px;
  font-size: var(--tta-fs-sm);
}

.tta-reveal__copy--ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.55);
}

.tta-reveal__note {
  font-size: var(--tta-fs-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0.9rem 0 0;
  max-width: var(--tta-measure);
}

.tta-reveal__note strong { color: var(--mv-white); font-weight: 600; }

.tta-reveal__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
  padding-top: 1.35rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

/* The handover steps, on the reveal's dark ground. */
.tta-steps { list-style: none; margin: 0; padding: 0; }

.tta-steps__item {
  display: flex;
  gap: 0.9rem;
  padding-bottom: 1.35rem;
}

.tta-steps__item:last-child { padding-bottom: 0; }

.tta-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.10);
  color: var(--mv-white);
  font-weight: 800;
  font-size: var(--tta-fs-sm);
}

.tta-steps__body { min-width: 0; flex: 1 1 auto; }

.tta-steps__title {
  font-size: var(--tta-fs-md);
  font-weight: 700;
  color: var(--mv-white);
  margin: 0.2rem 0 0.6rem;
}

.tta-steps__text {
  font-size: var(--tta-fs-sm);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.72);
  margin: 0.7rem 0 0;
  max-width: var(--tta-measure);
}

.tta-steps__text strong { color: var(--mv-white); font-weight: 600; }

.tta-steps__row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* ── Issue a token ──────────────────────────────────────────*/
.tta-issue {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto;
  gap: 0.75rem;
  align-items: end;
}

@media (max-width: 767.98px) {
  .tta-issue { grid-template-columns: 1fr; }
}

.tta-issue__field { min-width: 0; }

.tta-issue__label {
  display: block;
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--mv-iron);
  margin-bottom: 0.3rem;
}

.tta-issue .form-control,
.tta-issue .form-select { font-size: var(--tta-fs-sm); }

/* A reason, then Reset and Revoke, in one small form inside a table cell. */
.tta-tokenact {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin: 0;
}

/* The reason takes a line of its own and the two buttons sit under it. Left to wrap
   on its own the three controls came apart raggedly: reason and Reset on one line,
   Revoke orphaned below, which made a destructive button look like a stray. */
.tta-tokenact .form-control {
  flex: 1 1 100%;
  max-width: none;
  font-size: var(--tta-fs-sm);
  padding: 0.35rem 0.6rem;
}

/* ── What needs attention ───────────────────────────────────*/
.tta-attn { list-style: none; margin: 0; padding: 0; }

.tta-attn__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: var(--tta-hair);
  border-radius: var(--tta-radius-sm);
  background: var(--mv-snow);
  margin-bottom: 0.6rem;
}

.tta-attn__item:last-child { margin-bottom: 0; }
.tta-attn__item.is-danger { background: var(--mv-danger-lt); border-color: var(--mv-danger); }
.tta-attn__item.is-warning { background: var(--mv-warning-lt); border-color: var(--mv-warning); }

.tta-attn__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--mv-slate);
  color: var(--mv-ink);
  font-size: 0.9rem;
  line-height: 1;
}

.tta-attn__item.is-danger .tta-attn__mark { background: var(--mv-danger); }
.tta-attn__item.is-warning .tta-attn__mark { background: var(--mv-warning); }

.tta-attn__body { flex: 1 1 auto; min-width: 0; }

.tta-attn__text {
  display: block;
  font-size: var(--tta-fs-md);
  font-weight: 600;
  color: var(--mv-ink);
}

.tta-attn__detail {
  display: block;
  font-size: var(--tta-fs-sm);
  line-height: 1.55;
  color: var(--mv-graphite);
  margin-top: 0.15rem;
}

.tta-attn__item .btn { flex: 0 0 auto; }

.tta-attn__clear {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem;
  background: var(--mv-blue-lt);
  border: 1px solid var(--mv-blue-mid);
  border-radius: var(--tta-radius-sm);
}

/* The one all-clear mark in the area, and the one place green says "done". */
.tta-attn__clear .tta-note__mark { background: var(--mv-blue); }

/* ── Where each client is up to ─────────────────────────────*/
.tta-prog { list-style: none; margin: 0; padding: 0; }

.tta-prog__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.9rem 1rem;
  border: var(--tta-hair);
  border-radius: var(--tta-radius-sm);
  background: var(--mv-white);
  margin-bottom: 0.6rem;
}

.tta-prog__row:last-child { margin-bottom: 0; }
.tta-prog__row.is-complete { background: var(--mv-snow); }
.tta-prog__row.is-blocked { background: var(--mv-danger-lt); border-color: var(--mv-danger); }

.tta-prog__main { flex: 1 1 14rem; min-width: 0; }

.tta-prog__client {
  font-size: var(--tta-fs-md);
  font-weight: 700;
  color: var(--mv-ink);
  text-decoration: none;
}

.tta-prog__client:hover { color: var(--mv-cyan); text-decoration: underline; }

.tta-prog__status {
  display: block;
  font-size: var(--tta-fs-sm);
  color: var(--mv-iron);
  margin-top: 0.1rem;
}

.tta-prog__row.is-blocked .tta-prog__status { color: var(--mv-graphite); font-weight: 600; }

.tta-prog__stages {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}

.tta-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--mv-slate);
}

.tta-dot.is-done { background: var(--mv-blue); }
.tta-prog__row.is-blocked .tta-dot.is-done { background: var(--mv-danger); }

.tta-prog__count {
  font-size: var(--tta-fs-xs);
  font-weight: 700;
  color: var(--mv-iron);
  font-variant-numeric: tabular-nums;
  margin-left: 0.35rem;
}

.tta-prog__action { flex: 0 0 auto; margin-left: auto; }

@media (max-width: 575.98px) {
  .tta-prog__action { margin-left: 0; width: 100%; }
  .tta-prog__action .btn { width: 100%; }
}

/* ── Getting set up ─────────────────────────────────────────*/
.tta-check { list-style: none; margin: 0; padding: 0; }

.tta-check__item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  border: var(--tta-hair);
  border-radius: var(--tta-radius-sm);
  background: var(--mv-white);
  margin-bottom: 0.6rem;
}

.tta-check__item:last-child { margin-bottom: 0; }
.tta-check__item.is-done { background: var(--mv-snow); }

.tta-check__item.is-current {
  border-color: var(--mv-ink);
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05), 0 14px 26px -22px rgba(16, 24, 40, 0.6);
}

.tta-check__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--mv-fog);
  color: var(--mv-graphite);
  font-size: 0.9rem;
  line-height: 1;
}

.tta-check__item.is-done .tta-check__mark { background: var(--mv-blue); color: var(--mv-ink); }
.tta-check__item.is-current .tta-check__mark { background: var(--mv-ink); color: var(--mv-white); }

.tta-check__body { min-width: 0; }

.tta-check__title {
  display: block;
  font-size: var(--tta-fs-md);
  font-weight: 700;
  color: var(--mv-ink);
}

.tta-check__item.is-done .tta-check__title { color: var(--mv-graphite); }

.tta-check__detail {
  display: block;
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-iron);
  margin-top: 0.15rem;
}

.tta-check__action { display: block; margin-top: 0.7rem; }

/* ── How this works ─────────────────────────────────────────*/
.tta-howto {
  background: var(--mv-snow);
  border: var(--tta-hair);
  border-radius: var(--tta-radius);
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
}

.tta-howto ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: tta-howto;
  display: grid;
  gap: 0.85rem;
}

.tta-howto li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  counter-increment: tta-howto;
  font-size: var(--tta-fs-sm);
  line-height: 1.65;
  color: var(--mv-graphite);
  max-width: var(--tta-measure);
}

.tta-howto li::before {
  content: counter(tta-howto);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--mv-white);
  border: var(--tta-hair);
  color: var(--mv-ink);
  font-size: var(--tta-fs-xs);
  font-weight: 800;
}

.tta-howto strong { color: var(--mv-ink); }
.tta-howto em { font-style: normal; font-weight: 600; color: var(--mv-ink); }
.tta-howto code { font-family: var(--mv-font-mono); font-size: 0.85em; }

.tta-howto__foot {
  font-size: var(--tta-fs-sm);
  line-height: 1.6;
  color: var(--mv-iron);
  max-width: var(--tta-measure);
  margin: 1rem 0 0;
}

/* ── Small stacked forms ────────────────────────────────────*/
.tta-inlineform { display: inline-block; margin: 0; }

.tta-stack { display: grid; gap: 0.6rem; }
.tta-stack form { margin: 0; }
.tta-stack .btn { width: 100%; }

/* ── Buttons inside this area ───────────────────────────────
   Colour, focus and disabled state stay the theme's. Only the size changes, and
   only where a row of controls would otherwise read as a toolbar. */
.tta-btn-sm.btn {
  font-size: var(--tta-fs-sm);
  padding: 0.4rem 0.8rem;
  min-height: 36px;
}

.tta-head__actions .btn,
.tta-actions .btn { min-height: 42px; }

@media (max-width: 575.98px) {
  .tta-head__actions,
  .tta-actions { width: 100%; }

  .tta-head__actions .btn,
  .tta-head__actions form,
  .tta-actions .btn { width: 100%; }

  .tta-inlineform { display: block; }
}

/* ── Focus ──────────────────────────────────────────────────
   Never removed. Charcoal on the light surfaces, green on the dark reveal, which
   is the one ground where a charcoal ring would disappear. */
.tta-ws:focus-visible,
.tta-stat:focus-visible,
.tta-tile:focus-visible,
.tta-rowcard:focus-visible,
.tta-tab:focus-visible,
.tta-crumbs a:focus-visible,
.tta-table a:focus-visible,
.tta-prog__client:focus-visible {
  outline: 2px solid var(--mv-ink);
  outline-offset: 3px;
}

.tta-choice:focus-within {
  outline: 2px solid var(--mv-ink);
  outline-offset: -2px;
}

.tta-reveal a:focus-visible,
.tta-reveal__copy:focus-visible {
  outline: 2px solid var(--mv-blue);
  outline-offset: 3px;
}

/* ── Reduced motion ─────────────────────────────────────────
   Broad on purpose, for the same reason portal.css is: this file's markup
   summons transitions that belong to the theme's own buttons and controls, and a
   reader with vestibular sensitivity does not care which file declared them.
   Everything the area owns, and everything inside it. */
@media (prefers-reduced-motion: reduce) {
  [class*="tta-"],
  [class*="tta-"]::before,
  [class*="tta-"]::after,
  [class*="tta-"] *,
  [class*="tta-"] *::before,
  [class*="tta-"] *::after {
    transition: none !important;
    animation: none !important;
  }

  [class*="tta-"]:hover,
  [class*="tta-"]:focus-visible,
  [class*="tta-"] *:hover,
  [class*="tta-"] *:focus-visible {
    transform: none !important;
  }
}
