:root {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  color: #292539;
  background: #f8f8fc;
  font-synthesis: none;
  --muted: #645e77;
  --border: #e7e4ef;
  --plum: #593bb0;
  --dark: #201b32;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: grid; grid-template-columns: 222px minmax(0, 1fr); min-height: 100vh; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; color: inherit; }
button:disabled { cursor: default; opacity: .55; }
button:focus-visible, select:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #7955d0; outline-offset: 2px; }
.sidebar { padding: 27px 17px 16px; border-right: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; gap: 17px; }
/* The menu is the screen's height and stays put; the operator sits at its bottom however long the page is. */
@media (min-width: 741px) { .sidebar { position: sticky; top: 0; align-self: start; height: 100vh; height: 100dvh; overflow-y: auto; } }
.brand { display: flex; align-items: center; gap: 11px; margin: 1px 7px 22px; }
.brand strong { display: block; color: var(--dark); font-size: 21px; font-weight: 760; letter-spacing: -.8px; line-height: 1; }
.brand div span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; font-weight: 600; }
.brand-mark { width: 36px; height: 36px; border-radius: 11px; background: #6041be; display: grid; grid-template-columns: repeat(2, 7px); place-content: center; gap: 3px; box-shadow: 0 3px 8px #5731b633; }
.brand-mark i { width: 7px; height: 7px; background: #fff; border-radius: 1px; }
.brand-mark i:last-child { opacity: .58; }
.side-control label { display: block; margin: 0 0 6px 5px; color: var(--muted); font-size: 11px; font-weight: 700; }
.select-line { display: flex; gap: 6px; align-items: stretch; }
.select-line select { min-width: 0; flex: 1; border: 1px solid var(--border); border-radius: 8px; background: #fcfbfe; padding: 8px; color: #383048; font-size: 12px; text-overflow: ellipsis; }
.mini { width: 32px; border: 1px solid var(--border); border-radius: 8px; background: #fff; font-size: 17px; font-weight: 600; }
.mini:hover, .secondary:hover, .close:hover { background: #f0ebfb; }
.navigation { display: grid; gap: 5px; margin-top: 10px; }
.nav-button { display: flex; gap: 9px; align-items: center; text-align: left; border: 0; background: none; border-radius: 8px; padding: 10px 8px; font-weight: 620; font-size: 12px; }
.nav-button:hover { background: #f5f2fa; }
.nav-button.active { background: #f0eafc; color: #50319f; }
.nav-icon { font-size: 17px; min-width: 19px; text-align: center; }
.operator { display: flex; align-items: center; gap: 9px; margin-top: auto; padding: 14px 0 0; border-top: 1px solid var(--border); }
.operator[open] { display: block; }
.operator > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 9px; }
.operator > summary::-webkit-details-marker { display: none; }
.operator-icon { display: grid; place-content: center; width: 31px; height: 31px; background: #f0eafc; color: #5231a7; border-radius: 50%; font-size: 10px; font-weight: 800; flex: none; }
.operator strong, .operator small { display: block; font-size: 11px; }
.operator small { color: var(--muted); margin-top: 3px; font-size: 10px; }
main { min-width: 0; }
.topbar { min-height: 61px; padding: 10px 29px; display: flex; align-items: center; justify-content: space-between; gap: 14px; background: #fff; border-bottom: 1px solid var(--border); }
.call-stop { min-height: 44px; padding-inline: 12px; color: #8d192c; border-color: #e5a1a9; background: #fff4f5; }
#stop-live { position: fixed; top: max(8px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right)); z-index: 40; box-shadow: 0 2px 10px #45203824; }
body:has(#stop-live:not([hidden])) .top-actions { margin-inline-end: 76px; }
@media (min-width: 761px) {
  body:has(#stop-live:not([hidden]))[data-guide-area]:not([data-guide-area="intro"]) .guide-panel { top: 60px; }
}
.breadcrumbs { color: #4f485e; font-size: 12px; font-weight: 630; overflow-wrap: anywhere; }
.breadcrumbs b { margin: 0 7px; color: #8c829d; }
.test-badge, .small-badge { align-items: center; display: inline-flex; gap: 7px; border-radius: 99px; padding: 6px 10px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.test-badge { background: #fff5df; color: #794d07; border: 1px solid #f5e5bc; }
.test-badge > span:first-child { width: 6px; height: 6px; border-radius: 100%; background: #aa680d; }
.small-badge { background: #eeebf6; color: #564771; }
.page { padding: 32px 28px; max-width: 1750px; margin: auto; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 24px; }
h1 { color: var(--dark); margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.045em; line-height: 1.13; }
.page-heading p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.button { border: 1px solid var(--border); border-radius: 8px; padding: 9px 13px; font-weight: 700; font-size: 12px; min-height: 37px; }
.primary { background: var(--plum); border-color: var(--plum); color: #fff; white-space: nowrap; }
.primary:hover { background: #4b319b; }
.secondary { background: #fff; }
.danger { background: #b42318; border-color: #b42318; color: #fff; white-space: nowrap; }
.danger:hover { background: #912018; }
.decision-strip { display: flex; align-items: center; gap: 12px; padding: 13px 15px; border: 1px solid #f0dfb7; border-radius: 11px; background: #fffaee; }
.decision-icon { width: 34px; height: 34px; display: grid; place-content: center; border-radius: 9px; background: #fae8bf; color: #7e4e04; font-size: 19px; font-weight: 760; flex: none; }
.decision-strip strong, .decision-strip div span { display: block; }
.decision-strip strong { font-size: 13px; color: #5f4012; }
.decision-strip div span { color: #7a5d31; font-size: 11px; margin-top: 3px; }
.decision-strip button { margin-left: auto; color: #704c16; border-color: #eaddc3; }
.board-bar { display: flex; justify-content: space-between; gap: 10px; align-items: center; color: var(--muted); margin: 24px 0 12px; font-size: 12px; }
.board-bar strong { color: #39324b; }
.board-bar i { display: inline-block; margin: 0 8px 2px; width: 3px; height: 3px; border-radius: 50%; background: #9c92ab; }
.lanes { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(176px, 1fr); gap: 11px; overflow-x: auto; padding-bottom: 10px; }
.lane { background: #f0eff6; border-radius: 11px; border: 1px solid #e7e4ef; min-height: 390px; min-width: 0; }
.lane h2 { margin: 0; padding: 12px 10px; display: flex; gap: 7px; align-items: center; border-bottom: 1px solid #e2dfed; font-size: 12px; font-weight: 750; color: #3b324f; }
.lane-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #6065bf; }
.lane-count, .count { margin-left: auto; min-width: 20px; text-align: center; border-radius: 99px; padding: 3px 6px; color: #534966; background: #e8e3f2; font-size: 10px; }
.lane-pink .lane-dot { background: #ad587f; }
.lane-violet .lane-dot { background: #8a55c8; }
.lane-amber .lane-dot { background: #c47920; }
.lane-teal .lane-dot { background: #218c8a; }
.lane-green .lane-dot { background: #358862; }
.lane-amber { background: #faf4e8; border-color: #f3e7d2; }
.lane-amber h2 { border-color: #f1e4cf; }
.lane-body { padding: 8px; display: grid; gap: 8px; }
.empty-lane { padding: 14px 4px; margin: 0; color: #716b81; text-align: center; font-size: 11px; }
.ticket-card { display: grid; gap: 8px; text-align: left; padding: 10px; border: 1px solid #e6e2ee; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px #20143205; min-width: 0; }
.ticket-card:hover { border-color: #b7a5df; box-shadow: 0 3px 9px #49376d16; }
.ticket-card strong { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.ticket-meta, .ticket-footer, .detail-meta, .profile { display: flex; align-items: center; gap: 5px; justify-content: space-between; }
.ticket-footer { justify-content: space-between; flex-wrap: wrap; }
.ticket-code { color: #655b76; font: 650 10px ui-monospace, SFMono-Regular, Menlo, monospace; white-space: nowrap; }
.priority { display: inline-flex; padding: 3px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; background: #edeaf5; color: #504469; white-space: nowrap; }
.priority.urgent { background: #fce7e9; color: #952a44; }
.priority.high { background: #fff0d9; color: #805019; }
.priority.low { background: #e9eeef; color: #465951; }
.ticket-note { color: #655338; font-size: 11px; line-height: 1.4; overflow-wrap: anywhere; }
.ticket-note.awaiting-test { color: #2f5f8a; font-weight: 600; }
.failed { color: #8e2342; }
.kind { color: #564964; font-size: 10px; font-weight: 640; }
.assignee { display: inline-flex; gap: 4px; align-items: center; color: #574c67; font-size: 11px; font-weight: 650; overflow-wrap: anywhere; min-width: 0; }
.avatar { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 7px; background: #eee8fb; flex: none; }
.avatar.developer { background: #e8effe; }
.avatar.manager { background: #ffefdf; }
.avatar img { width: 16px; height: 16px; object-fit: contain; image-rendering: pixelated; }
.avatar.large { width: 36px; height: 36px; }
.avatar.large img, .avatar.pixel img { width: 32px; height: 32px; }
.crew-layout { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(238px, 310px); align-items: start; gap: 15px; }
.office { position: relative; width: min(100%, 550px); margin-inline: auto; background: #e9e5ef; border: 1px solid #d6cfdf; border-radius: 12px; overflow: hidden; }
.office-map { width: 100%; display: block; image-rendering: pixelated; }
.crew-list, .surface { border: 1px solid var(--border); background: #fff; padding: 15px; border-radius: 11px; }
.crew-list h2, .surface h2 { font-size: 15px; margin: 0 0 13px; }
.crew-card { border: 1px solid var(--border); background: #faf9fd; border-radius: 8px; display: flex; align-items: center; gap: 8px; padding: 8px; width: 100%; text-align: left; margin-bottom: 7px; min-height: 52px; }
.crew-card:hover { border-color: #b7a5df; }
.crew-card small { color: var(--muted); display: block; margin-top: 2px; }
.crew-card strong, .crew-card small { overflow-wrap: anywhere; }
.agent-status { display: inline-flex; border-radius: 99px; background: #e8f4ed; color: #296343; font-size: 10px; padding: 4px 6px; font-weight: 700; white-space: nowrap; margin-left: auto; }
.agent-status.working { background: #efe6ff; color: #583398; }
.digest-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.surface h2 { display: flex; align-items: center; }
.surface p, .surface li { color: var(--muted); line-height: 1.55; }
.digest-row, .job-row { display: block; width: 100%; text-align: left; border: 1px solid var(--border); background: #faf9fd; padding: 10px; margin-bottom: 7px; border-radius: 7px; }
.digest-row:hover, .job-row:hover { border-color: #b7a5df; }
.digest-row > * { display: block; line-height: 1.5; }
.digest-row small, .digest-row span { color: var(--muted); }
dialog { border: 1px solid #e5dfee; border-radius: 14px; width: min(570px, calc(100% - 28px)); max-height: min(85vh, 820px); box-shadow: 0 22px 80px #21163433; color: var(--dark); padding: 0; }
dialog::backdrop { background: #22173966; }
.dialog-inner { padding: 20px; }
.dialog-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.dialog-heading h2 { font-size: 22px; line-height: 1.25; margin: 2px 0 0; letter-spacing: -.028em; overflow-wrap: anywhere; }
.close { border: 1px solid var(--border); background: #fff; border-radius: 7px; padding: 0; width: 31px; height: 31px; font-size: 20px; flex: none; }
.history p, .runtime-result p, .decision-box p { line-height: 1.5; overflow-wrap: anywhere; }
.preserve { white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-meta, .profile { justify-content: flex-start; flex-wrap: wrap; gap: 8px; }
.runtime-result, .decision-box { background: #f4f0fd; border-radius: 9px; padding: 12px; margin: 12px 0; }
.decision-box { background: #fff4da; }
.runtime-result p, .decision-box p { margin: 6px 0 0; }
form { margin: 10px 0; }
form label { display: block; margin-bottom: 11px; font-size: 12px; font-weight: 700; }
form label small { color: var(--muted); font-weight: 500; }
form input, form select, form textarea { display: block; width: 100%; margin-top: 5px; background: #fbfaff; padding: 9px; border: 1px solid #dfd9eb; border-radius: 7px; color: var(--dark); }
form textarea { resize: vertical; min-height: 68px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
form .button { margin: 0 4px 4px 0; }
.form-error { border: 1px solid #f5b9c7; background: #fff0f3; padding: 10px; color: #8e2342; border-radius: 7px; }
.history { border-top: 1px solid var(--border); margin-top: 15px; padding-top: 10px; }
.history h3 { margin: 4px 0 10px; font-size: 13px; }
.history ol { list-style: none; padding: 0; margin: 0; }
.history li { border-bottom: 1px solid #f0edf5; padding: 7px 0; }
.history li time { float: right; color: var(--muted); font-size: 11px; }
.history li p { margin: 4px 0 0; }
.history .conversation li { padding: 8px; margin-bottom: 6px; border: 0; border-radius: 7px; background: #f4f0fd; }
.history .conversation .operator { background: #eff4fa; display: block; }
.toast { position: fixed; z-index: 10; bottom: 16px; right: 16px; max-width: 370px; color: #fff; background: #372654; border-radius: 8px; padding: 12px 16px; }
.toast.error { background: #872d48; }
@media (max-width: 1050px) {
  body { grid-template-columns: 185px minmax(0, 1fr); }
  .topbar, .page { padding-inline: 20px; }
}
@media (max-width: 740px) {
  body { display: block; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; padding: 14px 12px; gap: 9px; border-right: 0; border-bottom: 1px solid var(--border); }
  .brand { margin: 0 0 6px; grid-column: span 2; }
  .brand strong { font-size: 18px; }
  .navigation { display: flex; flex-wrap: wrap; grid-column: span 2; margin-top: 1px; }
  .nav-button { font-size: 11px; padding: 6px 7px; }
  .operator { display: block; padding-block: 5px; }
  .topbar { min-height: 45px; }
  .page { padding-block: 21px; }
  .topbar, .page { padding-inline: 12px; }
  .page-heading { align-items: flex-start; }
  .page-heading p { font-size: 12px; }
  .lanes { grid-auto-columns: minmax(165px, 1fr); }
  .crew-layout, .digest-layout { grid-template-columns: 1fr; }
  .sort-note { font-size: 10px; }
}

.top-actions, .manager-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.live-audio { position: fixed; bottom: 14px; left: 15px; width: min(320px, calc(100vw - 30px)); z-index: 3; }
.manager-hero, .manager-locked { display: flex; align-items: flex-start; gap: 22px; }
.manager-hero { padding: 22px; background: linear-gradient(120deg, #f4eeff, #fff 63%); }
.manager-hero h2 { font-size: 25px; margin: 0; letter-spacing: -.02em; }
.manager-hero p, .manager-locked p { margin: 7px 0 13px; }
.manager-avatar { display: grid; place-items: center; flex: none; width: 76px; height: 76px; border-radius: 22px; background: #ddd2fa; border: 1px solid #cdbcea; }
.manager-avatar img, .manager-locked img { width: 62px; height: 62px; image-rendering: pixelated; }
.manager-grid { margin-top: 13px; display: grid; grid-template-columns: 1fr 1fr; gap: 13px; align-items: start; }
.manager-grid.manager-wide { grid-template-columns: 1fr; }
.manager-grid.manager-channels { align-items: stretch; }
.manager-actions { margin-bottom: 10px; }
.manager-response { padding: 10px; border-radius: 7px; background: #fff; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 550; line-height: 1.35; margin: 9px 0; }
.checkbox input { flex: none; width: 17px; height: 17px; margin: 0; }
a.button { display: inline-flex; align-items: center; text-decoration: none; color: var(--plum); }
@media (max-width: 740px) {
  .manager-grid { grid-template-columns: 1fr; }
  .manager-hero { padding: 13px; gap: 12px; }
  .manager-avatar { width: 52px; height: 52px; border-radius: 13px; }
  .manager-avatar img { width: 42px; height: 42px; }
}
.auth-required .side-control, .auth-required .navigation, .auth-required .operator { display: none; }

.run-evidence { max-height: 240px; overflow: auto; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.45; }

body.loading > :is(main, aside),
body[data-guide-area="intro"] > :is(main, aside) { visibility: hidden; }

#live-guide { position: fixed; z-index: 15; inset: 0; pointer-events: none; }
.guide-backdrop {
  position: absolute; inset: 0; opacity: 0;
  background: radial-gradient(ellipse at 50% 39%, #eee5ff 0%, #f8f4ff 33%, #fbfaff 62%, #f5f1fd 100%);
  transition: opacity 520ms ease;
}
.guide-panel {
  position: absolute; top: 16px; right: 18px;
  display: grid; grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px 12px; align-items: center;
  width: min(370px, calc(100% - 36px)); padding: 12px 15px;
  border: 1px solid #e3d8f7; border-radius: 19px; background: #fdfbff;
  box-shadow: 0 14px 55px #3e216218; pointer-events: auto;
  transform-origin: center;
  transition: top 450ms cubic-bezier(.2,.72,.25,1), right 450ms cubic-bezier(.2,.72,.25,1),
    transform 450ms cubic-bezier(.2,.72,.25,1), width 450ms, background 350ms, box-shadow 350ms;
}
.guide-portrait {
  width: 48px; height: 48px; border-radius: 32%;
  display: grid; place-items: center; position: relative;
  background: radial-gradient(circle at 36% 30%, #fff8f7, #eadcff 65%, #dbbdf7);
  border: 1px solid #ffffffd9;
  box-shadow: 0 0 0 1px #b98ef04a, inset 0 1px 13px #ffffff80;
  transition: width 420ms ease, height 420ms ease;
}
/* Middle frame used by the original Broogle Office Create Agent picker. */
.folk-portrait {
  display: block; flex: none; aspect-ratio: 1;
  background-image: url("/32x32folk.png"); background-size: 1200% 800%;
  background-repeat: no-repeat; image-rendering: pixelated;
  background-position: calc((var(--folk-col) + var(--folk-frame, 1)) * 9.090909%)
    calc((var(--folk-row) + var(--folk-facing, 0)) * 14.285714%);
}
/* Annie uses the original red-haired Create Agent sprite (char6). */
.folk-annie { --folk-col: 3; --folk-row: 4; }
.folk-alex { --folk-col: 0; --folk-row: 0; }
.folk-john { --folk-col: 3; --folk-row: 0; }
.avatar .folk-portrait { width: 100%; }
.guide-portrait .folk-portrait { width: 79%; }
.manager-avatar .folk-portrait { width: 48px; }
.guide-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 18px); width: min(100%, 34rem); padding: 12px 2px; }
.guide-picker button {
  min-width: 0; display: grid; justify-items: center; align-content: center; gap: 10px;
  padding: clamp(9px, 2vw, 20px); border: 1px solid #d7c6ed; border-radius: 16px;
  font: 650 clamp(14px, 2vw, 18px)/1.25 system-ui, sans-serif;
  color: #30224b; background: #fff; box-shadow: 0 8px 24px #43266a0f; cursor: pointer;
}
.guide-picker button:is(:hover, :focus-visible) { border-color: #8054bb; outline: 3px solid #8054bb; outline-offset: 3px; }
.guide-picker .folk-portrait { width: clamp(44px, 9vw, 88px); }
.guide-portrait.speaking::before {
  content: ""; position: absolute; inset: -5%; border-radius: inherit;
  border: 2px solid #ad78e6; animation: anne-speaking 1.5s ease-out infinite;
}
@keyframes anne-speaking { from { opacity: .64; transform: scale(1); } to { opacity: 0; transform: scale(1.18); } }
.guide-copy h1 { margin: 0; color: #292046; font-size: 17px; letter-spacing: -.03em; font-weight: 730; }
.guide-copy p { margin: 4px 0 0; color: #65547f; font-size: 12px; font-weight: 580; }
.guide-captions {
  grid-column: 1 / -1; min-height: 2.6lh; max-height: 7lh; line-height: 1.47; font-size: 15px; font-weight: 540;
  color: #302544; overflow: auto; overscroll-behavior: contain;
  text-align: start; padding-block: 6px; padding-inline: 3px;
}
.guide-captions p { margin: 0; overflow-wrap: anywhere; }
.guide-captions p + p { margin-top: .55em; }
.guide-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.guide-start, .guide-dismiss { border: 0; border-radius: 999px; white-space: nowrap; }
.guide-start { color: #fff; background: #563190; padding: 11px 23px; font-weight: 690; }
.guide-start:hover { background: #442773; }
.guide-dismiss { color: #654e88; padding: 7px 10px; background: transparent; }
.guide-dismiss:hover { background: #eee5f9; }

body[data-guide-area="intro"] .guide-backdrop { opacity: 1; }
body[data-guide-area="intro"] .guide-panel {
  top: 49%; right: 50%; width: min(calc(100% - 36px), 52rem); padding: 18px 0;
  transform: translate(50%, -50%); grid-template-columns: minmax(0, 1fr);
  justify-items: center; gap: 12px; border-color: transparent; background: transparent; box-shadow: none;
}
body[data-guide-area="intro"] .guide-portrait {
  width: clamp(105px, 24vh, 172px); height: clamp(105px, 24vh, 172px);
  margin-bottom: clamp(3px, 2.3vh, 20px);
  box-shadow: 0 0 0 1px #b98ef04a, 0 0 0 14px #e2d1fb64, 0 20px 55px #9f6bdb2f, inset 0 1px 18px #ffffffc2;
}
body[data-guide-area="intro"] .guide-copy { text-align: center; }
body[data-guide-area="intro"] .guide-copy h1 { font-size: clamp(28px, 5vw, 48px); letter-spacing: -.065em; }
body[data-guide-area="intro"] .guide-copy p { font-size: 14px; }
body[data-guide-area="intro"] .guide-captions {
  width: min(100%, 43rem); font-size: clamp(18px, 3.1vw, 31px); font-weight: 550;
  letter-spacing: -.022em; min-height: 2.8lh; max-height: min(6.5lh, 34vh); padding: 10px 12px;
}
body[data-guide-area="intro"] .guide-actions { justify-content: center; flex-wrap: wrap; }
body[data-guide-area]:not([data-guide-area="intro"]) .page { padding-top: 115px; }
.guide-highlight { outline: 3px solid #8b5ad6 !important; outline-offset: 2px; background-color: #efe6ff !important; }
.guide-pointer {
  position: fixed; z-index: 23; width: 18px; height: 26px; pointer-events: none;
  filter: drop-shadow(1px 2px 1px #26203f63) drop-shadow(-1px 0 0 #fff) drop-shadow(1px 0 0 #fff);
}
.guide-pointer::after {
  content: ""; display: block; width: 100%; height: 100%; background: #241b36;
  clip-path: polygon(0 0, 0 83%, 29% 59%, 55% 100%, 74% 86%, 53% 53%, 98% 53%);
}
.guide-pointer::before {
  content: ""; position: absolute; width: 31px; height: 31px; top: -14px; left: -14px;
  border: 2px solid #7543c3; background: #fff5; border-radius: 50%;
}
.guide-pointer.tapping::before { animation: anne-tap 520ms ease-out both; }
@keyframes anne-tap { 0% { transform: scale(.55); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
.guide-pointer.holding::before { opacity: .8; background: #be9bef53; }
.guide-example, .guide-drop {
  min-height: 65px; border: 1px dashed #8757ce; background: #f7f0ff; border-radius: 8px;
}
.guide-example { display: grid; text-align: left; gap: 3px; padding: 9px; }
.guide-example small { color: #654292; text-transform: uppercase; letter-spacing: .06em; font-size: 9px; }
.guide-example strong { font-size: 13px; line-height: 1.25; }
.guide-lifted { opacity: .25; }
.guide-dragging { position: fixed; z-index: 22; margin: 0; box-shadow: 0 13px 25px #4e258845; pointer-events: none; }
@media (max-width: 760px) {
  body[data-guide-area]:not([data-guide-area="intro"]) .page { padding-top: 20px; padding-bottom: 170px; }
  body[data-guide-area]:not([data-guide-area="intro"]) .guide-panel {
    top: auto; bottom: 10px; right: 10px; width: min(350px, calc(100% - 20px));
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide-panel, .guide-portrait, .guide-backdrop { transition: none; }
  .guide-portrait.speaking::before, .guide-pointer.tapping::before { animation: none; }
}

/* The crew atlas is the original transparent office artwork. */
.crew-office { display: block; container-type: inline-size; isolation: isolate; }
.crew-office .crew-walker {
  --sprite-width: clamp(18px, 6.5cqw, 34px);
  --sprite-height: calc(var(--sprite-width) * 2);
  position: absolute; left: 10%; top: 29%; transform: translate(-50%, -100%);
  inline-size: var(--sprite-width); block-size: var(--sprite-height);
  padding: 0; border: 0; outline: none; background: transparent; cursor: pointer;
}
.crew-office .crew-walker-1 { left: 38%; top: 60%; }
.crew-office .crew-walker-2 { left: 67%; top: 77%; }
.crew-office .crew-walker-3 { left: 80%; top: 78%; }
.crew-office .crew-walker-4 { left: 47%; top: 93%; }
.crew-office .crew-walker-5 { left: 67%; top: 83%; }
.crew-office .crew-walker-6 { left: 67%; top: 95%; }
.crew-office .crew-sprite {
  position: relative; display: block; overflow: hidden; user-select: none; pointer-events: none;
  width: var(--sprite-width); height: var(--sprite-height);
}
.crew-office .crew-sprite .folk-portrait { position: absolute; inset: auto 0 0; width: 100%; }
.crew-office .crew-atlas {
  position: absolute; inset: 0 auto auto 0; display: none; max-width: none;
  width: calc(24 * var(--sprite-width)); height: calc(7 * var(--sprite-height)); image-rendering: pixelated;
  transform: translate(calc(-1 * var(--frame-x, 0) * var(--sprite-width)), calc(-1 * var(--frame-y, 0) * var(--sprite-height)));
}
.crew-office .crew-still { position: absolute; inset: auto 0 0; width: 100%; image-rendering: pixelated; }
.crew-office [data-atlas="ready"] .crew-atlas { display: block; }
.crew-office [data-atlas="ready"] .crew-still { display: none; }
.crew-office .crew-speech {
  position: absolute; left: 50%; bottom: calc(100% - 8px); transform: translateX(-50%);
  display: grid; gap: 2px; text-align: center; color: #242032;
  border: 1px solid #726884; border-radius: 6px; padding: 4px 6px;
  font-size: clamp(9px, 2.2cqw, 12px); line-height: 1.17;
  min-width: 45px; width: max-content; max-width: 25cqw; background: #fff;
  pointer-events: none;
}
.crew-office .crew-speech::after {
  content: ""; position: absolute; top: 100%; left: calc(50% - 4px);
  transform: translateY(-3px) rotate(45deg); width: 6px; height: 6px;
  background: #fff; border: solid #726884; border-width: 0 1px 1px 0;
}
.crew-office .crew-speech-working, .crew-office .crew-speech-working::after { border-color: #427555; background: #f1fbf1; }
.crew-office .crew-speech small { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: .9em; }
.crew-office .crew-walker:focus-visible { z-index: 110 !important; }
.crew-office .crew-walker:is(:hover, :focus-visible) .crew-speech { outline: 2px solid #574390; }
.crew-office .crew-walker:is(:hover, :focus-visible) .crew-sprite { filter: drop-shadow(0 0 2px #574390); }
.crew-layout .crew-card > .avatar { background: transparent; border: 0; }
.crew-office [data-edge="left"] .crew-speech { transform: translateX(-27%); }
.crew-office [data-edge="left"] .crew-speech::after { left: calc(27% - 4px); }
.crew-office [data-edge="right"] .crew-speech { transform: translateX(-73%); }
.crew-office [data-edge="right"] .crew-speech::after { left: calc(73% - 4px); }

.board-header-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 9px; }
.board-view-switch { display: inline-flex; align-items: center; gap: 3px; border: 1px solid var(--border); background: #fff; padding: 3px; border-radius: 8px; }
.board-view-switch button { display: grid; place-items: center; width: 32px; height: 29px; border: 0; border-radius: 5px; color: #5b526d; background: transparent; }
.board-view-switch button:hover, .board-view-switch button[aria-pressed="true"] { color: #50349b; background: #eee7fb; }
.board-view-switch button:focus-visible, .ticket-list-open:focus-visible { outline: 2px solid #744fc6; outline-offset: 2px; }
.ticket-list-wrap { width: 100%; overflow-x: auto; border: 1px solid var(--border); border-radius: 11px; background: #fff; }
.ticket-list { width: 100%; min-width: 38rem; border-collapse: collapse; font-size: 13px; text-align: left; }
.ticket-list th, .ticket-list td { padding: 0.75rem 0.85rem; border-bottom: 1px solid var(--border); }
.ticket-list thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); background: #faf9fd; }
.ticket-list tbody tr:last-child :is(td, th) { border-bottom: 0; }
.ticket-list tbody tr:hover { background: #faf8fe; }
.ticket-list-open { border: 0; padding: 0; background: transparent; color: inherit; text-align: left; font-weight: 680; }
.ticket-list-open:hover { color: #50349b; text-decoration: underline; }
.list-status { display: inline-flex; align-items: center; gap: 5px; padding: 3px 6px; border-radius: 6px; }
.release-list { list-style: none; padding: 0; margin: 0; }
.release-list li { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: space-between; padding: 12px 4px; border-block-start: 1px solid var(--border); }
.release-list :is(time,span) { color: var(--muted); }

#voice-settings { margin-top: 13px; }
#voice-settings > summary { cursor: pointer; font-size: 13px; font-weight: 700; }
#voice-settings-form { display: grid; gap: 9px; margin-top: 9px; min-width: 0; }
#voice-settings-form label { display: grid; gap: 4px; min-width: 0; font-size: 12px; }
#voice-settings-form select { width: 100%; font-size: 16px; }
#voice-settings-form button { justify-self: start; }
.voice-preview-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 6px; margin-top: -5px; }
.voice-preview-row #voice-preview-button { margin: 0; white-space: nowrap; }
#voice-settings-status { min-height: 1em; }
@media (max-width: 740px) {
  #operator-settings:has(#voice-settings:not([hidden])) { grid-column: 1 / -1; }
  #voice-settings-form { max-width: 24rem; }
}

/* Admin (owner only) */
.admin-tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin: -6px 0 20px; overflow-x: auto; }
.admin-tab { border: 0; background: none; padding: 10px 14px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tab.active { color: var(--plum); border-bottom-color: var(--plum); }
.admin-body { display: grid; gap: 14px; max-width: 1100px; }
.admin-lead { color: var(--muted); margin: 0; line-height: 1.5; max-width: 820px; }
.admin-h2 { font-size: 15px; margin: 10px 0 0; }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: grid; gap: 14px; }
.admin-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.admin-grow { flex: 1; min-width: 220px; }
.admin-meta { color: var(--muted); font-size: 12px; margin-top: 5px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.admin-grid2, .admin-grid3 { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.admin-grid3 { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
.admin-body label { display: grid; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.admin-body select, .admin-body input, .admin-body textarea { border: 1px solid var(--border); border-radius: 8px; padding: 9px 10px; background: var(--white); color: var(--dark); font-weight: 400; font-size: 13px; width: 100%; }
.admin-body textarea { font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; min-height: 340px; }
.admin-body textarea[readonly] { background: #f6f5fa; color: var(--muted); }
.admin-end { display: flex; justify-content: flex-end; }
.admin-pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; border: 1px solid var(--border); color: var(--muted); }
.admin-pill.ok { color: #1f7a4a; border-color: #9fd6b7; background: #effaf3; }
.admin-pill.warn { color: #9a5a00; border-color: #f0cf9a; background: #fff7ea; }
.admin-mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; word-break: break-all; }
.admin-note { color: var(--muted); font-size: 12px; margin: 0; }
.admin-error { color: #b42318; font-size: 12px; font-weight: 700; }
.admin-label { display: block; font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.admin-table { width: 100%; border-collapse: collapse; }
.admin-table td { padding: 9px 4px; border-top: 1px solid var(--border); }
.admin-table tr:first-child td { border-top: 0; }
.admin-right { text-align: right; }
.admin-login { border-left: 3px solid var(--plum); background: #f6f3ff; border-radius: 8px; padding: 12px 14px; line-height: 1.6; }
.admin-code { font: 700 24px ui-monospace, Menlo, monospace; letter-spacing: 3px; color: var(--dark); margin: 4px 0; }
.admin-subtabs { display: flex; flex-wrap: wrap; gap: 8px; }
.admin-subtab { border: 1px solid var(--border); background: var(--white); border-radius: 10px; padding: 10px 14px; text-align: left; font-weight: 700; display: grid; gap: 2px; min-width: 150px; }
.admin-subtab small { color: var(--muted); font-weight: 400; font-size: 11px; }
.admin-subtab.active { border-color: var(--plum); box-shadow: 0 0 0 1px var(--plum) inset; color: var(--plum); }
.admin-voices { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.admin-voice { display: flex; align-items: center; justify-content: space-between; gap: 8px; border: 1px solid var(--border); border-radius: 10px; padding: 8px 8px 8px 12px; }
.admin-voice.active { border-color: var(--plum); background: #f6f3ff; }
.admin-voice label { display: flex !important; align-items: center; gap: 8px; color: var(--dark) !important; font-size: 13px !important; cursor: pointer; }
.admin-voice input { width: auto !important; }
.admin-voice .button { min-height: 30px; padding: 5px 9px; }
.admin-prompts { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 860px) {
  .admin-grid2, .admin-grid3, .admin-prompts { grid-template-columns: 1fr; }
  .admin-body textarea { min-height: 240px; }
}

/* Google sign-in screen */
body.auth-required > :not(#login-screen):not(script) { visibility: hidden; }
#login-screen { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: #f8f8fc; z-index: 50; }
.login-card { width: min(400px, 100%); background: var(--white); border: 1px solid var(--border); border-radius: 16px; padding: 32px 28px; display: grid; gap: 14px; box-shadow: 0 12px 40px rgba(32, 27, 50, .08); }
.login-card h1 { font-size: 22px; margin: 10px 0 0; color: var(--dark); }
.login-card p { margin: 0; color: var(--muted); line-height: 1.5; }
.login-google, .login-apple { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; font-size: 14px; }
.button.login-apple { background: #000; color: #fff; border-color: #000; }
.login-message { min-height: 1.4em; font-size: 13px; color: #b42318 !important; }
.sign-out { margin-top: 10px; width: 100%; }

/* Scheduled tasks and idle topics */
.tasks-section { margin-bottom: 16px; }
.tasks-section h2 { margin: 0 0 8px; font-size: 1.05rem; }
.billing-project { margin-bottom: 16px; }
.billing-project h2 { margin: 0 0 8px; font-size: 1.05rem; }
.tasks-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tasks-item { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line, #e3e3ea); border-radius: 10px; flex-wrap: wrap; }
.tasks-main { display: grid; gap: 4px; min-width: 0; flex: 1 1 260px; }
.tasks-meta, .tasks-result { color: var(--muted, #667); font-size: .9rem; overflow-wrap: anywhere; }
.tasks-ticket { display: block; margin-top: .2rem; }
.link-button { background: none; border: 0; padding: 0; color: var(--plum); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; }
.ticket-files ul { list-style: none; padding: 0; margin: .4rem 0 0; display: grid; gap: .35rem; }
.ticket-files a { font-weight: 600; overflow-wrap: anywhere; }
.ticket-files .muted { color: var(--muted, #667); font-size: .9rem; margin-left: .4rem; }
.ticket-upload { display: grid; gap: 6px; margin-top: 10px; font-size: .9rem; color: var(--muted); }
.tasks-actions { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.tasks-badge { display: inline-block; font-size: .78rem; padding: 2px 8px; border-radius: 999px; background: #eef0f6; color: #334; width: fit-content; }
.tasks-badge.running { background: #e5f2ff; color: #0b4f8a; }
.tasks-badge.done { background: #e6f6ec; color: #1d6b3a; }
.tasks-badge.not_doing, .tasks-badge.paused { background: #f6efe4; color: #7a4d12; }
.tasks-ask, .tasks-confirm { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.tasks-ask input { min-width: 180px; }
.tasks-form { display: grid; gap: 8px; max-width: 560px; }
.tasks-form label { display: grid; gap: 4px; }
.safe-guide { border: 1px solid var(--line, #e3e3ea); border-radius: 10px; padding: 8px 12px; }
.safe-guide ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; }

/* The project manager's own page (/manager), like a phone call: the manager, what they are, one big
   button to call; during the call the screen turns dark and keeps a single button to hang up. Phone first. */
body.call-only { grid-template-columns: 1fr; }
body.call-only .sidebar, body.call-only .topbar, body.call-only .environment-badge, body.call-only #stop-live { display: none !important; }
body.call-only { background: #f6f3fd; }
body.call-only main { padding: 0 !important; }
.call-page { min-height: 100vh; min-height: 100dvh; box-sizing: border-box; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; text-align: center; padding: max(24px, env(safe-area-inset-top)) 16px max(32px, env(safe-area-inset-bottom)); background: #f6f3fd; transition: background .4s ease; }
.call-page h1 { margin: 18px 0 0; font-size: 34px; letter-spacing: -.8px; color: var(--dark); }
.call-avatar { width: 132px; height: 132px; border-radius: 50%; transform: none; }
.call-avatar .folk-portrait { transform: scale(1.7); }
.call-role { margin: 0; color: var(--muted); font-size: 16px; }
.call-status { margin: 6px 0 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.call-controls { display: grid; justify-items: center; gap: 8px; margin-top: 12vh; }
.call-round { width: 78px; height: 78px; border-radius: 50%; border: 0; display: grid; place-items: center; color: #fff; cursor: pointer;
  box-shadow: 0 8px 22px #0003; -webkit-tap-highlight-color: transparent; }
.call-round:active { transform: scale(.94); }
.call-round:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.call-dial { background: #2fb45a; }
.call-hangup { background: #e5383b; }
.call-buttons { display: flex; justify-content: center; gap: 44px; }
.call-mute { background: #ffffff26; }
.call-mute.muted { background: #fff; color: #2a1f4d; }
.call-page.in-call .call-muted-note { color: #e9e3ff; margin-top: 4px; }
.call-label { font-size: 15px; font-weight: 600; color: var(--muted); }
.call-hint, .call-note { margin: 0; color: var(--muted); font-size: 14px; max-width: 320px; }
.call-page.in-call { background: linear-gradient(180deg, #2a1f4d 0%, #140f26 100%); }
.call-page.in-call h1, .call-page.in-call .call-status { color: #fff; }
.call-page.in-call .call-role, .call-page.in-call .call-label { color: #c9c0e6; }
.call-page.ringing .call-avatar { animation: call-ring 1.4s ease-in-out infinite; }
@keyframes call-ring { 0%, 100% { box-shadow: 0 0 0 0 #ffffff40; } 50% { box-shadow: 0 0 0 18px #ffffff00; } }
@media (prefers-reduced-motion: reduce) { .call-page.ringing .call-avatar { animation: none; } .call-page { transition: none; } }
.call-change { border: 0; background: none; color: var(--muted); font-size: 13px; text-decoration: underline; cursor: pointer; padding: 4px; }
.call-projects { display: grid; gap: 10px; width: min(100%, 360px); margin-top: 10px; }
.call-projects .button { display: grid; gap: 2px; text-align: left; padding: 14px 16px; border-radius: 14px; }
.call-projects .button span { color: var(--muted); font-size: 13px; }

/* Tickets like Edenly's lean Jira (2026-12-01): a wide two-column ticket, comments with files, filters. */
dialog:has(.ticket-detail) { width: min(1120px, calc(100% - 28px)); max-height: 92vh; }
.ticket-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; align-items: start; }
.ticket-main { min-width: 0; }
.ticket-title-block .detail-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
.ticket-edit summary, .ticket-aside details summary { cursor: pointer; color: var(--plum); font-size: 12px; font-weight: 600; }
.ticket-edit form { margin-top: 8px; }
.ticket-description { line-height: 1.6; overflow-wrap: anywhere; margin: 10px 0 16px; }
.ticket-description p, .comment-body p { margin: 0 0 8px; }
.ticket-description code, .comment-body code { background: #f1eef8; border-radius: 4px; padding: 1px 4px; font-size: 12.5px; }
.mention { color: var(--plum); font-weight: 600; }
.ticket-ref { border: 0; background: #efeafb; color: var(--plum); border-radius: 5px; padding: 0 5px; font: inherit; font-weight: 600; cursor: pointer; }
.ticket-comments { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.ticket-comments h3, .aside-card h3 { font-size: 13px; margin: 0 0 10px; }
.comment-composer textarea { width: 100%; box-sizing: border-box; min-height: 74px; }
.composer-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; margin-top: 6px; flex-wrap: wrap; }
.composer-actions .muted { margin-right: auto; font-size: 12px; }
.attach-button { cursor: pointer; }
.pending-files { list-style: none; padding: 0; margin: 6px 0 0; display: flex; gap: 6px; flex-wrap: wrap; }
.pending-files li { background: #f4f0fd; border-radius: 999px; padding: 2px 4px 2px 10px; font-size: 12px; display: flex; align-items: center; gap: 4px; }
.comment-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.comment-card { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: #fff; }
.comment-card header { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.comment-card header time { color: var(--muted); font-size: 12px; }
.comment-tools { margin-left: auto; display: flex; gap: 4px; }
.comment-body { line-height: 1.55; overflow-wrap: anywhere; }
.comment-card form { margin-top: 8px; }
.person-chip { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff;
  background: hsl(var(--hue, 260) 45% 48%); flex: none; vertical-align: middle; }
.attachment-list { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 6px; }
.attachment { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; }
.attachment-preview { display: block; max-width: 260px; max-height: 180px; border-radius: 8px; border: 1px solid var(--border); margin-bottom: 4px; }
.ticket-aside { display: grid; gap: 12px; }
.aside-card { border: 1px solid var(--border); border-radius: 10px; padding: 12px; background: #fcfbfe; }
.aside-card dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; margin: 0 0 10px; font-size: 13px; }
.aside-card dt { color: var(--muted); }
.aside-card dd { margin: 0; overflow-wrap: anywhere; }
.meta-form, .link-form { display: grid; gap: 8px; margin-top: 8px; }
.link-list { list-style: none; padding: 0; margin: 0; font-size: 13px; display: grid; gap: 6px; }
.label-chip { display: inline-block; background: #eef6f3; color: #1f6b52; border-radius: 999px; padding: 1px 8px; font-size: 11px; font-weight: 600; margin: 0 4px 4px 0; }
.card-labels { display: flex; flex-wrap: wrap; margin-top: 6px; }
.ticket-footer .count { color: var(--muted); font-size: 11px; }
.activity { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; font-size: 12.5px; max-height: 320px; overflow: auto; }
.activity li { display: flex; gap: 8px; }
.activity-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--plum); margin-top: 5px; flex: none; }
.activity p { margin: 2px 0; color: var(--muted); overflow-wrap: anywhere; }
.activity time { color: var(--muted); font-size: 11px; }
.ticket-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; }
.ticket-filters input[type="search"] { flex: 1 1 200px; }
@media (max-width: 820px) {
  .ticket-detail { grid-template-columns: 1fr; }
  dialog:has(.ticket-detail) { width: calc(100% - 16px); }
}
.ticket-link-tools { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.link-copy, .link-open { font-size: 12px; text-decoration: none; color: var(--plum); width: auto; padding: 2px 8px; }
.ticket-page-heading { align-items: center; }
.ticket-page .ticket-detail, .page > .ticket-detail { margin-top: 8px; }
/* What someone says in a crew scene (the manager bringing a new task), above their name bubble. */
.crew-office .crew-line {
  position: absolute; left: 50%; bottom: calc(100% + 34px); transform: translateX(-50%); z-index: 120;
  width: max-content; max-width: 34cqw; padding: 4px 7px; border-radius: 9px; background: #593bb0; color: #fff;
  font-size: clamp(9px, 2.2cqw, 12px); line-height: 1.2; pointer-events: none; box-shadow: 0 3px 10px #21163433;
}
.crew-office .crew-line[hidden] { display: none; }
.agent-contact { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0; }
.agent-contact .button { text-decoration: none; }
.crew-office .crew-speech[hidden] { display: none; }
a.button.primary, a.button.primary:visited { color: #fff; }
.agent-contact a.button { display: inline-flex; align-items: center; gap: 6px; }
/* The manager on the phone during a call: a phone at his ear that shakes while he talks. */
.crew-office .crew-phone { position: absolute; right: -40%; top: 18%; font-size: clamp(10px, 3cqw, 16px); line-height: 1; pointer-events: none; z-index: 2; }
.crew-office .crew-phone[hidden] { display: none; }
.crew-office .crew-phone.talking { animation: crew-phone-talk .45s ease-in-out infinite alternate; }
@keyframes crew-phone-talk { from { transform: rotate(-14deg) translateY(0); } to { transform: rotate(10deg) translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .crew-office .crew-phone.talking { animation: none; } }

/* demo.broogle.company: the real app, plus "Quero assinar" on top and the sign-in past the limits. */
a.button.demo-subscribe, button.button.demo-subscribe { position: fixed; top: 12px; right: 16px; z-index: 60; text-decoration: none; box-shadow: 0 6px 18px #0002; color: #fff; }
#demo-signin { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #140f2699; padding: 16px; }
#demo-signin .login-card { display: grid; gap: 10px; max-width: 380px; }
.button.demo-apple { background: #000; color: #fff; border-color: #000; }
.public-demo #operator-settings, .public-demo [data-modal="workspace"], .public-demo [data-modal="project"] { display: none; }
.public-demo .test-badge { display: none; }
.public-demo[data-guide-area]:not([data-guide-area="intro"]) .guide-panel { top: 64px; }

/* The renew banner when a project's paid period ended (app.js). */
.renew-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 18px; padding: 18px 20px;
  border-radius: 11px; background: #fff4d6; border: 1px solid #f0c75e; }
.renew-banner h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.renew-banner p { margin: 0; }
.renew-actions { display: flex; gap: 8px; flex: none; }
@media (max-width: 640px) { .renew-banner { flex-direction: column; align-items: flex-start; } }

/* User menu → Settings (squad.js). */
.operator-link { display: flex; align-items: center; gap: 8px; width: 100%; margin: 12px 0 2px; padding: 8px 10px; border: 1px solid var(--border);
  border-radius: 8px; background: #faf9fd; font-size: 12px; font-weight: 650; color: var(--dark); text-align: left; }
.operator-link:hover { background: #f3effc; border-color: #d9cff2; }

/* Faces of the roles and people. */
.squad-face { width: 44px; height: 44px; flex: none; border-radius: 12px; background: #f1ecfc; image-rendering: pixelated; object-fit: contain; padding: 3px; }
.squad-face.folk { display: grid; place-items: end center; overflow: hidden; padding: 0; }
.squad-face.folk .folk-portrait { width: 40px; }

/* The hire cart. */
dialog:has(.cart-root) { width: min(640px, calc(100% - 28px)); }
.cart { display: grid; gap: 14px; }
.cart-trial { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left;
  border: 1.5px dashed #c9b8f3; border-radius: 14px; background: linear-gradient(120deg, #faf6ff, #fff 70%); transition: border-color .15s, box-shadow .15s; }
.cart-trial:hover { border-color: var(--plum); }
.cart-trial.chosen { border: 1.5px solid var(--plum); box-shadow: 0 0 0 3px #593bb01f; background: #f6f1ff; }
.cart-trial strong { display: block; font-size: 15px; }
.cart-trial small { display: block; color: var(--muted); margin-top: 3px; }
.cart-trial-faces { display: flex; }
.cart-trial-faces .squad-face + .squad-face { margin-left: -14px; box-shadow: -2px 0 0 #fff; }
.cart-trial-price { font-size: 20px; font-weight: 760; color: var(--dark); text-align: right; }
.cart-trial-price small { font-size: 11px; font-weight: 600; }
.cart-or { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--muted); font-size: 12px; font-weight: 600; }
.cart-or::before, .cart-or::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.cart-period { display: inline-grid; grid-auto-flow: column; justify-self: start; padding: 4px; gap: 4px; border-radius: 999px; background: #f1eef8; }
.cart-period button { border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; font-size: 13px; font-weight: 650; color: var(--muted); }
.cart-period button.on { background: #fff; color: var(--plum); box-shadow: 0 1px 4px #2a1d4a22; }
.cart-roles { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cart-roles li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--border);
  border-radius: 12px; background: #fff; transition: border-color .15s, background .15s; }
.cart-roles li.picked { border-color: #b9a5ee; background: #fbf9ff; }
.cart-role strong { display: block; }
.cart-role small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.cart-price { text-align: right; font-weight: 700; }
.cart-price small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; }
.cart-note { grid-column: 2 / -1; color: #8a5a00; font-size: 11px; }
.stepper { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: 999px; background: #faf9fd; }
.stepper button { width: 32px; height: 32px; border: 0; border-radius: 50%; background: transparent; font-size: 18px; font-weight: 700; color: var(--plum); }
.stepper button:not(:disabled):hover { background: #efe8ff; }
.stepper output { min-width: 22px; text-align: center; font-weight: 760; font-variant-numeric: tabular-nums; }
.muted-block { opacity: .45; }
.cart-summary { border-radius: 14px; background: #201b32; color: #fff; padding: 16px 18px; display: grid; gap: 8px; }
.cart-summary h3 { margin: 0; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: #cfc6e8; }
.cart-summary ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.cart-summary li { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: #e9e4f7; }
.cart-summary .muted { color: #b5abd1; margin: 0; }
.cart-total { display: flex; align-items: baseline; gap: 8px; margin: 6px 0 0; padding-top: 10px; border-top: 1px solid #ffffff22; }
.cart-total span { flex: 1; font-weight: 600; }
.cart-total strong { font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cart-total small { color: #b5abd1; }
.cart-fine { margin: 0; font-size: 11.5px; color: #b5abd1; line-height: 1.45; }
.cart-pay { width: 100%; padding: 12px; font-size: 15px; background: #8a6cf0; border-color: #8a6cf0; }
.cart-pay:not(:disabled):hover { background: #9b81f5; }
.cart-stripe { text-align: center; color: #b5abd1; font-size: 11px; }
.cart-error { color: #ffb4b4; margin: 0; }
@media (max-width: 560px) {
  .cart-roles li { grid-template-columns: auto 1fr; }
  .cart-price { text-align: left; }
  .cart-trial { grid-template-columns: auto 1fr; }
  .cart-trial-price { grid-column: 1 / -1; text-align: left; }
}

/* Settings: My plan and Billing. */
.settings-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(240px, 1fr); gap: 15px; align-items: start; }
.plan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.plan-head h2, .billing-card h2, .language-card h2 { margin: 0 0 4px; }
.settings-side { display: grid; gap: 15px; }
.language-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 12px; padding: 4px; border: 1px solid var(--border); border-radius: 10px; background: #faf9fd; }
.language-choice button { border: 0; border-radius: 7px; background: none; padding: 8px 6px; font-size: 12px; font-weight: 650; color: var(--muted); }
.language-choice button:hover { color: var(--dark); background: #f0ebfb; }
.language-choice button[aria-checked="true"] { background: #fff; color: #50319f; box-shadow: 0 1px 3px #2a1d4a24; }
.plan-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 14px 0; }
.plan-tile { border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: #faf9fd; }
.plan-tile strong { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--plum); }
.plan-tile span { font-size: 12px; color: var(--muted); font-weight: 600; }
.plan-people { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.plan-people li { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; }
.plan-people li.unpaid { opacity: .5; }
.plan-people strong, .plan-people small { display: block; }
.plan-people small, .plan-date { color: var(--muted); font-size: 12px; }
.plan-where { font-size: 12px; font-weight: 600; color: var(--dark); }
@media (max-width: 760px) {
  .settings-grid { grid-template-columns: 1fr; }
  .plan-people li { grid-template-columns: auto 1fr; }
  .plan-tiles { grid-template-columns: 1fr 1fr 1fr; }
}

/* My Crew: available people, allocate and release. */
.crew-column { display: grid; gap: 15px; align-content: start; }
.crew-available .crew-card { background: #fff; border-style: dashed; }
.crew-available .crew-card:not(:disabled):hover { border-color: var(--plum); background: #faf7ff; }
.crew-available .squad-face { width: 36px; height: 36px; border-radius: 9px; }
.agent-squad { display: grid; gap: 5px; justify-items: start; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--border); }
.agent-squad small { color: var(--muted); }
.squad-confirm p { margin: 0 0 16px; line-height: 1.5; }
.squad-confirm-actions { display: flex; gap: 8px; }

/* The demo's "all set" after buying (squad.js). */
.signup-ready { display: grid; gap: 14px; justify-items: start; }
.signup-ready p { margin: 0; line-height: 1.5; }
.signup-go { text-decoration: none; padding: 12px 18px; font-size: 15px; }
.signup-spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #e7e0fb; border-top-color: var(--plum); animation: signup-spin .9s linear infinite; }
@keyframes signup-spin { to { transform: rotate(360deg); } }
