.cr-page {
  margin: 0;
  color: #18382f;
  background: #f7f6f1;
  font: 16px/1.55 system-ui, sans-serif;
}
.cr-page > header {
  padding: 14px max(16px, calc((100vw - 1160px) / 2));
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #d8ded6;
}
.cr-library {
  --cr-ink: #193c33;
  --cr-accent: #174b3d;
  --cr-mute: #526960;
  --cr-border: #d3ddd5;
  --cr-paper: #f7f5ef;
  box-sizing: border-box;
  width: min(100%, 1080px);
  padding: clamp(20px, 4vw, 54px);
  margin-inline: auto;
  color: var(--cr-ink);
  font: 400 16px/1.5 system-ui, sans-serif;
  letter-spacing: normal;
}
.cr-library [hidden] { display: none !important; }
.cr-library .cr-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.cr-library [data-clinic-results]:not([data-cr-interactive]) [data-cr-js-only] { display: none; }
.cr-library :is(h1, h2) {
  font: 500 clamp(28px, 4.7vw, 48px)/1.13 Georgia, serif;
  letter-spacing: -.035em;
  color: var(--cr-ink);
  margin: 0 0 .45em;
}
.cr-library p { max-width: 66ch; }
.cr-library a, .cr-page > header a {
  color: var(--cr-accent, #174b3d);
  text-underline-offset: 3px;
}
.cr-library :is(a, input, summary, button):focus-visible {
  outline: 3px solid #96681c;
  outline-offset: 3px;
}
.cr-library button { font: inherit; }
.cr-library nav { min-width: 0; }
.cr-back, .cr-all {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.cr-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
}
.cr-grid li { min-width: 0; margin: 0; }
.cr-grid a {
  box-sizing: border-box;
  display: grid;
  align-content: start;
  height: 100%;
  border: 1px solid var(--cr-border);
  border-radius: 13px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
}
.cr-card-picture {
  position: relative;
  display: grid;
  place-items: center;
  background: #eeeee8;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.cr-card-picture img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: contain;
}
.cr-linked-case {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .5em;
  background: #e8efe8;
  color: var(--cr-accent);
  font-weight: 650;
}
.cr-card-label {
  display: grid;
  row-gap: 2px;
  padding: 11px 13px 13px;
  line-height: 1.3;
}
.cr-card-label strong { font-size: 15px; }
.cr-card-label small { font: 400 13px/1.4 system-ui, sans-serif; color: var(--cr-mute); }
.cr-stack {
  display: inline-block;
  position: relative;
  width: 11px;
  height: 9px;
  margin-inline: 0 7px;
  border: 1px solid currentColor;
  border-radius: 2px;
}
.cr-stack::after {
  content: '';
  position: absolute;
  inset: 2px -3px -3px 2px;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  border-radius: 0 0 2px 0;
}
.cr-film-tile {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  aspect-ratio: 16/9;
  background: #e5ebe3;
  color: var(--cr-ink);
  font-size: 14px;
  font-weight: 650;
}
.cr-play {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: white;
  background: #173a31;
  font-size: 15px;
}
@media (hover: hover) {
  .cr-grid a:hover {
    border-color: #789787;
    box-shadow: 0 4px 16px #203a2715;
  }
  .cr-grid a:hover .cr-card-label small { text-decoration: underline; }
}

.cr-studio {
  width: min(100%, 1280px);
  padding: clamp(23px, 4vw, 54px) clamp(15px, 4vw, 56px) clamp(30px, 8vw, 76px);
}
.cr-studio-intro {
  border-block-start: 1px solid var(--cr-border);
  padding-block-start: clamp(16px, 3vw, 27px);
  margin-block-end: 17px;
}
.cr-studio-intro h1 {
  font-size: clamp(33px, 5.1vw, 62px);
  margin: 0 0 10px;
}
.cr-studio-intro p {
  color: var(--cr-mute);
  margin: 0;
  font-size: clamp(15px, 1.8vw, 18px);
}
.cr-toolbar {
  position: relative;
  min-width: 0;
  display: grid;
  gap: 10px;
  padding: clamp(12px, 2.6vw, 21px);
  border: 1px solid var(--cr-border);
  border-radius: 17px;
  background: var(--cr-paper);
  margin-block-end: 20px;
}
.cr-view-switch, .cr-quick-filters {
  display: flex;
  align-items: stretch;
  gap: 6px;
  margin: 0;
}
.cr-view-switch {
  justify-self: start;
  padding: 3px;
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  background: #eeefe8;
}
.cr-view-switch a, .cr-quick-filters a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  min-height: 44px;
  padding: 6px 13px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 14px;
  font-weight: 620;
}
.cr-view-switch a[aria-current="true"], .cr-quick-filters a[aria-current="true"] { background: var(--cr-accent); color: #fff; }
.cr-quick-filters {
  overflow-x: auto;
  scrollbar-width: thin;
  padding: 4px 4px 6px;
}
.cr-quick-filters a {
  flex-shrink: 0;
  border: 1px solid var(--cr-border);
  border-radius: 100px;
  background: white;
}
.cr-quick-filters a:is(:hover, :focus-visible) { border-color: var(--cr-accent); }
.cr-category { position: relative; max-width: 440px; }
.cr-category summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 55px;
  list-style: none;
  cursor: pointer;
  border: 1px solid #9eb1a6;
  border-radius: 10px;
  background: #fff;
  padding: 7px 14px;
}
.cr-category summary::-webkit-details-marker { display: none; }
.cr-category summary small, .cr-category summary strong { display: block; }
.cr-category summary small, .cr-options small { color: var(--cr-mute); font-size: 12px; }
.cr-category summary strong { font-size: 16px; line-height: 1.25; }
.cr-chevron {
  flex: 0 0 9px;
  height: 9px;
  margin: 0 3px 4px 4px;
  border: solid currentColor;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.cr-category[open] .cr-chevron { transform: rotate(225deg); margin-block-end: 0; }
.cr-category-panel {
  position: absolute;
  inset: calc(100% + 4px) 0 auto;
  z-index: 4;
  display: grid;
  padding: 9px;
  background: white;
  border: 1px solid #9eb1a6;
  border-radius: 11px;
  box-shadow: 0 10px 30px #173b3124;
}
.cr-category-panel label { padding: 3px 4px 8px; font-size: 13px; font-weight: 650; }
.cr-category-panel input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  padding: 9px;
  margin-block-start: 4px;
  min-height: 44px;
  border: 1px solid #849e91;
  border-radius: 7px;
  background: #fff;
  color: var(--cr-ink);
  font: 16px/1.3 system-ui, sans-serif;
}
.cr-category-panel p { padding: 6px 8px; margin: 0; color: var(--cr-mute); font-size: 14px; }
.cr-options {
  list-style: none;
  min-height: 0;
  max-height: min(235px, 36svh);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px;
  margin: 0;
}
.cr-options li { margin: 0; }
.cr-options a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}
.cr-options a:is(:hover, [aria-current="true"]) { background: #e8efe8; }
.cr-options a[aria-current="true"] { font-weight: 700; }
.cr-results-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 4px 12px;
  margin-block: 0 12px;
}
.cr-results-heading h2 { font-size: clamp(24px, 3.6vw, 34px); margin: 0; }
.cr-summary { margin: 0; font-size: 14px; color: var(--cr-mute); }
.cr-browser .cr-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cr-browser:not([data-view="films"]) .cr-card-picture { aspect-ratio: 1; }
.cr-pages {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.cr-pages:empty { display: none; }
.cr-more, .cr-previous-page, .cr-stepper a, .cr-stepper > span, .cr-detail-actions :is(a, button) {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 13px;
  border: 1px solid #afc0b6;
  border-radius: 8px;
  background: #fff;
  color: var(--cr-accent);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.cr-more { background: var(--cr-accent); color: white !important; border-color: var(--cr-accent); }
.cr-notice {
  padding: 8px 11px;
  margin-block-end: 9px;
  background: #f4eddb;
  border-radius: 7px;
  color: #4b3e25;
  font-size: 14px;
}

html.cr-viewer-open { overflow: hidden; }
.cr-viewer:not([open]) { display: none; }
.cr-viewer {
  box-sizing: border-box;
  width: min(94vw, 950px);
  height: auto;
  max-width: 100%;
  max-height: 94dvh;
  padding: 0;
  margin: auto;
  border: 1px solid #9eb1a6;
  border-radius: 20px;
  overflow: auto;
  overscroll-behavior: contain;
  background: #f9f9f4;
  color: var(--cr-ink);
  box-shadow: 0 24px 80px #051c1891;
}
.cr-viewer::backdrop { background: #102d26c4; }
.cr-viewer-bar {
  position: sticky;
  z-index: 2;
  top: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px clamp(12px, 3vw, 24px);
  background: #f9f9f4;
  border-bottom: 1px solid var(--cr-border);
}
.cr-viewer-bar button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 6px 12px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  background: #fff;
  color: var(--cr-ink);
  cursor: pointer;
}
.cr-viewer-bar button span { font-size: 19px; line-height: 1; }
.cr-viewer-content, [data-cr-direct] { padding: 13px clamp(12px, 3vw, 24px) 19px; }
[data-cr-direct] { margin-block: 8px 20px; border: 1px solid var(--cr-border); border-radius: 12px; }
.cr-viewer [data-cr-back] { display: none; }
.cr-viewer [data-cr-detail]:not(.cr-detail) { padding: 15px 0; }
.cr-detail { min-width: 0; }
.cr-detail-title h2 {
  font-size: clamp(24px, 4.6vw, 37px);
  margin: 0 0 5px;
}
.cr-detail-title h2:focus { outline: none; }
.cr-detail-title p { margin: 0 0 3px; font-size: 13px; color: var(--cr-mute); }
.cr-stepper { display: flex; justify-content: space-between; gap: 10px; margin-block-end: 9px; }
.cr-stepper .cr-unavailable { opacity: .55; color: #466057; }
.cr-angles ol {
  display: flex;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  gap: 8px;
  padding: 4px 4px 7px;
  margin: 0 0 8px;
  list-style: none;
  scrollbar-width: thin;
}
.cr-angles li { flex: none; margin: 0; }
.cr-angles a {
  display: grid;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--cr-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.cr-angles a[aria-current="true"] { border-color: var(--cr-accent); background: var(--cr-accent); color: #fff; }
.cr-angles img {
  display: block;
  width: 52px;
  height: 52px;
  object-fit: contain;
  border-radius: 4px;
  background: var(--cr-paper);
}
.cr-frame {
  margin: 0;
  min-width: 0;
  display: grid;
  place-items: center;
  background: #eeefe8;
  border-radius: 9px;
  overflow: hidden;
}
.cr-large, .cr-frame video {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(61dvh, 750px);
  object-fit: contain;
}
.cr-frame:not(.is-zoomed) .cr-large { touch-action: pan-y pinch-zoom; }
.cr-film-frame { position: relative; background: #172f27; }
.cr-film-frame video {
  width: min(100%, 690px);
  aspect-ratio: 16/9;
  background: #172f27;
}
.cr-film-frame button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 7px 15px;
  min-height: 44px;
  border: 1px solid white;
  border-radius: 24px;
  background: #fff;
  color: var(--cr-accent);
  white-space: nowrap;
  font-size: 15px;
  font-weight: 650;
  cursor: pointer;
}
.cr-frame.is-zoomed {
  display: block;
  max-height: 63dvh;
  overflow: auto;
  overscroll-behavior: contain;
}
.cr-frame.is-zoomed img { width: 170%; max-width: none; max-height: none; }
.cr-detail-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 9px;
}
.cr-detail-actions:empty { display: none; }
.cr-detail-actions button { cursor: pointer; }
.cr-detail-actions .cr-next-case { margin-inline-start: auto; }
.cr-timeline { margin-block-start: 13px; }
.cr-timeline strong { display: block; font-size: 15px; }
.cr-timeline ol {
  display: flex;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
  gap: 7px;
  padding: 4px 4px 6px;
  margin: 2px 0 0;
}
.cr-timeline li { flex-shrink: 0; margin: 0; }
.cr-timeline a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 10px;
  border: 1px solid var(--cr-border);
  border-radius: 7px;
  background: white;
  font-size: 13px;
  text-decoration: none;
}
.cr-timeline a[aria-current="step"] { background: var(--cr-accent); color: #fff; }
.cr-viewer [data-cr-viewer-error] { margin: 5px 0 8px; color: #613f18; }
@media (max-width: 980px) {
  .cr-browser .cr-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .cr-browser .cr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .cr-card-label { padding: 8px 9px; }
  .cr-card-label strong { font-size: 14px; overflow-wrap: anywhere; }
  .cr-card-label small { font-size: 12px; }
  .cr-viewer {
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .cr-viewer-bar { padding-block-start: max(6px, env(safe-area-inset-top)); }
  .cr-viewer-content { padding-bottom: max(15px, env(safe-area-inset-bottom)); }
  .cr-large, .cr-frame video { max-height: 57dvh; }
}
@media (max-width: 550px) {
  .cr-library:not(.cr-studio) .cr-grid { grid-template-columns: 1fr; }
}
