.record-page {
  --paper: var(--aem-ui-surface, #fff);
  --ink: var(--aem-ui-ink, #202227);
  --muted: var(--aem-ui-muted, #606875);
  --line: var(--aem-ui-line, #e1e4e8);
  --accent: #ad411d;
  --brand: #ed5a2a;
  --wash: #fff3ec;
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.55 -apple-system,BlinkMacSystemFont,"Segoe UI","Malgun Gothic",sans-serif;
}
@media (prefers-color-scheme:dark) {
  .record-page { --accent:#ff9975; --brand:#ff7548; --wash:#000; }
}
.record-bar *, .record-main * { box-sizing:border-box; }
.record-bar { background:var(--paper); border-bottom:1px solid var(--line); padding-top:env(safe-area-inset-top,0px); }
.record-bar-inner,.record-main { max-width:760px; margin-inline:auto; padding-inline:clamp(16px,4vw,32px); }
.record-bar-inner { display:grid; grid-template-columns:1fr auto 1fr; align-items:center; min-height:54px; }
.record-bar-inner strong { font-size:16px; }
.record-brand { justify-self:end; color:var(--brand); font-size:13px; font-weight:800; text-decoration:none; letter-spacing:.025em; }
.record-back { display:grid; place-items:center; justify-self:start; width:44px; height:44px; margin-left:-10px; color:inherit; }
.record-back svg { width:22px; height:22px; }
.record-main { padding-bottom:max(52px,env(safe-area-inset-bottom,0px)); }
.record-main h1,.record-main h2,.record-main h3,.record-main p { margin:0; }
.record-heading { padding-block:clamp(24px,5vw,42px) 22px; }
.record-kicker { color:var(--accent); font-weight:750; font-size:13px; }
.record-heading h1 { font-size:clamp(27px,5vw,38px); line-height:1.24; letter-spacing:-.045em; overflow-wrap:anywhere; margin:7px 0 11px; }
.record-meta { color:var(--muted); font-size:14px; }
.record-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; margin-top:16px; }
.record-action,.record-more,.record-text-action { display:inline-flex; align-items:center; justify-content:center; font:inherit; text-decoration:none; cursor:pointer; }
.record-action,.record-more { min-height:42px; border:1px solid var(--line); border-radius:12px; padding:8px 15px; font-size:14px; font-weight:650; color:var(--ink); background:var(--paper); }
.record-action.primary { background:var(--wash); border-color:var(--brand); color:var(--accent); }
.record-more { width:100%; margin-top:14px; }
.record-text-action { color:var(--muted); font-size:13px; background:transparent; border:0; min-height:40px; padding:5px 8px; }
.record-tabs { display:flex; gap:22px; border-block-end:1px solid var(--line); }
.record-tab { background:none; color:var(--muted); border:0; border-bottom:3px solid transparent; margin-bottom:-1px; min-height:46px; padding:0 2px; font:inherit; font-weight:650; cursor:pointer; }
.record-tab[aria-selected=true] { border-bottom-color:var(--brand); color:var(--ink); }
.record-panel { padding-top:18px; }
.record-card { margin:0 0 12px; padding:clamp(15px,3vw,22px); border:1px solid var(--line); border-radius:16px; min-width:0; }
.record-card.is-source { border-top:3px solid var(--brand); }
.record-source { display:block; color:var(--accent); font-size:12px; font-weight:700; margin-bottom:12px; }
.record-author { display:flex; align-items:center; gap:9px; }
.record-author img { width:36px; height:36px; border-radius:50%; object-fit:cover; background:var(--paper); border:1px solid var(--line); flex:none; }
.record-byline { min-width:0; flex:1; }
.record-byline strong { display:block; overflow-wrap:anywhere; font-size:15px; }
.record-byline small { display:block; color:var(--muted); font-size:12px; }
.record-card .record-copy { margin-top:13px; white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.68; }
.record-strip { display:flex; gap:8px; overflow-x:auto; padding-bottom:4px; margin-top:14px; scrollbar-width:thin; scroll-snap-type:x proximity; }
.record-tile { display:block; position:relative; padding:0; border:1px solid var(--line); background:var(--paper); border-radius:12px; overflow:hidden; cursor:zoom-in; }
.record-strip .record-tile { flex:0 0 min(64%,204px); aspect-ratio:4/3; scroll-snap-align:start; }
.record-tile img,.record-tile video { width:100%;height:100%;object-fit:cover;display:block;pointer-events:none; }
.record-video { position:absolute; inset:auto auto 7px 7px; border-radius:6px; background:#1a1c21e6; color:#fff; padding:2px 6px; font-size:11px; }
.record-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(min(125px,43%),1fr)); gap:8px; }
.record-grid .record-tile { aspect-ratio:1; }
.record-management { position:relative; }
.record-management summary { width:44px;height:44px;display:grid;place-items:center;cursor:pointer;color:var(--muted); list-style:none; }
.record-management summary::-webkit-details-marker { display:none; }
.record-management div { z-index:2; position:absolute;right:0;min-width:110px; padding:4px; border:1px solid var(--line); border-radius:10px; background:var(--paper); box-shadow:0 4px 16px #0002; }
.record-management button { width:100%; }
.record-footer { display:flex; align-items:center; flex-wrap:wrap; gap:8px; padding-top:18px; margin-top:24px; border-top:1px solid var(--line); }
.record-state { padding:28px 8px; text-align:center; color:var(--muted); font-size:14px; }
.record-page :focus-visible { outline:2px solid var(--brand); outline-offset:2px; }
.record-page [hidden] { display:none!important; }
