/* Assessment report, consent banner and dialogs. Shared by the live and admin pages.
   Colour tokens (--ink, --muted, --line ...) come from each page's :root. */

.e-anger { background: #e8604c; } .e-disgust { background: #8fbf4a; } .e-fear { background: #a77de8; }
.e-joy { background: #ffb547; } .e-sadness { background: #4f8fe0; } .e-surprise { background: #e07bb5; }
.e-neutral { background: #5c6878; }

.a-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(118px, 1fr)); gap: 10px 16px; margin: 0 0 14px; }
.a-facts dt { font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); }
.a-facts dd { margin: 2px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.a-summary { font-family: var(--serif); font-size: 16px; line-height: 1.5; margin: 0 0 6px; }
.a-section { margin-top: 18px; }
.a-label { font-size: 10.5px; font-weight: 500; letter-spacing: .13em; text-transform: uppercase; color: var(--faint); margin: 0 0 8px; }
.a-strip { display: flex; height: 18px; border-radius: 4px; overflow: hidden; gap: 1px; background: rgba(255,255,255,.04); }
.a-strip i { flex: 1; min-width: 1px; }
.a-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); margin-top: 4px; }
.a-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; font-size: 12px; color: var(--muted); }
.a-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }
.a-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.a-bar { display: grid; grid-template-columns: minmax(70px, 140px) 1fr 34px; gap: 8px; align-items: center; font-size: 12px; margin: 5px 0; color: var(--muted); }
.a-bar.top { color: var(--ink); }
.a-track { height: 4px; background: rgba(255,255,255,.07); border-radius: 2px; overflow: hidden; }
.a-fill { height: 100%; background: #5c6878; border-radius: 2px; }
.a-bar.top .a-fill { background: var(--heat); }
.a-num { text-align: right; font-variant-numeric: tabular-nums; font-size: 11px; color: var(--faint); }
.a-region { padding: 7px 0; border-top: 1px solid rgba(110, 200, 190, .09); font-size: 13px; }
.a-region:first-child { border-top: 0; padding-top: 0; }
.a-region-head { display: flex; justify-content: space-between; gap: 12px; }
.a-region small { display: block; font-size: 11.5px; color: var(--faint); margin-top: 2px; }
.a-muted { color: var(--muted); font-size: 13px; line-height: 1.5; margin: 0; }
.a-transcript { font-family: var(--serif); font-size: 14.5px; line-height: 1.5; margin: 0; max-height: 10em; overflow-y: auto; }
.a-note { margin: 18px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.45; color: var(--faint); }
@media (max-width: 640px) { .a-pair { grid-template-columns: 1fr; } }

/* Dialog shell */
dialog.sheet { width: min(720px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--line);
               border-radius: 12px; background: #0a1f22; color: var(--ink); box-shadow: 0 24px 60px rgba(0,0,0,.5); }
dialog.sheet::backdrop { background: rgba(2, 10, 11, .66); backdrop-filter: blur(3px); }
.sheet-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px;
              padding: 16px 20px; background: #0a1f22; border-bottom: 1px solid var(--line); }
.sheet-head h2 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 0; }
.sheet-body { padding: 18px 20px 4px; }
.sheet-foot { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end;
              padding: 14px 20px; background: #0a1f22; border-top: 1px solid var(--line); }
.sheet-foot .status { margin-right: auto; align-self: center; font-size: 12.5px; color: var(--muted); }
.ghost { all: unset; cursor: pointer; font-size: 13px; padding: 7px 14px; border-radius: 7px; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); }
.ghost:hover { background: rgba(255,255,255,.05); }
.ghost.danger { color: #f2a48f; }
.ghost.danger.armed { background: #b8442f; color: #fff; box-shadow: none; }
.ghost:focus-visible, .solid:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.solid { all: unset; cursor: pointer; font-size: 13px; font-weight: 600; padding: 7px 16px; border-radius: 7px; background: var(--blue); color: #04211e; }
.solid:hover { filter: brightness(1.1); }
.close-x { all: unset; cursor: pointer; font-size: 20px; line-height: 1; padding: 4px 8px; border-radius: 6px; color: var(--muted); }
.close-x:hover { color: var(--ink); }
