.trip-cards-panel { margin-top: 28px; scroll-margin-top: 85px; }
.tc-heading { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 16px; }
.tc-heading h2 { margin-bottom: 9px; }
.tc-heading p:last-child { color: var(--muted); font-size: 14px; margin: 0; }
.tc-demo-note { font-size: 12px; background: #f1f4eb; padding: 15px 18px; border-radius: 4px; margin: 22px 0; }
.tc-workspace { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: start; gap: 27px; }
.tc-cards-column, .tc-detail { min-width: 0; }
.tc-card-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.tc-card { display: flex; flex-direction: column; width: 100%; min-width: 0; border: 1px solid #c5d5c4; border-radius: 9px; padding: 21px; text-align: left; background: #eaf1e3; color: var(--ink); overflow-wrap: anywhere; }
.tc-money-card { background: #f3ecdc; border-color: #d5cbb4; }
.tc-card:hover { border-color: var(--sea); }
.tc-card[aria-pressed="true"] { border-color: var(--sea); box-shadow: inset 0 0 0 2px var(--sea); }
.tc-card-heading { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; font-size: 12px; line-height: 1.5; }
.tc-card-balance { display: block; font-family: Georgia, serif; font-size: 33px; line-height: 1.2; font-weight: normal; margin: 23px 0 15px; }
.tc-card-owner { display: block; font-size: 14px; font-weight: bold; line-height: 1.5; }
.tc-card-eligibility { font-size: 12px; line-height: 1.6; margin-top: 6px; }
.tc-card-demo { margin-top: auto; padding-top: 23px; font-size: 12px; display: flex; justify-content: space-between; gap: 15px; }
.tc-detail { padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: #fafbf7; overflow-wrap: anywhere; }
.tc-detail > h3 { font-size: 20px; }
.tc-detail-balance { font-family: Georgia, serif; font-size: 25px; margin: 10px 0; }
.tc-detail h4 { font-size: 14px; margin: 23px 0 14px; }
.trip-cards-panel .field-label { margin-top: 17px; }
.tc-detail form > button, .tc-issue form > button { margin-top: 17px; }
.tc-history { margin-top: 24px; border-top: 1px solid var(--line); }
.tc-history ol { list-style: none; padding: 0; margin: 0; max-height: 320px; overflow-y: auto; }
.tc-history li { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 12px; line-height: 1.55; }
.tc-history-description small { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; }
.tc-history li > span:last-child { flex-shrink: 0; }
.tc-issue { margin-top: 25px; border: 1px solid var(--line); border-radius: 5px; padding: 20px; }
.tc-issue summary { padding: 4px 0; font-size: 16px; cursor: pointer; }
.tc-issue summary:focus-visible { outline: 3px solid #a65b20; outline-offset: 3px; }
.tc-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
@media (max-width: 950px) { .tc-card-list { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .tc-workspace { grid-template-columns: 1fr; } .tc-card-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
  .tc-card-list, .tc-form-row { grid-template-columns: 1fr; }
  .tc-card, .tc-detail, .tc-issue { padding: 18px; }
  .tc-detail form > button, .tc-issue form > button { width: 100%; }
  .tc-history li { flex-wrap: wrap; gap: 6px 12px; }
}
