.ao {
  container: office / inline-size;
  --ao-line: #394342;
  --ao-paper: #f4eddb;
  --ao-jade: #a6cbb8;
  --ao-ink: #131d1e;
  color: var(--foreground);
}
.ao .pagehead { margin-bottom: 22px; }
.ao-studio { display: grid; grid-template-columns: minmax(0, 2.48fr) minmax(258px, 1fr); gap: clamp(12px, 1.3vw, 22px); align-items: stretch; }
.ao-room, .ao-inspector { min-width: 0; border: 1px solid #514d40; border-radius: var(--radius); overflow: hidden; }
.ao-room { display: flex; flex-direction: column; align-self: start; background: #222a25; }
.ao-room > header, .ao-journal > header, .ao-profile-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ao-room > header { padding: 0 16px 0 20px; min-height: 50px; background: #182220; color: var(--ao-paper); border-bottom: 1px solid #796346; }
.ao-room h2, .ao-journal h2 { margin: 0; font: 600 var(--type-section)/1.3 var(--display); }
.ao-motion, .ao-return { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 4px; background: none; color: #d3d8cb; border: 0; font: 13px var(--font-sans); cursor: pointer; }
.ao-motion:hover, .ao-return:hover { color: var(--primary); }
.ao-motion-mark { width: 8px; height: 10px; border-inline: 2px solid currentColor; }
.ao[data-paused="true"] .ao-motion-mark { width: 0; height: 0; border: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 8px solid currentColor; }
.ao-scene {
  --office-cut: wide;
  position: relative; isolation: isolate; display: grid; flex: none;
  width: 100%; aspect-ratio: 1440 / 900;
  grid-template: repeat(2, minmax(0,1fr)) / repeat(3, minmax(0,1fr));
  background: #eee5d3 url("../assets/agent-office/wide.webp") center / 100% 100% no-repeat;
}
.ao-scene office-film { position: absolute; inset: 0; pointer-events: none; }
.ao-scene video { display: block; width: 100%; height: 100%; object-fit: contain; }
.ao-scene video[hidden] { display: none; }
.ao-seat {
  position: relative; display: flex; align-items: flex-end; justify-content: center;
  min-width: 0; margin: 0 2%; text-decoration: none; color: #3c392e;
  border-radius: 5px; outline-offset: -2px; -webkit-tap-highlight-color: transparent;
}
.ao-seat::before, .ao-seat::after {
  content: ""; position: absolute; top: 3%; width: 13px; height: 13px; pointer-events: none;
  border-top: 1.5px solid #896437; opacity: 0; transition: opacity 120ms ease-out;
}
.ao-seat::before { left: 1%; border-left: 1.5px solid #896437; }
.ao-seat::after { right: 1%; border-right: 1.5px solid #896437; }
.ao-seat:is(:hover,:focus-visible,[aria-current])::before,
.ao-seat:is(:hover,:focus-visible,[aria-current])::after { opacity: 1; }
.ao-name {
  isolation: isolate; position: relative; height: 10.22%; min-height: 22px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  white-space: nowrap; padding: 0 8px;
}
.ao-name::before { content: ""; position: absolute; inset: 8% 0; z-index: -1; border-radius: 4px; }
.ao-name strong { font: 650 clamp(13px,1.05vw,17px)/1.2 var(--display); }
.ao-name small { font: 12px/1.25 var(--font-sans); color: #594f3e; }
.ao-seat:is(:hover,:focus-visible) .ao-name::before { background: #e7cd96; }
.ao-seat[aria-current] .ao-name { color: #ffecba; }
.ao-seat[aria-current] .ao-name small { color: #f5dcaa; }
.ao-seat[aria-current] .ao-name::before { background: #4b3c29; }
.ao-seat:focus-visible { outline: 2px solid #70522b; }
@media (prefers-reduced-motion: reduce) {
  .ao-seat::before, .ao-seat::after { transition: none; }
}
.ao-inspector { background: var(--ao-ink); border-color: var(--ao-line); scroll-margin-top: calc(var(--topbar-height) + 9px); }
.ao-profile { display: flex; flex-direction: column; min-height: 100%; padding: clamp(17px, 1.6vw, 27px); gap: clamp(12px, 1vw, 17px); }
.ao-status { display: inline-flex; align-items: center; gap: 7px; color: var(--muted-foreground); font-size: 13px; }
.ao-status i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.ao-status.ready { color: var(--ao-jade); }
.ao-return { display: none; }
.ao-person { display: flex; align-items: center; gap: 14px; }
.ao-person img,.ao-by img {display:block;flex:none;border-radius:50%;border:1px solid #888778;background:#f6e8ce;object-fit:cover;}
.ao-person h2 { margin: 0; color: var(--ao-paper); font: 600 var(--type-feature)/1.25 var(--display); }
.ao-person h2:focus { outline: 0; }
.ao-person span { color: var(--primary); font-size: 14px; }
.ao-capability { margin: 0; color: #e0e4da; font-size: 15px; line-height: 1.65; }
.ao-remit { margin: 0; padding: 13px 0; border-block: 1px solid var(--ao-line); display: grid; gap: 8px; font-size: 13px; }
.ao-remit > div { display: grid; grid-template-columns: max-content 1fr; gap: 12px; }
.ao-remit dt, .ao-latest h3 { color: #aebbb3; }
.ao-remit dd { margin: 0; color: #e3e6da; }
.ao-latest { flex: 1; }
.ao-latest h3 { font: 400 13px var(--font-sans); margin: 0 0 4px; }
.ao-latest-link { display: inline-flex; align-items: baseline; gap: 5px; padding: 0; border: 0; background: none; text-align: left; font: 500 15px/1.55 var(--font-sans); color: #f0e5c9; cursor: pointer; overflow-wrap: anywhere; }
.ao-latest-link .icon { flex: none; align-self: center; }
.ao-latest-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.ao-latest p, .ao-no-project { margin: 4px 0 0; color: #abb9b0; font: 13px/1.5 var(--font-sans); }
.ao-latest .ao-excerpt { margin-top: 9px; color: #d6ded2; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }
.ao-assign { width: 100%; min-height: 42px; justify-content: center; }
.ao-journal { margin-top: clamp(24px, 2.3vw, 38px); background: #10171beF; border-bottom: 1px solid var(--ao-line); }
.ao-journal > header { padding: 0 0 15px; border-bottom: 1px solid var(--ao-line); }
.ao-journal h2 span { font: 500 .72em/1 var(--font-sans); color: var(--primary); margin-left: 3px; font-variant-numeric: tabular-nums; }
.ao-filters { display: flex; padding: 2px; border: 1px solid var(--ao-line); border-radius: 5px; }
.ao-filters button { min-height: 32px; cursor: pointer; border: 0; border-radius: 3px; color: #bdc6bf; background: none; padding: 4px 11px; font: 13px var(--font-sans); }
.ao-filters button[aria-pressed="true"] { background: #384139; color: #f4ecda; }
.ao-columns, .ao-record summary { display: grid; grid-template-columns: minmax(85px,.63fr) minmax(140px,2.15fr) minmax(120px,1.35fr) 100px 16px; align-items: center; gap: 14px; padding: 9px 12px; }
.ao-columns { font-size: 12px; color: #aab8b3; background: #1a2223; }
.ao-record { padding: 0; border-top: 1px solid #2f3839; scroll-margin-top: calc(var(--topbar-height) + 14px); }
.ao-record summary { min-height: 53px; list-style: none; cursor: pointer; font-size: 14px; overflow-wrap: anywhere; }
.ao-record summary::-webkit-details-marker { display: none; }
.ao-record summary:hover, .ao-record[open] { background: #192122; }
.ao-by { display: inline-flex; align-items: center; gap: 9px; color: #dfdbc9; }
.ao-record-title { color: var(--foreground); }
.ao-project-name, .ao-record time { color: #bcc5be; font-size: 13px; }
.ao-record time { font-variant-numeric: tabular-nums; }
.ao-record summary > .icon { color: var(--ao-jade); }
.ao-record[open] summary > .icon { transform: rotate(180deg); }
.ao-draft { margin: 0 14px 0 max(18px, 9%); padding: 12px 0 17px; border-top: 1px solid var(--ao-line); }
.ao-draft h4 { margin: 0; color: var(--primary); font: 600 16px var(--display); }
.ao-draft p { white-space: pre-line; overflow-wrap: anywhere; margin: 8px 0; color: #e5e4d8; line-height: 1.7; }
.ao-proof { display: flex; flex-wrap: wrap; gap: 5px 12px; align-items: center; }
.ao-proof > span, .ao-empty { color: var(--muted-foreground); font-size: 14px; }
.ao-empty { padding: 16px 0; }
.ao-draft footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #b6c1ba; font-size: 13px; margin-top: 12px; }
@container office (max-width: 840px) {
  .ao-studio { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .ao-return { display: inline-flex; }
  .ao-profile { gap: 13px; }
  .ao-scene { flex: none; }
}
@container office (max-width: 600px) {
  .ao-columns { display: none; }
  .ao-record summary { grid-template: "who title arrow" auto "who project time" auto / 35px minmax(0, 1fr) auto; gap: 3px 10px; padding: 10px 4px; }
  .ao-by { grid-area: who; flex-direction: column; gap: 2px; font-size: 12px; }
  .ao-record-title { grid-area: title; }
  .ao-project-name { grid-area: project; }
  .ao-record time { grid-area: time; font-size: 12px; }
  .ao-record summary > .icon { grid-area: arrow; justify-self: end; }
  .ao-draft { margin-inline: 8px; }
}
@container office (max-width: 480px) {
  .ao .pagehead { margin-bottom: 14px; }
  .ao-room > header { padding-inline: 13px; min-height: 44px; }
  .ao-scene {
    --office-cut: phone; aspect-ratio: 640 / 936;
    grid-template: repeat(3, minmax(0,1fr)) / repeat(2, minmax(0,1fr));
    background-image: url("../assets/agent-office/phone.webp");
  }
  .ao-name { height: 13.46%; padding-inline: 7px; gap: 4px; }
  .ao-name small { font-size: 12px; }
  .ao-filters button { padding-inline: 8px; min-height: 36px; }
}
