:root { --cal-ink: #241832; --cal-muted: #625d68; --cal-border: #d9d3df; --cal-purple: #4d0a73; --cal-accent: #873cd5; --cal-green: #16803a; }
.cal-page { margin: 0; background: #faf9fb; color: var(--cal-ink); font-family: Arial, sans-serif; }
.cal-page *, .cal-cart * { box-sizing: border-box; letter-spacing: 0; }
.cal-toolbar { display: flex; align-items: center; gap: 24px; padding: 18px 32px; border-top: 5px solid var(--cal-purple); border-bottom: 1px solid var(--cal-border); background: white; }
.cal-search { display: flex; width: 260px; max-width: 100%; }
.cal-search input { min-width: 0; width: 100%; border: 1px solid var(--cal-border); border-right: 0; border-radius: 4px 0 0 4px; padding: 10px 12px; font: inherit; }
.cal-search .icon-button { border-radius: 0 4px 4px 0; background: var(--cal-purple); color: white; }
.cal-brand { margin: auto; font-family: Georgia, serif; font-size: 20px; color: var(--cal-purple); text-decoration: none; white-space: nowrap; }
.cal-main { max-width: 1080px; padding: 48px 32px 28px; margin: auto; }
.cal-heading, .current-title-row, .history-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.eyebrow { margin: 0 0 10px; color: var(--cal-purple); font-size: 13px; font-weight: bold; }
.cal-heading h1 { margin: 0; font: 42px Georgia, serif; overflow-wrap: anywhere; }
.cal-heading > div { min-width: 0; }
.add-selection { display: flex; gap: 10px; align-items: center; white-space: nowrap; font-size: 15px; }
.add-selection input { width: 19px; height: 19px; accent-color: var(--cal-purple); }
.current-record { margin-top: 30px; border-top: 3px solid #c29ff6; border-bottom: 1px solid var(--cal-border); padding: 24px 0 30px; }
.cal-page h2 { margin: 0; font-size: 18px; font-weight: 600; }
.cal-status { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.green { color: #16803a; } .yellow { color: #896000; } .red { color: #bd303f; }
.status-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: 0 0 9px; }
.cal-facts { display: flex; gap: 56px; flex-wrap: wrap; margin: 26px 0; }
.cal-facts dt { font-size: 13px; color: var(--cal-muted); margin-bottom: 8px; }
.cal-facts dd { margin: 0; font-size: 16px; }
.muted { color: var(--cal-muted); }
.primary-file { display: flex; align-items: center; gap: 16px; }
.primary-file > a:not(.icon-button) { font: 24px Georgia, serif; overflow-wrap: anywhere; }
.primary-file .file-mark { width: 34px; height: 42px; flex: 0 0 34px; color: var(--cal-purple); }
.cal-page a { color: var(--cal-purple); }
.cal-page a:hover { color: var(--cal-accent); }
.icon-button { display: inline-flex; justify-content: center; align-items: center; width: 42px; height: 42px; flex: 0 0 42px; border: 1px solid var(--cal-border); border-radius: 4px; background: white; color: var(--cal-purple); cursor: pointer; text-decoration: none; padding: 8px; }
.icon-button svg, .cal-cart svg { width: 20px; height: 20px; flex-shrink: 0; }
.icon-button:hover { background: #f0e8fa; }
.cal-page :focus-visible, .cal-cart :focus-visible { outline: 2px solid var(--cal-accent); outline-offset: 3px; }
.cal-history { margin-top: 32px; }
.history-heading { margin-bottom: 16px; font-size: 14px; }
.table-scroll { overflow-x: auto; }
.cal-history table { width: 100%; border-collapse: collapse; font-size: 14px; text-align: left; }
.cal-history th { background: #f0edf3; font-weight: 600; color: var(--cal-muted); }
.cal-history th, .cal-history td { padding: 12px 14px; border-bottom: 1px solid var(--cal-border); }
.cal-history td:nth-child(2) { overflow-wrap: anywhere; }
.cal-history td:first-child { white-space: nowrap; }
.cal-history td:last-child { width: 60px; }
.cal-legend { padding-top: 28px; font-size: 13px; color: var(--cal-muted); }
.legend-items { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.legend-items > span { display: flex; align-items: center; gap: 8px; }
.cal-legend p { line-height: 1.6; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.cal-cart { position: relative; font: 14px Arial, sans-serif; color: var(--cal-ink); }
.cal-cart summary { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 8px 12px; border: 1px solid var(--cal-border); border-radius: 4px; cursor: pointer; background: white; color: var(--cal-purple); list-style: none; white-space: nowrap; }
.cal-cart summary::-webkit-details-marker { display: none; }
.cart-panel { position: absolute; right: 0; top: calc(100% + 12px); width: 360px; max-width: calc(100vw - 32px); background: white; border: 1px solid var(--cal-border); border-radius: 6px; padding: 20px; box-shadow: 0 8px 30px #2418321a; z-index: 5; }
.cart-panel h2 { font: bold 17px Arial, sans-serif; margin: 0 0 14px; }
.cart-items { list-style: none; margin: 0 0 18px; padding: 0; max-height: 280px; overflow-y: auto; }
.cart-items li { padding: 10px 0; border-bottom: 1px solid var(--cal-border); overflow-wrap: anywhere; }
.cart-items small { display: block; color: var(--cal-muted); margin-top: 5px; }
.cart-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cart-actions button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border: 1px solid var(--cal-border); border-radius: 4px; padding: 10px 12px; background: white; color: var(--cal-purple); font: bold 14px Arial, sans-serif; cursor: pointer; }
.cart-actions .zip-button { background: #16803a; color: white; border-color: #16803a; }
.cart-actions button:disabled { opacity: .5; cursor: default; }
.cart-error { line-height: 1.5; color: #bd303f; margin-bottom: 0; }
.welcome-cart { position: absolute; top: 20px; right: 24px; }
@media (max-width: 650px) {
    .cal-toolbar { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
    .cal-search { flex: 1; width: auto; }
    .cal-brand { display: none; }
    .cal-main { padding: 30px 16px 20px; }
    .cal-heading h1 { font-size: 32px; }
    .cal-heading, .current-title-row { align-items: flex-start; flex-wrap: wrap; gap: 16px; }
    .cal-facts { gap: 22px; }
    .primary-file { gap: 10px; }
    .primary-file > a:not(.icon-button) { font-size: 19px; }
    .primary-file .file-mark { display: none; }
    .cal-history th, .cal-history td { padding: 10px 8px; }
    .welcome-cart { top: 52px; right: 16px; }
}