/* GE-HANDS design tokens: change these centrally rather than styling individual pages. */
:root {
  --plum: #5e197e;
  --plum-dark: #3d1053;
  --plum-soft: #f0e8f5;
  --lime: #a8b324;
  --lime-soft: #f1f4d8;
  --ink: #242236;
  --muted: #797487;
  --line: #e9e6ee;
  --canvas: #f7f6fa;
  --white: #fff;
  --green: #27755a;
  --green-soft: #eaf6ef;
  --blue: #3663a3;
  --blue-soft: #edf2fc;
  --amber: #946022;
  --amber-soft: #fff5e3;
  --red: #ad3547;
  --red-soft: #fff0f2;
  --radius: 16px;
  --shadow: 0 3px 18px rgba(41, 18, 58, 0.025);
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font:
    14px/1.55 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Inter,
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
a,
input,
select,
textarea,
summary {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.65;
}
img {
  max-width: 100%;
}
h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 10px;
  font-weight: 680;
}
h2 {
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.35px;
  margin-bottom: 10px;
  font-weight: 650;
}
h3 {
  font-size: 15px;
  line-height: 1.4;
  margin-bottom: 8px;
}
p {
  margin-bottom: 16px;
}
small {
  font-size: 11.5px;
}
strong {
  font-weight: 650;
}
svg {
  flex: none;
  vertical-align: middle;
}
.muted {
  color: var(--muted);
}
.nowrap {
  white-space: nowrap;
}
.break-word {
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  padding: 12px;
  background: var(--plum);
  color: #fff;
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
:focus-visible {
  outline: 3px solid #9b74b1;
  outline-offset: 3px;
}
a:hover {
  color: var(--plum);
}
.app-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100dvh;
  background: var(--white);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 28px 18px 18px;
  z-index: 40;
  overflow: auto;
}
.brand {
  display: flex;
  gap: 9px;
  align-items: center;
  color: var(--plum-dark);
  padding: 0 3px;
}
.brand img {
  object-fit: contain;
  width: 52px;
  height: 38px;
}
.brand span {
  display: flex;
  flex-direction: column;
}
.brand b {
  font-size: 18px;
  letter-spacing: 1px;
  font-weight: 760;
  line-height: 1.2;
}
.brand small {
  font-size: 9px;
  letter-spacing: 3.4px;
  color: var(--muted);
  margin-top: 4px;
  font-weight: 600;
}
.workspace-box {
  margin: 29px 1px 22px;
  padding: 15px 13px 12px;
  background: #faf8fc;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.eyebrow {
  display: block;
  font-size: 10px;
  letter-spacing: 1.6px;
  color: var(--plum);
  font-weight: 730;
  margin-bottom: 9px;
}
.workspace-box .eyebrow {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 1px;
  margin-bottom: 5px;
}
.workspace-box select {
  border: none;
  padding: 0 18px 0 0;
  width: 100%;
  font-weight: 660;
  color: var(--ink);
  background: transparent;
  font-size: 12px;
  height: 28px;
  box-shadow: none;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.workspace-tag {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 7px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 100%;
  background: var(--green);
  display: inline-block;
  flex: none;
}
.nav-heading {
  font-size: 9px;
  letter-spacing: 1.4px;
  color: #9c97a7;
  font-weight: 700;
  padding: 0 13px;
  margin-bottom: 9px;
}
.nav-heading.space-top {
  margin-top: 26px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  margin: 3px 0;
  color: #6d687b;
  font-weight: 550;
  font-size: 12.5px;
  border-radius: 9px;
  min-height: 43px;
}
.nav-link svg {
  width: 18px;
  height: 18px;
  color: #8f889d;
}
.nav-link:hover {
  background: #f8f5fb;
}
.nav-link.active {
  color: var(--plum);
  background: var(--plum-soft);
  font-weight: 650;
}
.nav-link.active svg {
  color: var(--plum);
}
.nav-arrow {
  margin-left: auto;
  font-size: 19px;
}
.sidebar-footer {
  margin-top: auto;
  padding: 26px 13px 0;
  color: #a39cad;
}
.sidebar-footer > small {
  font-size: 8px;
  letter-spacing: 1.1px;
  display: block;
  margin-top: 15px;
}
.support-mark {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 11px;
  color: #867a90;
}
.support-mark svg {
  color: var(--lime);
}
.support-mark strong {
  color: #6a5874;
  font-weight: 600;
}
.app-main {
  margin-left: 248px;
  width: calc(100% - 248px);
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.topbar {
  height: 82px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  gap: 18px;
  position: sticky;
  top: 0;
  z-index: 25;
}
.breadcrumb {
  display: flex;
  gap: 13px;
  font-size: 11px;
  color: #aaa3b3;
  white-space: nowrap;
}
.breadcrumb strong {
  color: #71677d;
  font-weight: 550;
}
.topbar-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.mode-badge {
  background: #faf8fc;
  border: 1px solid var(--line);
  padding: 5px 9px;
  border-radius: 5px;
  font-size: 9px;
  color: #86788f;
  font-weight: 600;
}
.avatar {
  width: 36px;
  height: 36px;
  background: var(--plum-soft);
  color: var(--plum);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex: none;
}
.profile-menu {
  position: relative;
}
.profile-menu summary {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  list-style: none;
}
.profile-menu summary::-webkit-details-marker {
  display: none;
}
.profile-name {
  font-size: 11px;
  font-weight: 650;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.profile-name small {
  font-size: 9px;
  display: block;
  color: var(--muted);
  font-weight: 400;
}
.profile-menu summary > span:last-child {
  color: #b4acbe;
}
.profile-popover {
  position: absolute;
  right: 0;
  top: 48px;
  width: 230px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 30px #38214818;
  background: #fff;
  z-index: 60;
}
.profile-popover a,
.profile-popover button {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px;
  border: 0;
  background: transparent;
  width: 100%;
  text-align: left;
  font-size: 12px;
  border-radius: 6px;
}
.profile-popover a:hover,
.profile-popover button:hover {
  background: var(--canvas);
}
.page-content {
  padding: 32px 34px 38px;
  flex: 1;
  max-width: 1750px;
  width: 100%;
  margin: 0 auto;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  color: #a49bab;
  font-size: 9px;
  padding: 18px 34px;
  border-top: 1px solid var(--line);
  gap: 10px;
}
.page-footer span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin-bottom: 28px;
}
.page-heading p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.page-heading .eyebrow {
  margin-bottom: 10px;
  font-size: 9px;
}
.page-heading .button {
  white-space: nowrap;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 650;
  text-align: center;
  line-height: 1.35;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.button.primary {
  background: var(--plum);
  color: #fff;
  box-shadow: 0 4px 8px #5e197e12;
}
.button.primary:hover {
  background: var(--plum-dark);
  color: #fff;
}
.button.secondary {
  background: #fff;
  color: #685371;
  border-color: #e4dbe9;
}
.button.secondary:hover {
  background: var(--plum-soft);
}
.button.ghost {
  border-color: transparent;
  color: var(--plum);
  background: transparent;
}
.button.danger {
  background: var(--red-soft);
  border-color: #f6cbd2;
  color: var(--red);
}
.button.small {
  font-size: 10px;
  padding: 7px 11px;
  min-height: 32px;
}
.button.large {
  min-height: 48px;
  font-size: 13px;
}
.button.full {
  width: 100%;
}
.text-link {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--plum);
  font-size: 11px;
  font-weight: 650;
}
.text-link:hover {
  text-decoration: underline;
}
.icon-button {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9a8ca3;
  background: transparent;
  border: 0;
  border-radius: 7px;
}
.icon-button:hover {
  background: var(--plum-soft);
  color: var(--plum);
}
.menu-button {
  display: none;
}
.sidebar-scrim {
  display: none;
}
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.card.padded {
  padding: 25px;
}
.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px 19px;
}
.card-heading h2 {
  font-size: 15px;
  margin: 0;
}
.card-heading p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.card + .card,
.card + .guide-callout,
.guide-callout + .card {
  margin-top: 22px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 25px;
}
.stat-card {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 21px 19px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-width: 0;
}
.stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 39px;
  height: 39px;
  border-radius: 10px;
  flex: none;
}
.purple {
  background: var(--plum-soft);
  color: var(--plum);
}
.blue {
  background: var(--blue-soft);
  color: var(--blue);
}
.amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.green {
  background: var(--green-soft);
  color: var(--green);
}
.stat-label {
  display: block;
  font-size: 10px;
  color: var(--muted);
  font-weight: 500;
  margin: 0 0 5px;
}
.stat-card strong {
  font-size: 29px;
  line-height: 1.1;
  font-weight: 650;
  display: block;
  letter-spacing: -0.5px;
}
.stat-card small {
  font-size: 9px;
  display: block;
  color: #a39aaa;
  margin-top: 8px;
}
.dashboard-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 287px;
  gap: 23px;
}
.main-column,
.side-column {
  min-width: 0;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
.data-table th {
  font-size: 9px;
  color: #9a91a3;
  letter-spacing: 0.25px;
  font-weight: 550;
  background: #fcfbfd;
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table th:first-child,
.data-table td:first-child {
  padding-left: 24px;
}
.data-table th:last-child,
.data-table td:last-child {
  padding-right: 22px;
}
.data-table td {
  padding: 17px 16px;
  border-bottom: 1px solid #f0edf4;
  vertical-align: middle;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.data-table tbody tr:hover {
  background: #fdfcfe;
}
.ticket-title {
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.4;
  display: block;
  max-width: 320px;
  min-width: 140px;
}
.table-meta {
  display: flex;
  gap: 7px;
  align-items: center;
  color: #a49aae;
  font-size: 9px;
  margin-top: 6px;
  white-space: nowrap;
}
.cell-label {
  display: block;
  color: #655c70;
  font-weight: 500;
}
.data-table td > small {
  font-size: 9px;
  color: #a49aaf;
  display: block;
  margin-top: 4px;
}
.priority {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  white-space: nowrap;
  color: #8a8193;
}
.priority i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #a199aa;
}
.priority-p1 {
  color: var(--red);
}
.priority-p1 i {
  background: var(--red);
}
.priority-p2 {
  color: var(--amber);
}
.priority-p2 i {
  background: #dc9a3d;
}
.badge {
  font-size: 9px;
  line-height: 1.4;
  padding: 4px 8px;
  border-radius: 5px;
  background: #f1eff5;
  color: #83788e;
  white-space: nowrap;
  display: inline-block;
  font-weight: 550;
}
.badge-new,
.badge-triage,
.badge-reopened,
.badge-queued {
  background: var(--blue-soft);
  color: var(--blue);
}
.badge-in-progress,
.badge-active,
.badge-running {
  background: var(--plum-soft);
  color: var(--plum);
}
.badge-waiting-customer,
.badge-waiting-external,
.badge-waiting-approval,
.badge-submitted,
.badge-offered,
.badge-quarantined,
.badge-unknown,
.badge-blocked,
.badge-scheduled,
.badge-paused {
  background: var(--amber-soft);
  color: var(--amber);
}
.badge-resolved,
.badge-closed,
.badge-approved,
.badge-posted,
.badge-accepted,
.badge-delivered,
.badge-read,
.badge-clean,
.badge-published,
.badge-completed {
  background: var(--green-soft);
  color: var(--green);
}
.badge-rejected,
.badge-failed,
.badge-disputed,
.badge-cancelled {
  background: var(--red-soft);
  color: var(--red);
}
.guide-callout {
  display: flex;
  align-items: center;
  gap: 22px;
  background: linear-gradient(112deg, #f0ebf7, #f9f7fc);
  border: 1px solid #e8e0f1;
  border-radius: var(--radius);
  padding: 25px 30px;
}
.guide-art {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  background: #e8dff2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #8258a2;
  position: relative;
  flex: none;
  transform: rotate(-5deg);
}
.art-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--lime);
  border: 5px solid #f2edf7;
  position: absolute;
  right: -6px;
  bottom: 10px;
}
.guide-callout .eyebrow {
  font-size: 8px;
  letter-spacing: 1.3px;
  margin-bottom: 7px;
}
.guide-callout h2 {
  font-size: 17px;
  letter-spacing: -0.5px;
  margin-bottom: 6px;
}
.guide-callout p {
  font-size: 11px;
  color: #8c7d9b;
  margin-bottom: 13px;
  line-height: 1.6;
}
.allowance-card {
  padding-bottom: 20px;
}
.allowance-card .card-heading {
  padding: 22px 22px 12px;
}
.allowance-card .card-heading svg {
  color: #b3a4bf;
}
.allowance-ring {
  position: relative;
  width: 160px;
  height: 160px;
  margin: 13px auto 17px;
}
.allowance-ring svg {
  width: 100%;
  height: 100%;
}
.ring-track,
.ring-value {
  fill: none;
  stroke-width: 8;
}
.ring-track {
  stroke: #f0e9f5;
}
.ring-value {
  stroke: var(--plum);
  stroke-linecap: round;
}
.allowance-ring > div {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}
.allowance-ring strong {
  font-size: 34px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.allowance-ring strong span {
  font-size: 16px;
  font-weight: 500;
  margin-left: 3px;
}
.allowance-ring small {
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.allowance-plan {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 11px;
  gap: 3px;
}
.allowance-plan span {
  font-weight: 650;
}
.allowance-plan strong {
  font-size: 10px;
  font-weight: 400;
  color: #9a8ca5;
}
.mini-ledger {
  margin: 20px 22px 0;
  padding: 15px 0 0;
  border-top: 1px solid var(--line);
}
.mini-ledger > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  margin-bottom: 11px;
  color: #8f839c;
}
.mini-ledger b {
  font-weight: 600;
  color: #6a5d75;
}
.allowance-note {
  font-size: 9px;
  line-height: 1.7;
  margin: 14px 22px 18px;
  color: #9b8fa6;
  background: #faf8fc;
  border-radius: 7px;
  padding: 10px;
}
.allowance-card > .button {
  margin: 0 22px;
  width: calc(100% - 44px);
  font-size: 10px;
}
.empty-allowance {
  padding: 25px 22px;
  text-align: center;
  color: #ad97bb;
}
.empty-allowance h3 {
  margin-top: 17px;
  color: var(--ink);
}
.empty-allowance p {
  font-size: 11px;
  color: var(--muted);
}
.care-card {
  padding: 23px;
  border: 1px solid #e5e8d7;
  border-radius: var(--radius);
  margin-top: 21px;
  background: linear-gradient(135deg, #fafbf4, #f4f6e9);
}
.care-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e9edcc;
  color: #8a9632;
  margin-bottom: 16px;
}
.care-card h3 {
  font-size: 14px;
  margin-bottom: 7px;
}
.care-card p {
  font-size: 10.5px;
  color: #919578;
  margin-bottom: 15px;
}
.care-card .text-link {
  color: #79842c;
  font-size: 10px;
}
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0 22px 22px;
}
.portfolio-item {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  display: flex;
  width: 100%;
  align-items: center;
  padding: 12px;
  gap: 10px;
  text-align: left;
  font-size: 10px;
  color: #6e6079;
}
.portfolio-item:hover {
  background: var(--canvas);
}
.portfolio-item strong {
  margin-left: auto;
}
.org-monogram {
  width: 29px;
  height: 29px;
  background: #f3edf8;
  color: #876598;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  font-weight: 650;
}
.empty-state {
  padding: 38px 22px;
  text-align: center;
  color: #a08caf;
}
.empty-state h3,
.empty-state h1 {
  color: var(--ink);
  margin-top: 15px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
}
.empty-state .button {
  margin-top: 5px;
}
.form-stack {
  display: flex;
  flex-direction: column;
  gap: 17px;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.form-grid .span-2 {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  font-weight: 600;
  color: #64556f;
}
input,
select,
textarea {
  padding: 11px 12px;
  border: 1px solid #dfd8e7;
  border-radius: 7px;
  color: #51455b;
  background: #fff;
  width: 100%;
  font-size: 12px;
  line-height: 1.5;
  min-width: 0;
}
input::placeholder,
textarea::placeholder {
  color: #b3a9be;
  font-weight: 400;
}
input:focus,
select:focus,
textarea:focus {
  border-color: #9f79b3;
  outline: 2px solid #ddcde845;
  outline-offset: 0;
}
textarea {
  min-height: 110px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  width: 16px;
  height: 16px;
  accent-color: var(--plum);
  flex: none;
  padding: 0;
  margin: 0;
}
input[type="file"] {
  font-size: 11px;
  background: #fcfafc;
}
label.checkbox {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px;
  font-weight: 450;
  font-size: 11px;
}
.checkbox input {
  margin-top: 1px;
}
.help {
  font-size: 10px;
  line-height: 1.6;
  color: #a091aa;
  font-weight: 400;
  margin: 0;
}
.form-section {
  padding: 24px;
  border-bottom: 1px solid var(--line);
}
.form-section:last-child {
  border-bottom: 0;
}
.form-section h3 {
  font-size: 13px;
  margin-bottom: 7px;
}
.form-section > p {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 20px;
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  padding: 22px 24px;
  background: #fcfbfd;
}
.inline-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.inline-form label {
  flex: 1;
  min-width: 130px;
}
.inline-form .button {
  flex: none;
}
.filter-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 19px 23px;
  border-bottom: 1px solid var(--line);
  flex-wrap: wrap;
}
.search-field {
  position: relative;
  flex: 1;
  min-width: 200px;
}
.search-field svg {
  position: absolute;
  left: 12px;
  top: 12px;
  color: #a798b1;
}
.search-field input {
  padding-left: 37px;
  font-size: 11px;
  background: #fcfbfd;
}
.filter-bar select {
  max-width: 170px;
  font-size: 11px;
}
.pagination {
  padding: 18px 24px;
  border-top: 1px solid var(--line);
}
.pagination nav {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.pagination svg {
  width: 17px;
  height: 17px;
}
.pagination nav > div:first-child {
  display: flex;
  gap: 10px;
}
.pagination nav > div:last-child {
  display: none;
}
.pagination a,
.pagination span {
  font-size: 11px;
}
.pagination a {
  color: var(--plum);
  font-weight: 600;
}
.alert {
  border: 1px solid #e7dfed;
  border-radius: 10px;
  padding: 14px 17px;
  font-size: 12px;
  margin-bottom: 20px;
  line-height: 1.6;
}
.alert.success {
  display: flex;
  gap: 9px;
  background: #eff8f3;
  border-color: #d3e9da;
  color: #377159;
}
.alert.error {
  background: var(--red-soft);
  border-color: #f0ced6;
  color: #a04458;
}
.alert.notice {
  background: var(--amber-soft);
  border-color: #eee0c2;
  color: #8b6d3d;
}
.alert p:last-child {
  margin-bottom: 0;
}
.alert ul {
  margin: 8px 0 0;
  padding-left: 18px;
}
.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}
.two-column > .card + .card {
  margin-top: 0;
}
.three-column {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 23px;
}
.detail-sidebar > .card + .card {
  margin-top: 20px;
}
.detail-list {
  margin: 0;
}
.detail-list > div {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.detail-list > div:first-child {
  padding-top: 0;
}
.detail-list > div:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.detail-list dt {
  font-size: 10px;
  color: #a192ab;
}
.detail-list dd {
  font-size: 11px;
  color: #6b5877;
  margin: 0;
  text-align: right;
  max-width: 65%;
}
.ticket-heading {
  margin-bottom: 24px;
}
.ticket-heading .eyebrow {
  display: flex;
  gap: 10px;
  align-items: center;
}
.ticket-heading h1 {
  font-size: 25px;
  letter-spacing: -0.6px;
  max-width: 850px;
}
.ticket-heading .subline {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
  color: #a08eac;
  font-size: 10px;
}
.conversation-intro {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: #fdfcfe;
}
.conversation-intro h3 {
  font-size: 12px;
}
.prose {
  font-size: 12px;
  line-height: 1.85;
  color: #77677f;
  overflow-wrap: anywhere;
}
.prose.pre-line {
  white-space: pre-line;
}
.conversation {
  padding: 0 24px;
}
.message {
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.message:last-child {
  border-bottom: none;
}
.message-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.message-header .avatar {
  width: 30px;
  height: 30px;
  font-size: 10px;
}
.message-header strong {
  font-size: 11px;
}
.message-header small {
  display: block;
  font-size: 9px;
  color: #a696b0;
}
.message-header time {
  margin-left: auto;
  font-size: 9px;
  color: #af9cbb;
}
.message.private {
  background: #fffaf0;
  margin: 15px -10px;
  padding: 17px 15px;
  border: 1px solid #efe5ce;
  border-radius: 10px;
}
.message .prose {
  margin-bottom: 0;
}
.composer {
  padding: 22px 24px;
  background: #fcfbfe;
  border-top: 1px solid var(--line);
}
.composer-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--plum);
  font-weight: 650;
}
.composer .help {
  margin-bottom: 14px;
}
.private-composer {
  margin-top: 18px;
  padding: 18px 23px;
  background: #fffaf2;
  border: 1px solid #efe5cf;
  border-radius: 12px;
}
.private-composer summary {
  font-size: 12px;
  font-weight: 650;
  color: #a77e3d;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
}
.private-composer .form-stack {
  margin-top: 18px;
}
.section-gap {
  margin-top: 24px;
}
.detail-sidebar .card.padded {
  padding: 21px;
}
.detail-sidebar h3 {
  font-size: 13px;
  margin-bottom: 17px;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}
.file-row > div {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
}
.file-row small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 3px;
}
.details-panel {
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #fff;
  padding: 16px 20px;
  margin: 16px 0;
}
.details-panel summary {
  font-size: 12px;
  font-weight: 650;
  color: #7a588b;
  cursor: pointer;
}
.details-panel[open] > summary {
  margin-bottom: 20px;
}
.details-panel h3 {
  font-size: 12px;
}
.details-panel p {
  font-size: 11px;
  color: var(--muted);
}
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.timeline li {
  border-left: 1px solid #e6dceb;
  margin-left: 5px;
  padding: 0 0 20px 17px;
  position: relative;
  font-size: 10px;
  color: #96829f;
}
.timeline li:before {
  content: "";
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: #c8b1d5;
  border-radius: 100%;
}
.timeline strong {
  display: block;
  color: #795f88;
  font-size: 11px;
  margin-bottom: 4px;
}
.timeline p {
  margin-bottom: 0;
  font-size: 10px;
}
.timeline li:last-child {
  border-left: 0;
  padding-bottom: 0;
}
.timer-box {
  padding: 18px;
  border: 1px solid #ddcae9;
  border-radius: 11px;
  background: #f9f5fc;
}
.timer-display {
  font-variant-numeric: tabular-nums;
  font-size: 27px;
  font-weight: 600;
  letter-spacing: 1px;
  color: var(--plum);
  display: block;
  margin: 9px 0;
}
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.time-row {
  padding: 18px 23px;
  border-top: 1px solid var(--line);
}
.time-row-head {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: space-between;
}
.time-row-head strong {
  font-size: 12px;
}
.time-row p {
  font-size: 11px;
  color: #8d7b99;
  margin: 7px 0;
}
.time-row small {
  font-size: 9px;
  color: #ac9ab6;
}
.time-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}
.time-actions details {
  flex: 1;
  min-width: 200px;
}
.time-actions summary {
  font-size: 10px;
  color: var(--plum);
  cursor: pointer;
}
.time-actions form {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.time-actions input {
  font-size: 10px;
  flex: 1;
  min-width: 150px;
}
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 26px;
}
.plan-card {
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.plan-card h2 {
  margin-top: 13px;
}
.plan-price {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 650;
  color: #5c376d;
  margin: 14px 0 2px;
}
.plan-price small {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-card .mini-ledger {
  margin: 16px 0;
}
.policy-note {
  font-size: 11px;
  color: #9a8ba4;
  padding: 15px 19px;
  border: 1px solid #e6ddec;
  border-radius: 10px;
  background: #fcfaff;
  margin-bottom: 24px;
}
.usage-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.usage-item {
  background: #faf8fc;
  border: 1px solid var(--line);
  padding: 17px 13px;
  border-radius: 10px;
}
.usage-item strong {
  display: block;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: #613b72;
}
.usage-item span {
  font-size: 9px;
  color: #9b86a6;
  display: block;
  margin-bottom: 4px;
}
.usage-item small {
  font-size: 9px;
  color: #ac9ab5;
}
.schedule-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
.schedule-banner select {
  max-width: 340px;
}
.credit-row {
  padding: 14px 0;
  border-top: 1px solid var(--line);
  font-size: 11px;
}
.credit-row p {
  color: #9b86a7;
  font-size: 10px;
  margin: 5px 0 0;
}
.approval-card {
  padding: 24px;
}
.approval-head {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  align-items: flex-start;
}
.approval-amount {
  font-size: 24px;
  letter-spacing: -0.6px;
  color: var(--plum);
}
.approval-card .prose {
  padding: 17px;
  background: #faf8fc;
  border-radius: 8px;
  margin: 16px 0;
}
.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
  margin: 24px 0;
}
.article-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  min-height: 210px;
}
.article-card .article-icon {
  width: 40px;
  height: 40px;
  background: var(--plum-soft);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
}
.article-card h2 {
  font-size: 15px;
}
.article-card p {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 18px;
}
.article-card .text-link {
  margin-top: auto;
}
.article-body {
  max-width: 840px;
  margin: auto;
  padding: 36px 40px;
}
.article-body h1 {
  font-size: 30px;
}
.article-body h2 {
  margin-top: 28px;
  font-size: 21px;
}
.article-body h3 {
  margin-top: 22px;
}
.article-body p,
.article-body li {
  font-size: 13px;
  color: #71647a;
  line-height: 1.9;
}
.article-body pre {
  padding: 18px;
  background: #f6f2f9;
  overflow: auto;
  border-radius: 8px;
}
.article-body a {
  color: var(--plum);
  text-decoration: underline;
}
.article-body table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
}
.article-body td,
.article-body th {
  padding: 10px;
  border: 1px solid var(--line);
}
.inline-status {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--green);
  margin: 17px 0;
}
.secret-key {
  display: block;
  font-size: 15px;
  overflow-wrap: anywhere;
  background: var(--plum-soft);
  padding: 15px;
  border-radius: 8px;
  letter-spacing: 1px;
  margin-bottom: 20px;
}
.code-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.code-grid code {
  background: var(--plum-soft);
  padding: 10px;
  font-size: 12px;
  border-radius: 6px;
}
.recovery-card {
  margin-bottom: 24px;
  padding: 25px;
}
.checkbox-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}
.status-summary {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 16px 0;
  font-size: 12px;
}
.offline-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 90;
  background: #58426a;
  color: #fff;
  padding: 14px;
  text-align: center;
  font-size: 12px;
  box-shadow: 0 -3px 18px #0001;
}
.offline-banner[hidden] {
  display: none;
}
.auth-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100dvh;
  background: #fff;
}
.auth-story {
  padding: 50px 58px;
  background:
    radial-gradient(ellipse at 5% 95%, #6d3484 0, transparent 50%), #3c104f;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.auth-story:after {
  content: "";
  width: 440px;
  height: 440px;
  border: 1px solid #ffffff09;
  border-radius: 50%;
  position: absolute;
  right: -200px;
  top: 27%;
  pointer-events: none;
}
.auth-story .brand {
  color: #fff;
  position: relative;
  z-index: 1;
}
.auth-story .brand img {
  background: #fff;
  border-radius: 10px;
  padding: 5px;
  width: 62px;
  height: 44px;
}
.auth-story .brand small {
  color: #d3b9df;
}
.auth-story .brand b {
  font-size: 20px;
}
.auth-story-copy {
  position: relative;
  z-index: 1;
  margin: 70px 0;
}
.auth-story-copy .eyebrow {
  color: #c5cd6a;
  font-size: 10px;
  letter-spacing: 2px;
  margin-bottom: 24px;
}
.auth-story-copy h1 {
  font-size: 42px;
  line-height: 1.2;
  letter-spacing: -1.3px;
  font-weight: 550;
  margin-bottom: 25px;
}
.auth-story-copy > p {
  color: #c8afd4;
  font-size: 13px;
  max-width: 370px;
  line-height: 1.9;
}
.auth-promises {
  display: flex;
  flex-direction: column;
  gap: 19px;
  margin-top: 40px;
  font-size: 11px;
  color: #e0cee9;
}
.auth-promises > span {
  display: flex;
  align-items: center;
  gap: 13px;
}
.auth-promises svg {
  color: #bbc565;
  width: 18px;
  height: 18px;
}
.auth-caption {
  font-size: 8px;
  letter-spacing: 1px;
  color: #b59ac4;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}
.auth-caption span {
  font-size: 9px;
  letter-spacing: 0;
}
.auth-panel {
  align-self: center;
  max-width: 570px;
  padding: 70px 65px;
  width: 100%;
  margin: auto;
}
.auth-form .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 16px;
}
.auth-form h2 {
  font-size: 29px;
  letter-spacing: -0.8px;
  margin-bottom: 11px;
}
.auth-form > .muted {
  font-size: 12px;
  margin-bottom: 32px;
  line-height: 1.7;
}
.auth-form .form-stack {
  gap: 20px;
}
.auth-form label {
  font-size: 11px;
  gap: 9px;
}
.auth-form input {
  min-height: 47px;
  background: #fdfcfe;
}
.align-end {
  align-self: flex-end;
  margin-top: -7px;
}
.auth-note {
  display: flex;
  gap: 9px;
  margin-top: 30px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
  color: #b29bbb;
}
.auth-note p {
  font-size: 10px;
  margin: 0;
  line-height: 1.8;
}
.auth-note svg {
  margin-top: 3px;
}
.auth-form > .text-link {
  margin-top: 22px;
}
@media (min-width: 1500px) {
  .page-content {
    padding: 38px 42px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 320px;
  }
  .stat-card {
    padding: 25px;
  }
  .data-table td {
    padding-top: 21px;
    padding-bottom: 21px;
  }
  .ticket-title {
    max-width: 420px;
    font-size: 12px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 223px;
    padding-left: 14px;
    padding-right: 14px;
  }
  .app-main {
    margin-left: 223px;
    width: calc(100% - 223px);
  }
  .topbar {
    padding: 0 25px;
  }
  .page-content {
    padding: 28px 25px;
  }
  .dashboard-columns {
    grid-template-columns: minmax(0, 1fr) 255px;
    gap: 18px;
  }
  .stat-card {
    gap: 11px;
    padding: 18px 14px;
  }
  .stat-icon {
    width: 33px;
    height: 33px;
  }
  .stat-card small {
    font-size: 8px;
  }
  .data-table th,
  .data-table td {
    padding-left: 12px;
    padding-right: 12px;
  }
  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 20px;
  }
  .ticket-title {
    font-size: 11px;
  }
  .detail-grid {
    grid-template-columns: minmax(0, 1fr) 275px;
  }
  .usage-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 1050px) {
  .sidebar {
    width: 210px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .app-main {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .page-content {
    padding: 26px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .dashboard-columns {
    grid-template-columns: 1fr;
  }
  .side-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .care-card {
    margin-top: 0;
    align-self: start;
  }
  .allowance-ring {
    width: 125px;
    height: 125px;
  }
  .allowance-ring strong {
    font-size: 28px;
  }
  .stats-grid {
    gap: 12px;
  }
  .stat-card {
    gap: 10px;
    padding: 16px 12px;
  }
  .stat-icon {
    width: 30px;
    height: 30px;
  }
  .stat-icon svg {
    width: 16px;
    height: 16px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-card strong {
    font-size: 25px;
  }
  .stat-card small {
    line-height: 1.4;
  }
  .mode-badge {
    display: none;
  }
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .detail-sidebar > .card + .card {
    margin-top: 0;
  }
  .detail-sidebar > .card {
    align-self: start;
  }
  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .plan-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .auth-story {
    padding: 40px;
  }
  .auth-story-copy h1 {
    font-size: 35px;
  }
  .auth-panel {
    padding: 45px;
  }
  .auth-caption {
    flex-direction: column;
  }
  .three-column {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 248px;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
  }
  .app-main {
    margin-left: 0;
    width: 100%;
  }
  .menu-button {
    display: inline-flex;
  }
  .menu-open .sidebar {
    transform: translateX(0);
  }
  .menu-open .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: #28183455;
    backdrop-filter: blur(2px);
    z-index: 35;
  }
  .topbar {
    height: 66px;
    padding: 0 20px;
    gap: 10px;
  }
  .breadcrumb {
    margin-right: auto;
    font-size: 10px;
    gap: 9px;
  }
  .topbar-actions {
    gap: 10px;
  }
  .profile-name {
    display: none;
  }
  .profile-menu summary > span:last-child {
    display: none;
  }
  .page-content {
    padding: 24px 20px;
  }
  .page-heading {
    gap: 18px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    max-width: 400px;
  }
  .page-footer {
    padding: 17px 20px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
  }
  .stat-card {
    padding: 18px;
    gap: 15px;
  }
  .stat-icon {
    width: 37px;
    height: 37px;
  }
  .stat-icon svg {
    width: 19px;
    height: 19px;
  }
  .stat-label {
    font-size: 10px;
  }
  .stat-card small {
    font-size: 9px;
  }
  .two-column {
    grid-template-columns: 1fr;
  }
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    padding: 24px 30px;
    min-height: 150px;
  }
  .auth-story-copy {
    display: none;
  }
  .auth-story .brand {
    margin: auto;
  }
  .auth-caption {
    display: none;
  }
  .auth-panel {
    padding: 43px 28px;
    max-width: 480px;
  }
  .auth-shell {
    display: flex;
    flex-direction: column;
  }
  .auth-panel {
    flex: 1;
    align-self: stretch;
    margin: auto;
    width: 100%;
  }
  .auth-form h2 {
    font-size: 28px;
  }
  .article-body {
    padding: 28px;
  }
  .form-grid.three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 560px) {
  .page-content {
    padding: 23px 15px;
  }
  .topbar {
    padding: 0 13px;
  }
  .breadcrumb > span:first-child,
  .breadcrumb > span:nth-child(2) {
    display: none;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
    margin-bottom: 23px;
  }
  .page-heading h1 {
    font-size: 27px;
    line-height: 1.2;
    letter-spacing: -0.7px;
  }
  .page-heading .button {
    width: 100%;
  }
  .page-heading p {
    font-size: 12px;
  }
  .stats-grid {
    gap: 11px;
    margin-bottom: 19px;
  }
  .stat-card {
    padding: 17px 13px;
    gap: 11px;
  }
  .stat-label {
    font-size: 9px;
  }
  .stat-icon {
    width: 31px;
    height: 31px;
    border-radius: 8px;
  }
  .stat-card strong {
    font-size: 27px;
  }
  .stat-card small {
    font-size: 8px;
    max-width: 110px;
  }
  .dashboard-columns {
    gap: 19px;
  }
  .side-column {
    grid-template-columns: 1fr;
  }
  .care-card {
    margin-top: 0;
  }
  .allowance-card .allowance-ring {
    width: 155px;
    height: 155px;
  }
  .allowance-ring strong {
    font-size: 33px;
  }
  .card-heading {
    padding: 20px 18px 17px;
  }
  .card-heading h2 {
    font-size: 14px;
  }
  .card-heading p {
    font-size: 10px;
  }
  .card-heading .text-link {
    font-size: 10px;
    white-space: nowrap;
  }
  .guide-callout {
    padding: 23px 20px;
    gap: 17px;
    align-items: flex-start;
  }
  .guide-art {
    width: 49px;
    height: 59px;
    border-radius: 13px;
  }
  .guide-art svg {
    width: 28px;
  }
  .guide-callout .eyebrow {
    font-size: 7px;
  }
  .guide-callout h2 {
    font-size: 16px;
  }
  .guide-callout p {
    font-size: 10px;
  }
  .guide-callout .text-link {
    font-size: 10px;
  }
  .portfolio-grid {
    grid-template-columns: 1fr;
    padding: 0 18px 18px;
    gap: 9px;
  }
  .data-table th,
  .data-table td {
    padding: 15px 13px;
  }
  .data-table th:first-child,
  .data-table td:first-child {
    padding-left: 18px;
  }
  .data-table .ticket-title {
    min-width: 200px;
  }
  .page-footer {
    flex-direction: column;
    align-items: center;
    font-size: 8px;
    padding: 17px;
  }
  .profile-menu .avatar {
    width: 31px;
    height: 31px;
  }
  .card.padded {
    padding: 21px;
  }
  .form-grid,
  .form-grid.three {
    grid-template-columns: 1fr;
  }
  .form-section {
    padding: 21px 18px;
  }
  .form-actions {
    padding: 18px;
    flex-direction: column;
  }
  .form-actions .button {
    width: 100%;
  }
  .filter-bar {
    padding: 16px;
    gap: 10px;
  }
  .filter-bar .search-field {
    width: 100%;
    flex-basis: 100%;
  }
  .filter-bar select {
    max-width: none;
    flex: 1;
  }
  .filter-bar .button {
    padding: 11px;
  }
  .two-column,
  .three-column {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .detail-sidebar {
    grid-template-columns: 1fr;
  }
  .detail-grid {
    gap: 19px;
  }
  .ticket-heading h1 {
    font-size: 23px;
  }
  .ticket-heading .subline {
    gap: 10px;
  }
  .conversation-intro {
    padding: 20px;
  }
  .conversation {
    padding: 0 20px;
  }
  .message-header time {
    max-width: 80px;
    text-align: right;
  }
  .composer {
    padding: 20px;
  }
  .private-composer {
    padding: 18px;
  }
  .detail-sidebar .card.padded {
    padding: 21px;
  }
  .plan-grid {
    grid-template-columns: 1fr;
  }
  .usage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .usage-item {
    padding: 14px;
  }
  .schedule-banner {
    align-items: stretch;
    flex-direction: column;
  }
  .schedule-banner select {
    max-width: none;
  }
  .article-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .article-card {
    min-height: 180px;
    padding: 22px;
  }
  .article-card .article-icon {
    margin-bottom: 16px;
  }
  .article-body {
    padding: 24px 20px;
  }
  .article-body h1 {
    font-size: 26px;
  }
  .approval-head {
    flex-direction: column;
    gap: 8px;
  }
  .inline-form {
    align-items: stretch;
    flex-direction: column;
  }
  .inline-form .button {
    width: 100%;
  }
  .form-stack {
    gap: 15px;
  }
  .code-grid {
    grid-template-columns: 1fr;
  }
  .auth-story {
    min-height: 133px;
  }
  .auth-panel {
    padding: 35px 25px;
  }
  .auth-note {
    margin-top: 25px;
  }
  .time-row {
    padding: 18px;
  }
  .time-actions details {
    min-width: 100%;
  }
  .checkbox-row {
    gap: 11px;
  }
  .offline-banner {
    font-size: 11px;
    padding: 12px;
  }
  .alert {
    font-size: 11px;
    padding: 13px;
  }
  .button-row form {
    flex: 1;
  }
  .button-row form .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
@media print {
  .sidebar,
  .topbar,
  .page-footer,
  .button,
  .filter-bar,
  .private-composer,
  .composer,
  .form-actions {
    display: none !important;
  }
  .app-main {
    margin: 0;
    width: 100%;
  }
  .page-content {
    padding: 0;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
  .detail-grid,
  .dashboard-columns {
    display: block;
  }
  body {
    background: #fff;
    color: #111;
  }
}

/* Readability: secondary information remains legible on a light background. */
.help,
.table-meta,
.data-table td > small,
.stat-card small,
.allowance-note,
.allowance-plan strong,
.mini-ledger > div,
.guide-callout p,
.workspace-tag,
.profile-name small,
.detail-list dt,
.time-row small,
.credit-row p,
.article-card p {
  color: #756b7d;
}
.help {
  font-size: 11px;
}
.data-table {
  font-size: 12px;
}
.data-table th {
  font-size: 10px;
}
.table-meta {
  font-size: 10px;
}
.ticket-title {
  font-size: 12px;
}
.badge {
  font-size: 10px;
}
.stat-label {
  font-size: 11px;
  color: #756b7d;
}
.nav-heading {
  color: #81758b;
}
.care-card p {
  color: #727650;
}
.care-card .text-link {
  color: #657022;
}

/* Product catalogue and agreements extend the existing responsive portal UI.
   A current agreement and a proposal keep visibly separate headings and cards. */
.application-label {
  color: var(--plum-dark);
  font-weight: 650;
}
.catalogue-description {
  max-width: 36rem;
  white-space: normal;
}
.product-code {
  margin: 8px 0 5px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-wrap: anywhere;
}
.coverage-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.coverage-toolbar label {
  flex: 1;
  min-width: min(100%, 240px);
  max-width: 540px;
}
.coverage-toolbar select {
  width: 100%;
}
.section-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.section-intro h2 {
  margin-top: 6px;
}
.section-intro p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.coverage-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.coverage-stack {
  display: grid;
  gap: 14px;
  padding: 8px 18px 20px;
}
.coverage-card {
  padding: 22px;
  min-width: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 3px solid var(--lime);
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.coverage-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.coverage-card h3 {
  font-size: 17px;
  line-height: 1.35;
  margin-bottom: 5px;
}
.coverage-agreement-name {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 8px;
}
.coverage-card > .text-link {
  display: inline-flex;
  margin-top: 18px;
}
.coverage-card .mini-ledger {
  margin: 14px 0;
}
.coverage-balance {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.coverage-balance strong {
  color: var(--plum-dark);
  font-size: 32px;
  line-height: 1.1;
  letter-spacing: -1px;
}
.coverage-balance small {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  margin-left: 3px;
}
.coverage-balance > span,
.coverage-allowance {
  color: var(--muted);
  font-size: 12px;
}
.coverage-allowance {
  margin: 18px 0 8px;
}
.coverage-allowance strong {
  color: var(--plum-dark);
  font-size: 26px;
}
.coverage-recorded-terms,
.agreement-preserved,
.coverage-empty {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.coverage-recorded-terms {
  margin: 18px 0 12px;
  color: var(--plum-dark);
}
.coverage-recorded-terms p {
  color: var(--muted);
  font-size: 12px;
  margin: 5px 0 0;
}
.coverage-notice {
  padding: 20px;
  margin: 18px 0;
  background: #f7f4fa;
  border: 1px solid #e2d6eb;
  border-radius: 12px;
  color: #52405f;
  font-size: 12px;
  line-height: 1.65;
}
.coverage-notice > p:last-child,
.coverage-notice > div > p:last-child {
  margin-bottom: 0;
}
.coverage-empty > div {
  min-width: 0;
}
.coverage-empty p {
  font-size: 12px;
  color: var(--muted);
}
.coverage-empty-icon {
  padding: 12px;
  background: var(--plum-soft);
  border-radius: 12px;
  color: var(--plum);
}
.coverage-actions {
  justify-content: center;
  margin: 15px 0;
}
.coverage-term-row {
  padding: 22px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.coverage-term-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.coverage-term-row p {
  margin: 5px 0 9px;
  font-size: 12px;
  color: var(--muted);
}
.renewal-offer {
  border-color: #dfd2e8;
}
.renewal-offer h3 {
  font-size: 19px;
  margin: 16px 0 6px;
}
.renewal-offer .badge {
  white-space: normal;
}
.coverage-history {
  display: grid;
  gap: 8px;
}
.coverage-history-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
}
.coverage-history-link small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.agreement-commercial-summary {
  max-width: 340px;
  text-align: right;
}
.agreement-optional-values {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
}
.agreement-optional-values legend {
  color: var(--plum-dark);
  font-weight: 650;
  font-size: 12px;
  padding: 0 8px;
}
.agreement-optional-values .form-grid {
  margin-top: 15px;
}
.recorded-work-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.badge-archived,
.badge-retired,
.badge-historical {
  color: #675c70;
  background: #f0edf3;
}
.badge-published {
  color: var(--green);
  background: var(--green-soft);
}
@media (max-width: 700px) {
  .coverage-grid,
  .recorded-work-grid {
    grid-template-columns: 1fr;
  }
  .coverage-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
  .coverage-toolbar label {
    max-width: none;
  }
  .coverage-card,
  .coverage-term-row {
    padding: 19px;
  }
  .coverage-empty {
    flex-direction: column;
  }
  .agreement-commercial-summary {
    text-align: left;
    max-width: none;
  }
  .agreement-optional-values {
    padding: 15px;
  }
  .coverage-notice {
    padding: 17px;
  }
  .coverage-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
