.pt-nav-section {
  margin-top: 22px;
  padding-top: 20px;
}

.pt-nav-section .sidebar-label {
  color: #8eb0a5;
}

.pt-view {
  --pt-positive: #18745f;
  --pt-warning: #a86514;
  --pt-danger: #a8483c;
  --pt-blue: #38779a;
}

.pt-page-heading {
  display: flex;
  margin-bottom: 22px;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.pt-page-heading h1 {
  margin: 2px 0 5px;
  font-family: Georgia, serif;
  font-size: clamp(30px, 3vw, 42px);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.08;
}

.pt-page-heading p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.profile-security-section {
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.profile-security-section .pt-page-heading {
  align-items: center;
}

.profile-security-section .pt-page-heading h2 {
  margin: 2px 0 5px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.1;
}

.profile-security-section .pt-security-status {
  margin-bottom: 14px;
}

.pt-actions,
.pt-inline-actions,
.pt-toolbar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 9px;
}

.pt-toolbar {
  justify-content: space-between;
}

.pt-button {
  display: inline-flex;
  min-height: 40px;
  padding: 9px 14px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--forest);
  background: var(--mint-soft);
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: transform .16s, border-color .16s, background .16s;
}

.pt-button:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(45, 116, 96, .18);
}

.pt-button:disabled {
  opacity: .55;
  cursor: wait;
}

.pt-button--primary {
  color: #fff;
  background: var(--forest);
  box-shadow: 0 7px 18px rgba(23, 63, 58, .14);
}

.pt-button--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--surface);
  box-shadow: none;
}

.pt-button--danger {
  color: var(--pt-danger);
  background: #faece9;
}

.pt-button--small {
  min-height: 32px;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 11px;
}

.pt-panel {
  min-width: 0;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pt-panel + .pt-panel {
  margin-top: 14px;
}

.pt-calendar-panel {
  margin-bottom: 14px;
}

.pt-calendar-subscription {
  display: grid;
  gap: 13px;
}

.pt-calendar-subscription--empty {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.pt-calendar-subscription strong {
  display: block;
  font-size: 14px;
}

.pt-calendar-subscription p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.pt-calendar-subscription__status {
  display: flex;
  align-items: center;
  gap: 11px;
}

.pt-calendar-subscription__link {
  max-width: 920px;
}

.pt-calendar-subscription__notice {
  padding: 10px 12px;
  border-radius: 9px;
  color: #76522a !important;
  background: #fff6e6;
}

.pt-panel-heading {
  display: flex;
  margin-bottom: 17px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pt-panel-heading h2,
.pt-panel-heading h3 {
  margin: 2px 0 0;
  font-family: Georgia, serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.pt-panel-heading h3 {
  font-size: 19px;
}

.pt-panel-heading p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.pt-eyebrow {
  color: var(--forest-2);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pt-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, .8fr);
  align-items: start;
  gap: 14px;
}

.pt-layout--equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pt-decision-workbench {
  padding: 0;
  overflow: hidden;
}

.pt-decision-toolbar {
  display: flex;
  padding: 18px 20px;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 82%, var(--mint-soft));
}

.pt-scenario-picker select {
  display: block;
  min-width: min(420px, 56vw);
  margin-top: 4px;
  padding: 0 34px 0 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
  cursor: pointer;
}

.pt-scenario-picker select:disabled {
  color: var(--muted);
  cursor: default;
}

.pt-horizon-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.pt-decision-verdict {
  display: flex;
  padding: 18px 20px 14px;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  background: linear-gradient(135deg, rgba(95, 177, 148, .13), transparent 58%);
}

.pt-decision-verdict--warning {
  background: linear-gradient(135deg, rgba(194, 128, 42, .13), transparent 58%);
}

.pt-decision-verdict--danger {
  background: linear-gradient(135deg, rgba(168, 72, 60, .13), transparent 58%);
}

.pt-decision-verdict > div {
  display: grid;
  gap: 5px;
}

.pt-decision-verdict .pt-badge {
  width: max-content;
}

.pt-decision-verdict strong {
  font-family: Georgia, serif;
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -.02em;
}

.pt-decision-verdict p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pt-decision-verdict__period {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.pt-decision-results {
  display: grid;
  padding: 0 20px 18px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.pt-decision-results article {
  display: grid;
  min-width: 0;
  padding: 12px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.pt-decision-results span,
.pt-decision-results small {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-decision-results span {
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pt-decision-results strong {
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-decision-results .is-positive {
  color: var(--pt-positive);
}

.pt-decision-results .is-negative {
  color: var(--pt-danger);
}

.pt-decision-body {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, .8fr);
  border-top: 1px solid var(--line);
}

.pt-decision-forecast,
.pt-decision-conditions {
  min-width: 0;
  padding: 20px;
}

.pt-decision-conditions {
  border-left: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 91%, var(--mint-soft));
}

.pt-adjustment-list .pt-row {
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

.pt-condition-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.pt-condition-form h3 {
  margin: 0 0 12px;
  font-size: 14px;
}

.pt-decision-secondary {
  margin-top: 14px;
}

.pt-decision-secondary > .pt-panel + .pt-panel {
  margin-top: 0;
}

.pt-stack {
  display: grid;
  gap: 12px;
}

.pt-metrics {
  display: grid;
  margin-bottom: 14px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.pt-metric {
  display: grid;
  min-width: 0;
  min-height: 113px;
  padding: 16px;
  align-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.pt-metric span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pt-metric strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-family: Georgia, serif;
  font-size: clamp(20px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-metric small {
  color: var(--muted);
  font-size: 10px;
}

.pt-metric--positive {
  border-color: rgba(47, 142, 111, .28);
  background: linear-gradient(135deg, var(--surface), var(--mint-soft));
}

.pt-metric--warning {
  border-color: rgba(194, 128, 42, .3);
  background: linear-gradient(135deg, var(--surface), rgba(255, 244, 219, .65));
}

.pt-state {
  display: grid;
  min-height: 150px;
  padding: 28px;
  place-content: center;
  justify-items: center;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.pt-state strong {
  color: var(--ink);
  font-size: 14px;
}

.pt-state p {
  max-width: 430px;
  margin: 0;
  font-size: 12px;
}

.pt-state--error {
  border-color: rgba(168, 72, 60, .3);
  color: var(--pt-danger);
  background: rgba(250, 236, 233, .38);
}

.pt-spinner {
  width: 23px;
  height: 23px;
  border: 2px solid var(--line);
  border-top-color: var(--forest-2);
  border-radius: 50%;
  animation: pt-spin .72s linear infinite;
}

@keyframes pt-spin {
  to { transform: rotate(360deg); }
}

.pt-list {
  display: grid;
  gap: 9px;
}

.pt-row,
.pt-card {
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface) 94%, var(--mint-soft));
}

.pt-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
}

.pt-row__main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pt-row__main strong,
.pt-card strong {
  min-width: 0;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
}

.pt-row__main span,
.pt-row__main small,
.pt-card small {
  color: var(--muted);
  font-size: 10px;
}

.pt-row__value {
  display: grid;
  justify-items: end;
  gap: 4px;
  text-align: right;
}

.pt-row__value strong {
  color: var(--forest);
}

.pt-badge {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  color: var(--forest-2);
  background: var(--mint-soft);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.pt-badge--warning {
  color: var(--pt-warning);
  background: #fff3dc;
}

.pt-badge--danger {
  color: var(--pt-danger);
  background: #fae9e5;
}

.pt-badge--neutral {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 65%, var(--line));
}

.pt-insight {
  display: grid;
  padding: 15px;
  grid-template-columns: 8px minmax(0, 1fr);
  gap: 13px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.pt-insight::before {
  border-radius: 99px;
  background: var(--pt-blue);
  content: "";
}

.pt-insight[data-severity="success"]::before { background: var(--pt-positive); }
.pt-insight[data-severity="warning"]::before { background: var(--pt-warning); }
.pt-insight[data-severity="critical"]::before { background: var(--pt-danger); }

.pt-insight__body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.pt-insight__body p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pt-insight__action {
  color: var(--forest-2) !important;
  font-weight: 750;
}

.pt-details {
  border-top: 1px solid var(--line);
}

.pt-details summary {
  padding: 9px 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
  cursor: pointer;
}

.pt-details__body {
  display: grid;
  padding-bottom: 8px;
  gap: 6px;
}

.pt-forecast {
  display: grid;
  min-height: 235px;
  padding: 12px 4px 0;
  grid-auto-flow: column;
  grid-auto-columns: minmax(56px, 1fr);
  align-items: end;
  gap: 8px;
  overflow-x: auto;
}

.pt-forecast__point {
  display: grid;
  min-width: 56px;
  height: 210px;
  grid-template-rows: 22px minmax(80px, 1fr) 36px;
  align-items: end;
  justify-items: center;
  gap: 5px;
}

.pt-forecast__point > strong {
  color: var(--forest);
  font-size: 9px;
  white-space: nowrap;
}

.pt-forecast__bar-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: flex-end;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.pt-forecast__bar {
  width: min(36px, 72%);
  min-height: 4px;
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #75c4aa, var(--forest-2));
}

.pt-bar-height-5 { height: 5%; }
.pt-bar-height-10 { height: 10%; }
.pt-bar-height-15 { height: 15%; }
.pt-bar-height-20 { height: 20%; }
.pt-bar-height-25 { height: 25%; }
.pt-bar-height-30 { height: 30%; }
.pt-bar-height-35 { height: 35%; }
.pt-bar-height-40 { height: 40%; }
.pt-bar-height-45 { height: 45%; }
.pt-bar-height-50 { height: 50%; }
.pt-bar-height-55 { height: 55%; }
.pt-bar-height-60 { height: 60%; }
.pt-bar-height-65 { height: 65%; }
.pt-bar-height-70 { height: 70%; }
.pt-bar-height-75 { height: 75%; }
.pt-bar-height-80 { height: 80%; }
.pt-bar-height-85 { height: 85%; }
.pt-bar-height-90 { height: 90%; }
.pt-bar-height-95 { height: 95%; }
.pt-bar-height-100 { height: 100%; }

.pt-forecast__point span {
  color: var(--muted);
  font-size: 9px;
  text-align: center;
  text-transform: uppercase;
}

.pt-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.pt-form-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pt-field {
  display: grid;
  min-width: 0;
  gap: 6px;
}

.pt-field--wide {
  grid-column: 1 / -1;
}

.pt-field > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .03em;
  text-transform: uppercase;
}

.pt-field input,
.pt-field select,
.pt-field textarea {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 13px;
}

.pt-field textarea {
  min-height: 76px;
  resize: vertical;
}

.pt-field input:focus,
.pt-field select:focus,
.pt-field textarea:focus {
  border-color: var(--forest-2);
  box-shadow: 0 0 0 3px rgba(33, 87, 79, .1);
}

.pt-field input[readonly] {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 72%, var(--line));
  cursor: not-allowed;
}

.pt-form-actions {
  display: flex;
  margin-top: 15px;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.pt-form-error {
  margin: 10px 0 0;
  color: var(--pt-danger);
  font-size: 11px;
}

.pt-select {
  min-height: 39px;
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink);
  background: var(--surface);
  font: inherit;
  font-size: 12px;
}

.pt-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pt-check {
  display: inline-flex;
  padding: 8px 10px;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 9px;
  color: var(--ink);
  font-size: 11px;
  cursor: pointer;
}

.pt-check:has(input:checked) {
  border-color: #83b8a8;
  background: var(--mint-soft);
}

.pt-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pt-table-wrap--spaced {
  margin-top: 14px;
}

.pt-table {
  width: 100%;
  min-width: 650px;
  border-collapse: collapse;
}

.pt-table th,
.pt-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 11px;
}

.pt-table th {
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 80%, var(--mint-soft));
  font-size: 9px;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.pt-table tr:last-child td {
  border-bottom: 0;
}

.pt-table td:last-child,
.pt-table th:last-child {
  text-align: right;
}

.pt-receipt {
  display: grid;
  padding: 16px;
  gap: 11px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.pt-receipt__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.pt-receipt__head > div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pt-receipt__head h3 {
  margin: 0;
  font-size: 14px;
}

.pt-receipt__head span {
  color: var(--muted);
  font-size: 10px;
}

.pt-receipt__head > strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.pt-receipt__items {
  display: grid;
  gap: 5px;
}

.pt-receipt__item {
  display: grid;
  padding: 8px 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--surface) 72%, var(--mint-soft));
  font-size: 11px;
}

.pt-warranty {
  color: var(--pt-warning);
  font-size: 9px;
  font-weight: 750;
}

.pt-item-editor {
  display: grid;
  padding: 12px;
  grid-template-columns: minmax(160px, 1.5fr) repeat(3, minmax(100px, .65fr)) auto;
  align-items: end;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: color-mix(in srgb, var(--surface) 88%, var(--mint-soft));
}

.pt-item-editor + .pt-item-editor {
  margin-top: 8px;
}

.pt-item-editor .pt-field:nth-child(n+5) {
  grid-column: span 1;
}

.pt-attachment-panel {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.pt-attachment-list {
  margin-top: 10px;
}

.pt-attachment {
  align-items: center;
}

.pt-muted {
  color: var(--muted);
}

.pt-help-copy {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pt-candidate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.pt-recurring-sections {
  display: grid;
  gap: 18px;
}

.pt-recurring-planned,
.pt-recurring-detected {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.pt-recurring-planned {
  border-color: rgba(47, 142, 111, .3);
  background: linear-gradient(135deg, var(--surface), color-mix(in srgb, var(--surface) 72%, var(--mint-soft)));
}

.pt-salary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pt-salary-recurring {
  display: grid;
  min-width: 0;
  padding: 15px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
}

.pt-salary-recurring h3 {
  margin: 6px 0 3px;
  overflow: hidden;
  font-size: 15px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-salary-recurring small {
  color: var(--muted);
  font-size: 10px;
}

.pt-salary-recurring__value {
  display: grid;
  justify-items: end;
  gap: 2px;
  text-align: right;
}

.pt-salary-recurring__value strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.pt-salary-recurring__next {
  display: flex;
  padding-top: 10px;
  grid-column: 1 / -1;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.pt-salary-recurring__next b {
  color: var(--ink);
}

.pt-candidate {
  display: grid;
  min-width: 0;
  padding: 17px;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: var(--surface);
}

.pt-candidate__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.pt-candidate__head > div {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.pt-candidate__head h3 {
  margin: 0;
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pt-candidate__head strong {
  color: var(--forest);
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 500;
  white-space: nowrap;
}

.pt-candidate__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.pt-candidate__facts span {
  display: grid;
  padding: 8px;
  gap: 3px;
  border-radius: 9px;
  color: var(--muted);
  background: color-mix(in srgb, var(--surface) 65%, var(--mint-soft));
  font-size: 9px;
}

.pt-candidate__facts b {
  color: var(--ink);
  font-size: 11px;
}

.pt-rate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.pt-rate {
  display: grid;
  padding: 12px;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.pt-rate strong {
  color: var(--forest);
  font-size: 14px;
}

.pt-rate span {
  color: var(--muted);
  font-size: 10px;
}

.pt-connection {
  display: grid;
  padding: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.pt-connection__main {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.pt-connection__main span,
.pt-connection__main small {
  color: var(--muted);
  font-size: 10px;
}

.pt-security-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.pt-security-status article {
  display: grid;
  padding: 14px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 92%, var(--mint-soft));
}

.pt-security-status span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.pt-security-status strong {
  color: var(--ink);
  font-size: 14px;
}

.pt-secret {
  padding: 12px;
  overflow-wrap: anywhere;
  border: 1px dashed #8fb8ab;
  border-radius: 10px;
  color: var(--forest);
  background: var(--mint-soft);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 11px;
}

.pt-recovery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
}

.pt-recovery code {
  padding: 8px;
  border-radius: 8px;
  color: var(--ink);
  background: color-mix(in srgb, var(--surface) 70%, var(--mint-soft));
  text-align: center;
}

.pt-dialog {
  width: min(880px, calc(100vw - 28px));
  max-height: calc(100vh - 28px);
  padding: 0;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  color: var(--ink);
  background: var(--surface);
  box-shadow: 0 30px 80px rgba(13, 39, 35, .28);
}

#pt-scenario-dialog {
  width: min(640px, calc(100vw - 28px));
}

.pt-dialog::backdrop {
  background: rgba(18, 38, 34, .52);
  backdrop-filter: blur(4px);
}

.pt-dialog__body {
  padding: 26px;
}

.pt-dialog__head {
  display: flex;
  margin-bottom: 20px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pt-dialog__head h2 {
  margin: 3px 0 5px;
  font-family: Georgia, serif;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.025em;
}

.pt-dialog__head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.pt-dialog__close {
  display: grid;
  width: 34px;
  height: 34px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 9px;
  color: var(--ink);
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.pt-toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 32px));
  padding: 13px 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--forest);
  box-shadow: 0 15px 34px rgba(13, 39, 35, .24);
  font-size: 12px;
  font-weight: 750;
}

.pt-toast[data-kind="error"] {
  background: #8f443b;
}

[data-theme="dark"] .pt-button--danger {
  color: #ffb1a7;
  background: #482b28;
}

[data-theme="dark"] .pt-badge--warning {
  color: #ffd999;
  background: #473720;
}

[data-theme="dark"] .pt-badge--danger {
  color: #ffb7ae;
  background: #4b2926;
}

@media (max-width: 1180px) {
  .pt-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-decision-results { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-decision-body { grid-template-columns: 1fr; }
  .pt-decision-conditions {
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .pt-rate-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-item-editor { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pt-item-editor > .pt-field:first-child { grid-column: 1 / -1; }
}

@media (max-width: 900px) {
  .pt-layout,
  .pt-layout--equal { grid-template-columns: 1fr; }
  .pt-candidate-grid { grid-template-columns: 1fr; }
  .pt-salary-grid { grid-template-columns: 1fr; }
  .pt-form-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .profile-security-section { padding: 18px 14px; }

  .pt-page-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .pt-page-heading .pt-actions {
    width: 100%;
  }

  .pt-page-heading .pt-button {
    flex: 1;
  }

  .pt-decision-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .pt-scenario-picker select {
    width: 100%;
    min-width: 0;
  }

  .pt-decision-toolbar .pt-actions {
    justify-content: space-between;
  }

  .pt-decision-verdict {
    align-items: stretch;
    flex-direction: column;
  }

  .pt-decision-results {
    grid-template-columns: 1fr;
  }

  .pt-decision-forecast,
  .pt-decision-conditions,
  .pt-recurring-planned,
  .pt-recurring-detected {
    padding: 16px;
  }

  .pt-decision-workbench {
    padding: 0;
  }

  .pt-salary-recurring {
    grid-template-columns: 1fr;
  }

  .pt-salary-recurring__value {
    justify-items: start;
    text-align: left;
  }

  .pt-panel { padding: 17px; }
  .pt-metrics,
  .pt-form-grid,
  .pt-form-grid--three,
  .pt-rate-grid,
  .pt-security-status { grid-template-columns: 1fr; }
  .pt-field--wide { grid-column: auto; }
  .pt-row,
  .pt-connection { grid-template-columns: 1fr; }
  .pt-row__value { justify-items: start; text-align: left; }
  .pt-candidate__facts { grid-template-columns: 1fr 1fr; }
  .pt-item-editor { grid-template-columns: 1fr; }
  .pt-item-editor > .pt-field:first-child { grid-column: auto; }
  .pt-dialog__body { padding: 20px; }
  .pt-receipt__head { align-items: flex-start; flex-direction: column; }
  .pt-recovery { grid-template-columns: 1fr; }
  .pt-calendar-subscription--empty { grid-template-columns: 1fr; }
  .pt-calendar-subscription--empty .pt-button { width: 100%; }
  .pt-calendar-subscription__status { align-items: flex-start; }
  .pt-calendar-subscription .pt-inline-actions { align-items: stretch; flex-direction: column; }
  .pt-calendar-subscription .pt-inline-actions .pt-button { width: 100%; }
}
