.record-tag { display: inline-block; color: #0066ff; background: #eaf6ff; border: 1px solid #c4e4ff; padding: 4px 11px; border-radius: 5px; font-size: 12px; line-height: 1.7; }
.record-share-panel { border-color: #b7d9ff; }
.record-share-heading h2 { margin-top: 14px; }
.record-share-options { display: grid; grid-template-columns: minmax(180px, 260px) 1fr; align-items: end; gap: 22px; margin: 24px 0 18px; }
.record-share-options label, .record-share-result label, .record-management label { display: grid; gap: 8px; color: #233d59; font-size: 14px; }
.record-share-options select, .record-share-result input, .record-management input { width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid #bfd1e6; border-radius: 5px; background: #fff; color: #233d59; font: inherit; }
.record-share-options p { margin: 0; font-size: 13px; }
.record-share-consent { display: flex; gap: 10px; align-items: flex-start; padding: 15px; background: #f5faff; border-radius: 6px; margin: 0 0 20px; font-size: 13px; line-height: 1.9; color: #4b6480; }
.record-share-consent input { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 4px; accent-color: #0066ff; }
.record-share-result > p:first-child { display: flex; flex-direction: column; gap: 5px; color: #0066ff; }
.record-share-result [data-record-expiry] { color: #536b83; font-size: 13px; }
.record-management { border-top: 1px solid #dae7f6; margin-top: 22px; padding-top: 18px; }
.record-management summary { cursor: pointer; color: #0066ff; font-size: 14px; }
.record-management p { font-size: 13px; }
.record-danger { color: #a13327; }
[data-record-status]:empty { display: none; }
[data-record-status] { font-size: 14px; color: #0066ff; margin: 18px 0 0; overflow-wrap: anywhere; }
.record-copy-fallback { width: 100%; min-height: 90px; margin-top: 12px; padding: 12px; border: 1px solid #b7d9ff; border-radius: 5px; color: #244463; font: 13px/1.8 monospace; overflow-wrap: anywhere; }
.record-toast { position: fixed; z-index: 90; top: calc(90px + env(safe-area-inset-top)); left: 50%; max-width: min(460px, calc(100vw - 32px)); width: max-content; padding: 13px 19px; color: #fff; background: #0066ff; border: 1px solid #1687ff; border-radius: 8px; box-shadow: 0 8px 25px #0066ff25; font-size: 14px; line-height: 1.7; text-align: center; pointer-events: none; opacity: 0; visibility: hidden; transform: translate(-50%, -6px); transition: opacity .2s, transform .2s, visibility .2s; }
.record-toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.record-toast.is-warning { background: #715023; border-color: #927040; }
.record-view-page { background: #f3f8ff; }
.record-header { position: static; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 22px max(24px, calc((100% - 900px) / 2)); background: #fff; border-bottom: 1px solid #dce9f8; }
.record-header > a:last-child { font-size: 13px; color: #0066ff; white-space: nowrap; }
.record-brand { font-size: 24px; font-weight: 700; color: #152e48; }
.record-brand span { color: #008cff; }
.record-brand small { font-size: 12px; color: #0078c8; font-weight: 500; margin-left: 5px; }
.record-shell { max-width: 850px; padding: 38px 24px 60px; margin: auto; }
.record-paper { padding: 38px 40px 30px; background: #fff; border: 1px solid #d7e6f8; border-radius: 12px; box-shadow: 0 8px 30px #2c619008; }
.record-paper-head { padding-bottom: 24px; border-bottom: 1px solid #e0ebf7; }
.record-paper h1 { font-size: clamp(25px, 4vw, 34px); line-height: 1.5; color: #163854; margin: 15px 0 8px; }
.record-paper p { color: #536b83; line-height: 1.9; }
.record-paper-head p { font-size: 14px; margin: 0; }
.record-context { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 30px; margin: 26px 0; }
.record-context div { min-width: 0; }
.record-context dt { color: #6a7f96; font-size: 12px; margin-bottom: 7px; }
.record-context dd { color: #263f58; margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.record-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid #c5e4ff; background: #f2faff; border-radius: 8px; }
.record-metrics > div { min-width: 0; padding: 20px 15px; border-right: 1px solid #d6eaff; }
.record-metrics > div:last-child { border: 0; }
.record-metrics span, .record-metrics small { display: block; color: #537e9e; font-size: 12px; }
.record-metrics strong { display: block; color: #0066ff; font: 600 clamp(22px, 4vw, 30px)/1.5 Arial,sans-serif; margin: 7px 0; overflow-wrap: anywhere; }
.record-section { margin-top: 30px; }
.record-section h2 { font-size: 17px; color: #233e59; margin-bottom: 15px; }
.record-checks { padding: 0; margin: 0; list-style: none; }
.record-checks li { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid #edf2f8; color: #465f78; font-size: 14px; }
.record-checks li > span { flex: 0 0 23px; height: 23px; background: #f0f4f9; color: #72859b; border-radius: 50%; text-align: center; line-height: 23px; }
.record-checks li.is-done > span { color: #0066ff; background: #e6f3ff; }
.record-checks small { display: block; color: #7a8da2; font-size: 12px; margin-top: 3px; }
.record-notes { overflow-wrap: anywhere; white-space: pre-wrap; padding: 16px; background: #f8fbff; border: 1px solid #e2edf8; border-radius: 6px; font-size: 14px; }
.record-paper .record-boundary { font-size: 12px; margin: 25px 0; }
.record-expiry { display: grid; gap: 7px; padding: 16px 0; border-top: 1px dashed #cbdced; color: #486c8b; font-size: 13px; overflow-wrap: anywhere; }
.record-expiry small { font-size: 12px; color: #7a8da2; }
.record-footnote { color: #6e849b; text-align: center; font-size: 12px; line-height: 1.9; margin: 22px 0 0; }
.record-footnote a { color: #0066ff; }
.record-empty { padding: 50px 35px; }
.record-empty p { font-size: 14px; }
.record-empty .btn { margin-top: 18px; }
@media (max-width: 600px) {
  .record-share-options { grid-template-columns: 1fr; gap: 12px; }
  .record-header { padding: 18px 16px; }
  .record-brand { font-size: 21px; }
  .record-brand small { display: none; }
  .record-shell { padding: 22px 12px 40px; }
  .record-paper { padding: 24px 19px; border-radius: 8px; }
  .record-context { gap: 19px; }
  .record-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .record-metrics > div { padding: 16px; }
  .record-metrics > div:nth-child(2) { border-right: 0; }
  .record-metrics > div:nth-child(-n+2) { border-bottom: 1px solid #d6eaff; }
  .record-paper .decision-actions { align-items: stretch; }
  .record-paper .decision-actions .btn { flex: 1 1 160px; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .record-toast { transition: none; } }
@media print {
  .record-header, .record-view-actions, .record-management, .record-share-panel, .record-toast, .record-copy-fallback, .record-footnote, [data-record-status] { display: none !important; }
  .record-shell { padding: 0; max-width: none; }
  .record-paper { box-shadow: none; border: 0; padding: 0; }
  .record-view-page { background: #fff; }
}
