* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--font);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
a {
  color: var(--brand);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.8px;
  line-height: 1.2;
  font-weight: 600;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.3px;
  font-weight: 600;
}
h3 {
  font-size: 16px;
  font-weight: 600;
}
small,
.small {
  font-size: 13px;
}
.muted {
  color: var(--muted);
}
.hidden,
[hidden] {
  display: none !important;
}
.icon {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.btn {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 15px;
  background: var(--surface);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  min-height: 42px;
  font-weight: 500;
}
.btn:hover {
  background: var(--surface-alt);
}
.btn.primary {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}
.btn.danger {
  color: var(--danger);
  border-color: var(--danger);
}
.btn.quiet {
  border-color: transparent;
  background: transparent;
  color: var(--muted);
}
.btn.icon-only {
  padding: 10px;
  min-width: 42px;
}
.btn.small {
  min-height: 36px;
  padding: 7px 11px;
  font-size: 13px;
}
.button-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.brand-frame {
  background: #e4c9af;
  border-radius: 8px;
  padding: 12px;
}
.brand-mark {
  display: block;
  width: 100%;
  aspect-ratio: 1340 / 240;
  background: #8b591f;
  -webkit-mask: url("../assets/logo.png") center / contain no-repeat;
  mask: url("../assets/logo.png") center / contain no-repeat;
}
:root[data-theme="dark"] .brand-frame {
  background: transparent;
  padding: 0;
}
:root[data-theme="dark"] .brand-mark {
  background: #e4c9af;
}
.boot {
  max-width: 350px;
  margin: 24vh auto;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}
.boot img {
  width: 100%;
  background: #e4c9af;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
}
.auth-layout {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  padding: 60px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #e4c9af;
  color: #5e3c1e;
}
.auth-brand img {
  width: min(100%, 450px);
  margin-bottom: 64px;
}
.auth-brand h1 {
  font:
    400 44px/1.15 Georgia,
    serif;
  max-width: 470px;
}
.auth-brand p {
  margin-top: 20px;
  max-width: 340px;
  color: #715132;
}
.auth-brand .version {
  margin-top: 70px;
  color: #715132;
}
.auth-main {
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.auth-card {
  width: 100%;
  max-width: 380px;
}
.auth-card h1 {
  font-size: 25px;
  margin-bottom: 8px;
}
.auth-card form {
  margin-top: 26px;
}
.auth-card .btn.primary {
  width: 100%;
}
.auth-links {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.auth-theme {
  position: absolute;
  right: 20px;
  top: 20px;
}
.auth-mobile-logo {
  display: none;
}
.separator {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 25px 0;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 17px;
  min-width: 0;
}
.field > span,
.field > label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 9px;
  min-height: 43px;
}
textarea {
  resize: vertical;
  min-height: 100px;
}
input[type="checkbox"] {
  width: 18px;
  min-height: 18px;
  accent-color: var(--brand);
}
.error {
  background: var(--danger-soft);
  color: var(--danger);
  padding: 12px;
  border-radius: 9px;
  margin: 12px 0;
}
.notice {
  background: var(--brand-soft);
  color: var(--brand);
  padding: 12px 15px;
  border-radius: 9px;
  font-size: 13px;
  margin-bottom: 18px;
}
.notice.warning {
  background: var(--warn-soft);
  color: var(--warn);
}
.notice .btn {
  margin-top: 10px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.span-all {
  grid-column: 1/-1;
}
.field-help {
  font-size: 12px;
  color: var(--muted);
  margin-top: -9px;
  margin-bottom: 18px;
}
.legacy-section {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 16px;
}
.legacy-section summary {
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 18px;
}
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 10px;
}
.shell {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  min-height: 100dvh;
}
.sidebar {
  background: var(--surface);
  border-right: 1px solid var(--line);
  padding: 27px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100dvh;
}
.sidebar .brand-frame {
  margin-bottom: 30px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav button {
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 12px 14px;
  text-align: left;
  border-radius: 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
}
.nav button.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}
.nav button:hover {
  background: var(--surface-alt);
}
.sidebar-bottom {
  margin-top: auto;
  padding: 22px 8px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.sidebar-bottom b {
  display: block;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}
.version {
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 12px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar-title {
  font-size: 13px;
  color: var(--muted);
}
.avatar {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 700;
}
.badge-count {
  background: var(--brand);
  color: var(--on-brand);
  font-size: 10px;
  min-width: 16px;
  padding: 1px 4px;
  border-radius: 10px;
}
.page {
  max-width: 1280px;
  margin: auto;
  padding: 34px 36px 50px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}
.page-heading p {
  color: var(--muted);
  margin-top: 7px;
  font-size: 14px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
  font-weight: 600;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 15px;
}
.stat {
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.stat span {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.stat strong {
  font-size: 31px;
  font-weight: 500;
  display: block;
  margin-top: 9px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.status-help {
  margin: 0 0 25px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}
.review-queue { margin-top: 22px; }
.review-queue .panel-head { align-items: flex-start; }
.review-queue .panel-head p { margin: 7px 0 0; }
.review-queue > strong { font-size: 22px; }
.two-columns {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 22px;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 13px;
}
.item {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.item:first-child {
  border-top: 0;
}
.item-content {
  flex: 1;
  min-width: 0;
}
.item-content strong {
  display: block;
  font-weight: 500;
  font-size: 14px;
}
.item-content small {
  display: block;
  color: var(--muted);
  margin-top: 3px;
}
.date-tile {
  width: 44px;
  height: 48px;
  flex: none;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.2;
}
.date-tile small {
  font-size: 10px;
  text-transform: uppercase;
}
.item-link {
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}
.item-link:hover strong {
  color: var(--gold);
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 20px;
  padding: 5px 9px;
  background: var(--surface-alt);
  color: var(--muted);
  white-space: nowrap;
  gap: 5px;
}
.pill.warn {
  background: var(--warn-soft);
  color: var(--warn);
}
.pill.good {
  background: var(--success-soft);
  color: var(--success);
}
.pill.bad {
  background: var(--danger-soft);
  color: var(--danger);
}
.pill.brand {
  background: var(--brand-soft);
  color: var(--brand);
}
.pills {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.empty {
  text-align: center;
  padding: 40px 15px;
  color: var(--muted);
  font-size: 13px;
}
.empty .icon {
  width: 27px;
  height: 27px;
  margin-bottom: 10px;
}
.toolbar {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 16px;
}
.search {
  position: relative;
  flex: 1;
}
.search > .icon {
  position: absolute;
  top: 13px;
  left: 14px;
  color: var(--muted);
}
.search input {
  padding-left: 43px;
  padding-right: 40px;
}
.search-clear {
  position: absolute;
  right: 5px;
  top: 5px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 7px;
}
.filters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  background: var(--surface-alt);
  padding: 16px;
  border-radius: 10px;
  margin-bottom: 16px;
}
.filters .field {
  margin: 0;
}
.clear-filters { justify-self: start; align-self: end; }
/* A ficha inteira abre o processo. Colunas distribuem os dados no desktop. */
.sort-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 14px;
}
.sort-row select {
  width: auto;
  min-width: 230px;
  max-width: 100%;
}
.process-count {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
}
.process-count strong {
  color: var(--ink);
  font-size: 18px;
}
.load-more {
  color: var(--muted);
  text-align: center;
  padding: 20px;
  font-size: 14px;
}
.process-list {
  display: grid;
  gap: 10px;
}
.process-card {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(160px, .75fr);
  align-items: center;
  gap: 24px;
  padding: 18px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  min-width: 0;
}
.process-card:hover {
  border-color: var(--gold);
  background: var(--surface-alt);
}
.process-card > div {
  min-width: 0;
}
.process-card strong,
.process-card span,
.process-card small {
  display: block;
}
.process-card strong,
.process-card span {
  overflow-wrap: anywhere;
}
.process-card-client strong {
  font-size: 16px;
  line-height: 1.35;
  font-weight: 600;
}
.process-card-client span {
  color: var(--muted);
  margin-top: 5px;
  font-size: 14px;
}
.process-card-reference small,
.process-card-status small {
  color: var(--muted);
  font-size: 13px;
}
.process-card-reference strong {
  margin-top: 3px;
  font-size: 15px;
  font-weight: 500;
}
.process-card-reference span {
  color: var(--muted);
  margin-top: 3px;
  font-size: 13px;
}
.process-card-status {
  justify-self: end;
  text-align: right;
}
.process-card-status .pill {
  display: inline-block;
  margin-top: 9px;
}
.table-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
  padding-top: 16px;
  gap: 10px;
}
.detail-summary {
  margin-bottom: 22px;
}
.case-focus {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.case-focus > div {
  padding: 16px;
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.case-focus small { display: block; color: var(--muted); margin-bottom: 7px; }
.case-focus strong { overflow-wrap: anywhere; }
.detail-review { margin: 16px 0 0; }
.detail-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
}
.detail-meta dt {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 5px;
}
.detail-meta dd {
  margin: 0;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.detail-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}
.back {
  margin-bottom: 17px;
}
.note {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 13px;
}
.timeline {
  padding-left: 18px;
  border-left: 1px solid var(--line);
  margin: 15px 0 0 5px;
}
.event {
  padding-bottom: 25px;
  position: relative;
}
.event:before {
  content: "";
  position: absolute;
  left: -23px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
}
.event p {
  font-size: 13px;
  color: var(--muted);
  margin: 6px 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.event small {
  font-size: 11px;
  color: var(--muted);
}
.task-check {
  background: var(--surface);
  border: 1px solid var(--line);
  width: 27px;
  height: 27px;
  border-radius: 50%;
  color: var(--success);
  display: grid;
  place-items: center;
  flex: none;
}
.task-check.done {
  background: var(--success-soft);
  border-color: var(--success);
}
.done-title {
  text-decoration: line-through;
  color: var(--muted);
}
.task-actions {
  display: flex;
  align-items: center;
  gap: 5px;
}
.stack {
  display: grid;
  gap: 22px;
}
.team-member {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 15px;
  align-items: center;
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.team-member:first-child {
  border: 0;
}
.team-member small {
  display: block;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.settings-grid h2 {
  margin-bottom: 16px;
}
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
}
.pref-row:first-of-type {
  border: 0;
}
.pref-row select {
  width: auto;
  max-width: 165px;
}
.pref-row p {
  color: var(--muted);
  font-size: 12px;
}
.status-line {
  margin-top: 14px;
  color: var(--muted);
  font-size: 11px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  width: min(620px, calc(100% - 28px));
  max-height: 90dvh;
  padding: 0;
  box-shadow: var(--shadow);
}
dialog::backdrop {
  background: #110b075e;
  backdrop-filter: blur(3px);
}
.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  background: var(--surface);
  z-index: 1;
}
.dialog-body {
  padding: 23px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--surface);
  border-radius: 10px;
  padding: 13px 20px;
  z-index: 1000;
  box-shadow: var(--shadow);
  max-width: calc(100% - 30px);
  font-size: 13px;
}
.mobile-brand {
  display: none;
}
.demo-banner {
  background: var(--brand-soft);
  color: var(--brand);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 7px 36px;
  font-size: 12px;
  gap: 10px;
}
.demo-banner button {
  border: 0;
  background: none;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}
.online-status {
  font-size: 11px;
  color: var(--muted);
  margin-top: 9px;
}
.full-width {
  width: 100%;
}
.details-notes {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.details-notes summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--ink);
}
.details-notes .note {
  margin-top: 12px;
}
.external-check .panel-head {
  align-items: flex-start;
}
.external-check .panel-head p { margin: 5px 0 0; }
.related-process { margin: 16px 0 0; line-height: 1.5; }
.related-process a { color: var(--gold); font-weight: 600; }
.legacy-detail { margin-top: 22px; }
.legacy-detail > summary { cursor: pointer; font-size: 18px; font-weight: 600; }
.legacy-detail .detail-meta { margin-top: 20px; }
.push-pref { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 18px; }
.push-pref h3 { margin: 0 0 8px; }
.push-pref .button-row { flex-wrap: wrap; margin-top: 14px; }
.datajud-record {
  border-top: 1px solid var(--line);
  padding: 16px 0;
}
.datajud-record p { margin: 6px 0; }
.datajud-record h3 { font-size: 14px; margin: 14px 0 6px; }
.datajud-record ul { padding-left: 22px; }
.datajud-record summary { cursor: pointer; font-weight: 600; }
.datajud-record li { margin: 8px 0; }
.form-message {
  font-size: 13px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .page {
    padding: 28px 24px;
  }
  .topbar {
    padding: 0 24px;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .secondary-col {
    display: none;
  }
  .auth-brand {
    padding: 40px;
  }
  .auth-brand h1 {
    font-size: 36px;
  }
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
}
@media (max-width: 700px) {
  h1 {
    font-size: 25px;
  }
  .auth-layout {
    display: block;
  }
  .auth-brand {
    display: none;
  }
  .auth-main {
    min-height: 0;
    padding: 70px 26px 35px;
    align-items: flex-start;
  }
  .auth-mobile-logo {
    display: block;
    margin-bottom: 35px;
    width: 100%;
    overflow: hidden;
  }
  .auth-mobile-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
  }
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    bottom: 0;
    top: auto;
    height: auto;
    width: 100%;
    padding: 5px 8px calc(5px + env(safe-area-inset-bottom));
    border-right: 0;
    border-top: 1px solid var(--line);
    z-index: 20;
  }
  .sidebar .brand-frame,
  .sidebar-bottom {
    display: none;
  }
  .nav {
    flex-direction: row;
    justify-content: space-around;
    gap: 0;
  }
  .nav button {
    flex-direction: column;
    gap: 3px;
    font-size: 12px;
    padding: 7px 9px;
    min-height: 50px;
  }
  .nav .icon {
    width: 20px;
    height: 20px;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
    gap: 7px;
  }
  .topbar-title {
    display: none;
  }
  .mobile-brand {
    display: block;
    width: 170px;
    max-width: 45vw;
    padding: 8px;
  }
  .topbar .button-row {
    gap: 2px;
  }
  .topbar .avatar {
    display: none;
  }
  .topbar .btn.icon-only {
    min-width: 36px;
    padding: 8px;
  }
  .page {
    padding: 23px 16px 100px;
  }
  .page-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .page-heading .btn {
    padding: 9px 12px;
    white-space: nowrap;
    font-size: 14px;
  }
  .page-heading p {
    font-size: 14px;
  }
  .stats {
    gap: 9px;
    margin-bottom: 15px;
  }
  .stat {
    padding: 15px 12px;
  }
  .stat span {
    font-size: 13px;
    min-height: 0;
  }
  .stat strong {
    font-size: 27px;
    margin-top: 5px;
  }
  .panel {
    padding: 18px;
  }
  .two-columns,
  .settings-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-meta {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .case-focus { grid-template-columns: 1fr; gap: 10px; }
  .detail-heading {
    flex-direction: column;
  }
  .detail-heading h1 {
    font-size: 25px;
  }
  .filters {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 18px;
  }
  .dialog-header {
    padding: 15px 18px;
  }
  .sort-row {
    justify-content: space-between;
  }
  .sort-row select {
    min-width: 0;
    width: min(62%, 270px);
  }
  .process-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, .8fr);
    gap: 13px 16px;
    padding: 17px;
  }
  .process-card-client {
    grid-column: 1 / -1;
  }
  .process-card-status {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: space-between;
  }
  .process-card-status small {
    font-size: 12px;
  }
  .demo-banner {
    padding: 8px 16px;
    font-size: 11px;
  }
  .team-member {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .team-member select {
    max-width: 220px;
  }
  .toast {
    bottom: 90px;
  }
  .item .pill {
    white-space: normal;
    text-align: center;
  }
  .form-actions .btn {
    flex: 1;
  }
  .version {
    letter-spacing: 0.5px;
  }
  .topbar .badge-count {
    position: absolute;
    margin: -22px 0 0 21px;
  }
  .status-line {
    margin-bottom: 8px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  button,
  a {
    transition:
      background-color 0.16s,
      color 0.16s;
  }
  dialog[open] {
    animation: appear 0.15s ease-out;
  }
  @keyframes appear {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
