@import "meetings.css";
@import "transcript.css";
@import "access.css";
/* One stylesheet for the whole page. System fonts only; nothing is loaded from another site. */
:root {
  --ink: #000;
  --muted: #5c5c5c;
  --line: #e3e3e3;
  --edge: #858585;
  --panel: #f5f5f5;
  --accent: #ea8c22;
  --accent-ink: #000;
  --accent-deep: #c2690a;
  --danger: #a4262c;
  --hit: #fde4c4;
  --band: #000;
  --band-text: #fff;
  --band-muted: #c9c9c9;
  --band-edge: #8a8a8a;
  --sidebar: 220px;
  --topbar: 64px;
  --font-ui: "Segoe UI", "Avenir Next", system-ui, -apple-system, sans-serif;
  --font-brand: "Century Gothic", "Avenir Next", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --font-reading: "Segoe UI", system-ui, -apple-system, "Geeza Pro", Tahoma, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 15px/1.5 var(--font-ui);
  color: var(--ink);
  background: #fff;
}
a { color: var(--ink); text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { padding: 6px 14px; border: 1px solid var(--edge); border-radius: 6px; background: #fff; cursor: pointer; }
button:hover { background: var(--panel); }
button.primary, button[data-action=copy] { background: var(--accent); border-color: var(--accent-deep); color: var(--accent-ink); font-weight: 600; }
button.primary:hover, button[data-action=copy]:hover { background: #f29b38; }
button.danger { color: var(--danger); border-color: var(--danger); }
button:disabled, button.primary:disabled { background: #ededed; border-color: #d4d4d4; color: #6e6e6e; cursor: default; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 2px; }
.link-button { border: 0; background: none; color: var(--ink); padding: 4px 8px; }
.link-button:hover { background: none; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
input, select, textarea { padding: 6px 10px; border: 1px solid var(--edge); border-radius: 6px; background: #fff; }
input::placeholder { color: var(--muted); opacity: 1; }
input:focus-visible, select:focus-visible { outline-offset: 0; }
.loading, .failure { padding: 2rem; color: var(--muted); }
.failure-detail { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }

/* The full-page loading screen and the start-up failure: the logo centred on a light page. Only the blocks that are
   direct children of #app; a small "loading" inside the content area is not affected. */
#app > .loading, #app > .failure {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  min-height: 100vh; margin: 0; padding: 2rem; text-align: center;
}
#app > .failure { color: var(--ink); gap: 14px; }
#app > .failure p { margin: 0; max-width: 560px; }
#app > .failure .failure-logo { margin-bottom: 14px; }
.loading-logo, .failure-logo { display: block; width: 240px; max-width: 70vw; height: auto; }
/* The words stay for screen readers and for code that looks for them; they are not drawn. */
.loading-text {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
/* Three of the logo's chevrons light up in turn, left to right. */
.loading-mark { display: flex; gap: 10px; }
.loading-mark i {
  display: block; width: 14px; height: 16px; background: var(--accent); opacity: .22;
  clip-path: polygon(0 0, 44% 0, 100% 50%, 44% 100%, 0 100%, 56% 50%);
  animation: chevron-glow 1.2s ease-in-out infinite;
}
.loading-mark i:nth-child(2) { animation-delay: .2s; }
.loading-mark i:nth-child(3) { animation-delay: .4s; }
@keyframes chevron-glow { 0%, 60%, 100% { opacity: .22; } 25% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loading-mark i { animation: none; opacity: 1; }
}

/* Layout A: top bar (a black band with the logo), fixed sidebar on the left, main area on the right. */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; height: var(--topbar); z-index: 2;
  display: flex; align-items: center; gap: 20px; padding: 0 20px;
  background: var(--band); color: var(--band-text);
}
.topbar :focus-visible { outline-color: var(--accent); }
.product { display: flex; align-items: center; gap: 14px; color: var(--band-text); text-decoration: none; white-space: nowrap; }
.product .logo { display: block; height: 24px; width: auto; }
.product-name { padding-left: 14px; border-left: 1px solid #6b6b6b; font: 700 18px/22px var(--font-brand); }
.spacer { flex: 1; }
.user { color: var(--band-muted); }
.topbar .link-button { color: var(--accent); }
.topbar .link-button:hover { text-decoration-color: var(--accent); }
.search { width: 340px; max-width: 40vw; }
.topbar .search { background: var(--band); border-color: var(--band-edge); color: var(--band-text); }
.topbar .search::placeholder { color: #a3a3a3; }
.sidebar {
  position: fixed; top: var(--topbar); left: 0; bottom: 0; width: var(--sidebar);
  padding: 16px 10px; overflow-y: auto; background: var(--panel); border-right: 1px solid var(--line);
}
.side-item {
  display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; padding: 8px 12px; border-radius: 6px;
  color: var(--ink); text-decoration: none;
}
.side-item:hover { background: #e8e8e8; }
.side-item.selected { background: var(--ink); color: #fff; font-weight: 600; }
.side-item .count { color: var(--muted); font-variant-numeric: tabular-nums; }
.side-item.selected .count { color: var(--accent); }
.side-bottom { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.main { margin-left: var(--sidebar); padding: calc(var(--topbar) + 28px) 32px 48px; }
.noaccess .noaccess-text { padding: calc(var(--topbar) + 40px) 28px; font-size: 18px; }

/* Tables and statuses. */
.page-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.page-head h1 { margin: 0; font: 700 24px/1.25 var(--font-brand); }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 700; color: var(--ink); font-size: 13px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { border-bottom: 2px solid var(--ink); }
td { font-variant-numeric: tabular-nums; }
tbody tr:hover { background: #fafafa; }
td.title a { font-weight: 600; text-decoration: none; }
td.title a:hover { text-decoration: underline; text-decoration-color: var(--accent); }
.status-failed { color: var(--danger); }
.empty { color: var(--muted); padding: 24px 0; }
.row-message { color: var(--muted); font-size: 13px; }

/* Transcript: paragraphs read right to left with the time stamp at their start. */
.para { display: flex; gap: 14px; padding: 8px 0; direction: rtl; text-align: start; }
.para .stamp {
  flex: none; direction: ltr; color: var(--ink); font-variant-numeric: tabular-nums;
  background: none; border: 0; padding: 0; cursor: pointer;
}
.para .text { flex: 1; unicode-bidi: plaintext; }
.hit { background: var(--hit); border-radius: 2px; }
.hit.current { outline: 2px solid var(--ink); }

/* Dialogs and the notice bar. */
dialog { border: 0; border-top: 4px solid var(--ink); border-radius: 10px; padding: 24px 28px; max-width: 520px; width: 90vw; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
dialog::backdrop { background: rgba(0, 0, 0, .55); }
dialog h2 { margin: 0 0 16px; font: 700 20px/1.25 var(--font-brand); }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.field { display: block; margin: 12px 0; }
.field > span { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 700; }
.field input, .field select { width: 100%; }
.field input:not([type=file]), .field select { height: 38px; }
.error-text { color: var(--danger); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.tabs a { padding: 8px 14px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; }
.tabs a[aria-current=page] { color: var(--ink); border-bottom-color: var(--accent-deep); font-weight: 600; }
#notice:empty { display: none; }
#notice {
  position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 10;
  max-width: 80vw; padding: 10px 18px; border-radius: 8px; background: var(--ink); color: #fff;
}
