.transaction-list-table-wrap {
  overscroll-behavior-inline: contain;
}

.transaction-list-table {
  width: max-content;
  min-width: 100%;
}

.transaction-list-table th,
.transaction-list-table td {
  white-space: nowrap;
}

.transaction-list-table .transaction-note-cell {
  width: 360px;
  min-width: 360px;
  max-width: 360px;
  white-space: normal;
}

.transaction-note-content {
  display: block;
  max-width: 360px;
  overflow-wrap: anywhere;
}

.transaction-note-cell .muted-line {
  max-width: 360px;
  overflow-wrap: anywhere;
}

.dashboard-report-panel {
  margin-bottom: 20px;
}

.report-details-toggle,
.report-methodology-toggle {
  flex: 0 0 auto;
}

.report-panel-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.report-details {
  padding: 0 24px 24px;
}

.report-details[hidden] {
  display: none;
}

.report-methodology {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(320px, 1.8fr);
  gap: 14px;
  margin-bottom: 16px;
}

.report-methodology-overlay {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(4px);
}

.report-methodology-overlay[hidden] {
  display: none;
}

.report-methodology-dialog {
  width: min(780px, 100%);
  max-height: min(82vh, 720px);
  overflow: auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: light-dark(#ffffff, #111827);
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

.report-methodology-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.report-methodology-dialog-head h2 {
  margin: 0 0 5px;
  color: var(--ink);
  font-size: 18px;
}

.report-methodology-dialog-head span {
  color: var(--muted);
  font-size: 13px;
}

.report-methodology-dialog .report-methodology {
  margin-bottom: 0;
}

.report-methodology section {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: light-dark(rgba(15, 23, 42, 0.025), rgba(255, 255, 255, 0.025));
}

.report-methodology h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 13px;
}

.report-methodology p,
.report-methodology ol {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.report-methodology ol {
  padding-left: 18px;
}

.report-methodology li + li {
  margin-top: 4px;
}

.dashboard-report-table {
  min-width: 760px;
}

@media (max-width: 800px) {
  .report-methodology {
    grid-template-columns: 1fr;
  }

  .report-methodology-overlay {
    padding: 14px;
  }

  .report-methodology-dialog {
    padding: 18px;
  }
}

.dashboard-report-table th,
.dashboard-report-table td {
  white-space: nowrap;
}

.dashboard-crm-report-table,
.dashboard-conversion-report-table {
  min-width: 980px;
}

.dashboard-report-table th:first-child,
.dashboard-report-table td:first-child {
  position: sticky;
  left: 0;
}

.dashboard-report-table th:first-child {
  z-index: 2;
}

.dashboard-report-table td:first-child {
  z-index: 1;
  background: var(--panel);
  font-weight: 700;
}

.dashboard-report-table tr:hover td:first-child {
  background: var(--panel);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.transaction-association-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 16px 24px 4px;
}

.association-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: light-dark(rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.025));
}

.association-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.association-order-card .association-card-header {
  background: light-dark(rgba(124, 58, 237, 0.07), rgba(129, 140, 248, 0.08));
}

.association-student-card .association-card-header {
  background: light-dark(rgba(234, 88, 12, 0.06), rgba(45, 212, 191, 0.07));
}

.association-kind {
  display: block;
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
}

.association-card h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.35;
}

.association-title-link {
  color: var(--ink);
  text-decoration: none;
}

.association-title-link:hover {
  color: var(--primary);
}

.association-id {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  background: light-dark(rgba(255, 255, 255, 0.65), rgba(0, 0, 0, 0.14));
  font-size: 11px;
  font-weight: 700;
}

.association-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 18px;
  padding: 4px 14px 10px;
}

.association-field {
  min-width: 0;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

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

.association-field span,
.association-field strong {
  display: block;
}

.association-field span {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.association-field strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 900px) {
  .dash-grid,
  .transaction-association-grid {
    grid-template-columns: 1fr;
  }
}

.profile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  box-shadow: 0 8px 20px var(--primary-glow);
  color: #fff;
  border: 0;
}

.profile-head h2 {
  margin: 4px 0;
  font-size: 26px;
  font-weight: 800;
  font-family: 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.profile-head p {
  margin: 0;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 14px;
}

.eyebrow {
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.profile-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.student-status-form {
  justify-content: flex-start;
}

.student-status-form input[name="status_note"] {
  width: min(260px, 100%);
}

.order-confirmation-panel {
  display: grid;
  gap: 16px;
}

.order-confirmation-panel .panel-title {
  margin-bottom: 0;
}

.confirmation-quick-grid {
  display: grid;
  grid-template-columns: repeat(3, 280px);
  gap: 12px;
  width: fit-content;
  max-width: 100%;
}

.confirmation-secondary-grid {
  display: grid;
  grid-template-columns: 420px 300px;
  gap: 12px;
  align-items: start;
  width: fit-content;
  max-width: 100%;
}

.confirmation-quick-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: light-dark(rgba(99, 102, 241, 0.025), rgba(255, 255, 255, 0.025));
}

.crm-source-match-inline {
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: light-dark(rgba(99, 102, 241, 0.025), rgba(255, 255, 255, 0.025));
}

.crm-source-match-inline .toolbar {
  display: flex;
  align-items: end;
  gap: 8px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.crm-source-match-inline .toolbar label {
  flex: 1 1 360px;
  min-width: 180px;
}

.crm-source-match-inline .toolbar input {
  width: 100%;
}

.crm-source-match-inline > .inline-action-form {
  align-self: flex-start;
  margin: 0;
}

.confirmation-action-form,
.confirmation-date-form {
  margin-top: auto;
}

.confirmation-action-form select,
.confirmation-action-form input {
  min-width: 0;
}

.confirmation-action-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.confirmation-action-form label input {
  width: 100%;
}

.confirmation-date-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.confirmation-date-form label {
  display: grid;
  min-width: 0;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.confirmation-date-form input {
  width: 100%;
  min-width: 0;
}

.confirmation-date-form button {
  grid-column: auto;
}

.confirmation-price-item {
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.confirmation-secondary-grid .confirmation-price-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: light-dark(rgba(99, 102, 241, 0.025), rgba(255, 255, 255, 0.025));
}

.confirmation-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.confirmation-item .muted {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.5;
}

.confirmation-item .muted strong {
  color: var(--ink);
}

.confirmation-price-item .detail-grid {
  padding: 8px 0 0;
}

@media (max-width: 1040px) {
  .confirmation-quick-grid {
    grid-template-columns: repeat(2, 280px);
  }

  .confirmation-secondary-grid {
    grid-template-columns: 420px;
  }

  .confirmation-date-item {
    grid-column: auto;
  }
}

@media (max-width: 640px) {
  .confirmation-quick-grid,
  .confirmation-secondary-grid {
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .confirmation-date-item {
    grid-column: auto;
  }

  .crm-source-match-inline .toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
  margin-bottom: 20px;
}

.info-item {
  min-height: 88px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--panel);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.info-item strong {
  overflow-wrap: anywhere;
  font-size: 14px;
  color: var(--ink);
  font-weight: 700;
}

.note-text {
  margin: 0;
  color: var(--ink);
  line-height: 1.6;
  font-size: 14px;
  font-weight: 500;
}

.import-card p {
  margin-top: -4px;
  color: var(--muted);
}

.auth-shell {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 28px;
  background-color: var(--bg);
  background-image: var(--radial-gradient);
  background-attachment: fixed;
}

.auth-shell .main {
  width: min(940px, 100%);
  padding: 0;
}

.login-card {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 32px 64px rgba(0, 0, 0, 0.2);
  backdrop-filter: var(--backdrop-blur);
}

@media (max-width: 768px) {
  .login-card {
    grid-template-columns: 1fr;
  }
  .login-hero {
    display: none;
  }
}

.login-hero {
  min-height: 560px;
  padding: 56px;
  color: #fff;
  background: 
    radial-gradient(circle at 0% 0%, rgba(99, 102, 241, 0.15), transparent 45%),
    linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-hero h1 {
  width: min(380px, 100%);
  margin: 0 0 18px;
  font-size: 36px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.login-hero p {
  width: min(420px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 500;
}

.login-form {
  display: grid;
  align-content: center;
  gap: 20px;
  padding: 48px;
}

.login-form h2 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.login-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.login-form input {
  width: 100%;
}

.admin-login-form {
  display: grid;
  gap: 12px;
  margin-top: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.demo-accounts {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  background: light-dark(rgba(0, 0, 0, 0.02), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  font-size: 12px;
}

.demo-accounts strong {
  color: var(--ink);
}

/* Transaction Creation Form */
.transaction-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 20px;
  max-width: 800px;
  margin-top: 14px;
}

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

.transaction-form-full-width {
  grid-column: span 2;
}

.transaction-form-actions {
  grid-column: span 2;
  margin-top: 8px;
  display: flex;
  gap: 10px;
}

@media (max-width: 640px) {
  .transaction-form-grid,
  .transaction-form-row {
    grid-template-columns: 1fr;
  }
  .transaction-form-full-width,
  .transaction-form-actions {
    grid-column: span 1;
  }
}

.transaction-form-group {
  display: grid;
  gap: 6px;
}

.transaction-form-group label {
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}

.transaction-form-group label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: normal;
  margin-left: 6px;
}

.transaction-form-group input,
.transaction-form-group select,
.transaction-form-group textarea {
  width: 100%;
}

textarea {
  min-height: 80px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: light-dark(#fff, rgba(15, 23, 42, 0.4));
  font: inherit;
  font-size: 14px;
  resize: vertical;
  transition: var(--transition-fast);
}

textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-glow);
}

/* Details Layout Restyle */
.details-wrapper {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 24px;
}

.details-wrapper .info-group {
  background: var(--panel);
  border-radius: var(--radius-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.details-wrapper .info-group h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}

.info-group-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid light-dark(rgba(0,0,0,0.06), rgba(255,255,255,0.06));
}

.info-group-edit {
  flex: 0 0 auto;
}

.info-group-table {
  margin: 0;
  border: 0;
  box-shadow: none;
}

.student-edit-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 20px 0 28px;
}

.student-edit-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 76px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: light-dark(#fff, rgba(15, 23, 42, 0.35));
  text-decoration: none;
  transition: var(--transition-fast);
}

.student-edit-section:hover {
  border-color: var(--primary);
  transform: translateY(-1px);
}

.student-edit-section.is-active {
  border-color: var(--primary);
  background: var(--primary-glow);
  box-shadow: inset 0 0 0 1px var(--primary);
}

.student-edit-section strong {
  font-size: 14px;
}

.student-edit-section span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0;
  table-layout: fixed;
  border-radius: var(--radius-sm);
  overflow: hidden;
  border-style: hidden;
  box-shadow: 0 0 0 1px var(--line);
}

.detail-table th,
.detail-table td {
  border: 1px solid var(--line);
  padding: 14px 20px;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
}

.detail-table th {
  background: light-dark(#f8fafc, rgba(15, 23, 42, 0.4));
  color: var(--muted);
  font-weight: 600;
  width: 15%;
  white-space: nowrap;
}

.detail-table td {
  background: transparent;
  color: var(--ink);
  font-weight: 500;
  width: 35%;
  word-wrap: break-word;
}

@media (max-width: 768px) {
  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }
  .detail-table th {
    background: transparent;
    border-bottom: none;
    padding-bottom: 4px;
    color: var(--muted);
  }
  .detail-table td {
    border-bottom: 1px solid var(--line);
    padding-top: 4px;
    margin-bottom: 8px;
  }
}
.student-order-stats {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.student-order-stats .stat-card {
  min-width: 0;
  height: 100%;
  min-height: 86px;
  padding: 13px 16px;
}

.student-order-stats .stat-card > div:last-child {
  display: flex;
  min-width: 0;
  min-height: 58px;
  flex: 1;
  flex-direction: column;
  justify-content: center;
}

.student-order-stats .stat-card strong {
  margin: 3px 0;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.student-order-stats .stat-card span {
  min-height: 17px;
  font-size: 12px;
  line-height: 1.35;
}

/* The order list carries period, history and current-state columns. Keep each
 * value readable and let the table scroll horizontally instead of compressing
 * cells into several narrow lines. */
.student-order-list-wrap {
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
}

.student-order-list-table {
  width: max-content;
  min-width: 1760px;
}

.student-order-list-table th,
.student-order-list-table td {
  white-space: nowrap;
}

.student-order-link-transaction {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.student-order-link-transaction > span {
  max-width: 560px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.student-order-link-transaction .inline-form {
  flex: 0 0 auto;
}

@media (max-width: 720px) {
  .student-order-link-transaction {
    align-items: stretch;
    flex-direction: column;
  }
}

.project-master-forms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.project-master-forms .inline-form,
.project-version-form {
  align-items: end;
  flex-wrap: wrap;
}

.project-version-form {
  margin-top: 12px;
}

.project-member-actions .inline-action-form {
  margin-top: 8px;
}

.project-member-actions .inline-action-form span {
  min-width: 72px;
  color: var(--muted);
  font-size: 13px;
}

.project-major-maintenance > summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 700;
}

.project-major-maintenance .project-member-actions {
  margin-top: 10px;
}

.project-price-toggle {
  appearance: none;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent);
  cursor: pointer;
  font: inherit;
  font-variant-numeric: tabular-nums;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-price-toggle:hover {
  color: color-mix(in srgb, var(--accent) 76%, var(--text));
}

.project-version-forms {
  padding: 0 14px 14px;
}

.project-version-forms .project-version-form + .project-version-form {
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.project-version-form strong {
  min-width: 72px;
  color: var(--text);
  font-size: 13px;
}

.project-reference-edit {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.project-reference-edit summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.project-reference-edit form {
  margin-top: 12px;
}

.project-list-wrap {
  overscroll-behavior-inline: contain;
}

.project-price-filters {
  margin: 14px 0 18px;
}

.project-price-scope {
  align-self: center;
  color: var(--muted);
  font-size: 13px;
}

.project-category-pill {
  min-width: 48px;
  justify-content: center;
  font-weight: 800;
}

.project-category-a {
  color: light-dark(#9a3412, #fed7aa);
  background: light-dark(#ffedd5, rgba(234, 88, 12, 0.18));
  border-color: light-dark(rgba(234, 88, 12, 0.3), rgba(251, 146, 60, 0.34));
}

.project-category-b {
  color: light-dark(#1d4ed8, #bfdbfe);
  background: light-dark(#dbeafe, rgba(37, 99, 235, 0.17));
  border-color: light-dark(rgba(37, 99, 235, 0.28), rgba(96, 165, 250, 0.34));
}

.project-category-c {
  color: light-dark(#047857, #a7f3d0);
  background: light-dark(#d1fae5, rgba(5, 150, 105, 0.16));
  border-color: light-dark(rgba(5, 150, 105, 0.28), rgba(52, 211, 153, 0.34));
}

.project-category-pending {
  color: var(--muted);
  background: light-dark(#f1f5f9, rgba(148, 163, 184, 0.14));
  border-color: var(--line);
}

.project-list-table {
  min-width: 1080px;
}

.project-school-cell {
  min-width: 150px;
  background: color-mix(in srgb, var(--surface) 92%, var(--accent) 8%);
  font-weight: 700;
  vertical-align: top;
}

.project-history-row > td {
  padding: 0 !important;
  background: color-mix(in srgb, var(--surface) 96%, var(--accent) 4%);
}

.project-price-history {
  display: grid;
  gap: 1px;
  border-bottom: 1px solid var(--line);
}

.project-price-history-item {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 16px;
  padding: 9px 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* Monthly performance-plan settings */
.form-help {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.performance-channel-rules summary {
  min-width: 320px;
  cursor: pointer;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.performance-channel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface) 94%, var(--accent) 6%);
}

.performance-channel-control {
  display: grid;
  grid-template-columns: minmax(78px, 1fr) minmax(88px, 1fr) minmax(70px, .8fr);
  align-items: center;
  gap: 8px;
}

.performance-channel-control label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.performance-channel-control select,
.performance-channel-control input {
  min-width: 0;
}
