/* Viewport workspace: a large monitor, a narrow transcript, and fixed transport. */
.site-header {
  max-width: none;
  height: 56px;
  padding: 0 24px;
  background: #fff;
}
.brand {
  font-size: 22px;
  letter-spacing: -1px;
}
.brand img {
  width: 26px;
  height: 26px;
  margin-right: 7px;
}
.private-label {
  font-size: 12px;
  color: var(--muted);
}
main {
  max-width: none;
  padding: 0;
}
.start-screen {
  max-width: 720px;
  margin: clamp(24px, 9vh, 90px) auto 20px;
  padding: 32px;
}
.start-heading {
  margin-bottom: 24px;
}
.start-heading h1 {
  font-size: clamp(25px, 4vw, 34px);
  letter-spacing: -1px;
  line-height: 1.2;
}
.start-heading p {
  margin-top: 12px;
  font-size: 14px;
}
.start-screen .meeting-start {
  padding: 22px;
}
.start-screen .setup-note {
  text-align: left;
}
.start-screen .setup-symbols {
  display: none;
}
.start-screen .setup-note p {
  font-size: 12px;
}
.start-files {
  gap: 10px;
}
.start-support {
  font-size: 11px;
}
.under-editor {
  margin: 0;
  padding: 8px 16px;
  gap: 16px;
  font-size: 11px;
}
body:not(.is-editing) .under-editor {
  max-width: 720px;
  margin: auto;
}
body:not(.is-editing) .session-note {
  display: none;
}
#help-dialog {
  width: min(880px, calc(100vw - 24px));
}
#help-dialog .help-grid {
  padding: 12px 0;
  gap: 24px;
}
.is-editing {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  background: #fff;
}
.is-editing > .site-header {
  display: none;
}
.is-editing main {
  height: 100%;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.is-editing #capture-origin-note {
  margin: 0;
  padding: 5px 16px;
  font-size: 11px;
  flex-shrink: 0;
}
.is-editing .editor {
  --timeline-height: clamp(
    144px,
    calc(124px + var(--layer-rows, 0) * 36px),
    min(26vh, 230px)
  );
  flex: 1;
  min-height: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}
.editor .project-bar {
  flex: 0 0 56px;
  padding: 7px 16px;
  gap: 14px;
  min-width: 0;
}
.editor-brand {
  flex-shrink: 0;
}
.editor .project-heading {
  flex: 1;
  min-width: 0;
  overflow: hidden;
}
.editor #project-name {
  width: 100%;
  font-size: 13px;
  text-overflow: ellipsis;
}
.editor .project-actions {
  gap: 5px;
  align-items: center;
}
.editor .project-actions .primary {
  min-height: 34px;
  padding: 6px 14px;
}
.editor .record-open {
  margin: 0;
  min-height: 34px;
  width: auto;
}
.editor .record-open span {
  color: #bc405b;
  font-size: 10px;
}
.editor .workspace {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: clamp(300px, 27vw, 400px) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) var(--timeline-height);
  grid-template-areas: "transcript preview" "timeline timeline";
}
.panel-tabs {
  display: none;
}
.editor .transcript {
  padding: 0;
  min-height: 0;
  overflow: hidden;
  border-right: 1px solid var(--line);
  border-bottom: 0;
}
.editor .section-heading {
  min-height: 42px;
  padding: 6px 14px;
  margin: 0;
  flex-shrink: 0;
}
.editor .section-heading h2 {
  font-size: 12px;
}
.editor .small-label {
  font-size: 9px;
  letter-spacing: 0.3px;
}
.editor .transcript-tools {
  padding: 0 8px;
  gap: 8px;
  justify-content: space-between;
  flex-shrink: 0;
}
.editor .transcript-tools .quiet {
  font-size: 11px;
}
.editor .transcript-hint {
  font-size: 11px;
  padding: 6px 14px;
  flex-shrink: 0;
}
.editor #transcript-coverage {
  max-height: 62px;
  overflow-y: auto;
}
.editor .recording-notice {
  margin: 6px 8px;
  max-height: 72px;
  overflow-y: auto;
  flex-shrink: 0;
}
.editor .segments {
  flex: 1;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 6px 8px 16px;
  overscroll-behavior: contain;
}
.editor .selection-bar {
  flex: 0 0 auto;
  padding: 6px 8px;
  min-height: 46px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 3px;
}
.editor .selection-bar > span {
  display: block;
  font-size: 10px;
}
.editor .selection-bar > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 2px;
}
.editor .selection-bar button {
  font-size: 10px;
  padding: 6px 8px;
  min-height: 32px;
}
.editor .preview {
  padding: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eeedf1;
}
.editor .preview .section-heading {
  background: #fff;
  gap: 12px;
}
.editor #preview-size {
  margin-left: auto;
}
.editor .canvas-wrap {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 12px;
  padding: 0;
  border-radius: 0;
  background: none;
  overflow: hidden;
}
.editor #preview {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-height: none;
  object-fit: contain;
  box-shadow: none;
}
.tool-menu {
  position: relative;
  flex-shrink: 0;
}
.tool-menu > summary {
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 550;
  padding: 7px 9px;
  border-radius: 5px;
  min-height: 32px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tool-menu > summary::-webkit-details-marker {
  display: none;
}
.tool-menu[open] > summary,
.tool-menu > summary:hover {
  background: #eeecf4;
}
.tool-menu > .menu-content,
.file-menu > .library {
  position: absolute;
  z-index: 12;
  top: calc(100% + 5px);
  right: 0;
  width: 250px;
  max-height: min(70dvh, 540px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #fff;
  box-shadow: 0 8px 32px #29283320;
}
.file-menu > .library {
  left: 0;
  right: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.file-menu .library > button,
.file-menu .library-bottom button {
  width: 100%;
  text-align: left;
  justify-content: start;
  font-size: 12px;
  padding: 9px;
}
.file-menu .library-bottom {
  margin: 0;
  padding: 4px 0 0;
}
.file-menu .file-limit {
  margin: 0;
  padding: 0 9px 7px;
}
.file-menu .media-card {
  width: 100%;
  margin: 4px 0 0;
}
.file-menu .media-card strong {
  font-size: 11px;
}
.file-menu .media-card > span {
  font-size: 10px;
}
.transcript-menu .menu-content {
  width: 180px;
}
.transcript-menu button {
  display: block;
  width: 100%;
  text-align: left;
}
.canvas-menu > .menu-content {
  width: 300px;
  padding: 16px;
}
.canvas-menu .preview-settings {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  margin: 0;
  padding: 0;
}
.canvas-menu .preview-settings label {
  font-size: 11px;
  margin-top: 7px;
}
.canvas-menu .preview-settings select {
  width: 100%;
  max-width: none;
  padding: 6px;
  font-size: 12px;
  min-height: 36px;
}
.canvas-menu .trim-settings {
  margin-top: 16px;
  padding-top: 10px;
}
.canvas-menu .trim-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.canvas-menu .trim-fields input {
  width: 100%;
}
.editor .timeline {
  padding: 4px 14px 8px;
  min-height: 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  --track-label: 94px;
}
.editor .timeline-toolbar {
  flex: 0 0 42px;
  margin: 0;
  gap: 12px;
}
.editor .timeline-toolbar > div {
  flex: 1;
  min-width: 0;
}
.editor .timeline-toolbar .preview-playback {
  flex: 0 0 auto;
  padding: 0;
  border: 0;
  gap: 10px;
}
.editor .timeline-toolbar .layer-buttons {
  justify-content: end;
  gap: 2px;
}
.editor .play-button {
  width: 32px;
  height: 32px;
  min-height: 32px;
}
.editor .timecode {
  font-size: 11px;
}
.editor #edit-summary {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.editor .timeline > .scrubber {
  flex-shrink: 0;
  height: 20px;
}
.editor .timeline > .ruler {
  flex-shrink: 0;
  margin-bottom: 5px;
}
.editor .timeline-tracks {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}
.editor .timeline-clips {
  height: 36px;
}
.editor .recording-track-label,
.editor .layer-track-label {
  font-size: 10px;
}
.editor .layer-track {
  margin: 4px 0;
}
.editor .layer-lane {
  height: 32px;
}
.editor .layer-track-label {
  min-height: 32px;
  padding: 5px 8px;
}
.editor .layer-empty {
  border: 0;
  padding: 6px 0 0 102px;
  font-size: 10px;
}
.editor .layer-inspector {
  position: fixed;
  z-index: 9;
  top: 62px;
  left: 6px;
  bottom: calc(var(--timeline-height) + 40px);
  width: calc(clamp(300px, 27vw, 400px) - 12px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 12px;
  background: #fff;
  box-shadow: 0 4px 20px #29283322;
}
.editor .layer-inspector-heading {
  position: sticky;
  top: -12px;
  padding: 5px 0;
  background: #fff;
  z-index: 1;
}
.editor .layer-fields {
  grid-template-columns: 1fr 1fr;
}
.editor .layer-text-style {
  grid-template-columns: 1fr 1fr;
}
.editor .layer-text-style .layer-checkbox {
  grid-column: 1 / -1;
}
.is-editing .under-editor {
  flex: 0 0 auto;
  padding: 5px 14px;
  border-top: 1px solid var(--line);
  background: #faf9fc;
  min-height: 28px;
}
.is-editing #status {
  font-size: 10px;
  min-width: 0;
  max-height: 44px;
  overflow-y: auto;
}
.is-editing .session-note {
  font-size: 10px;
  white-space: nowrap;
}
@media (max-width: 1050px) {
  .editor .project-bar {
    gap: 8px;
    padding-inline: 10px;
  }
  .editor .editor-brand {
    font-size: 0;
    gap: 0;
  }
  .editor .editor-brand .brand-dot {
    display: none;
  }
  .editor .editor-brand img {
    margin: 0;
  }
  .editor #edit-summary {
    display: none;
  }
  .is-editing .session-note {
    display: none;
  }
}
@media (max-width: 700px) {
  .site-header {
    padding-inline: 16px;
  }
  .start-screen {
    margin: 20px 12px;
    padding: 22px 18px;
  }
  .start-screen .meeting-start {
    padding: 16px;
  }
  .start-heading {
    margin-bottom: 18px;
  }
  .editor .project-bar {
    flex-basis: 52px;
    gap: 4px;
    padding: 5px 8px;
    flex-wrap: nowrap;
  }
  .editor .editor-brand,
  .editor .editor-help {
    display: none;
  }
  .editor .project-heading {
    width: auto;
  }
  .editor #project-name {
    font-size: 12px;
  }
  .editor .project-actions {
    width: auto;
    gap: 1px;
  }
  .editor #save-project {
    font-size: 11px;
    padding: 6px;
  }
  .editor .project-actions .primary {
    padding: 6px 9px;
    gap: 4px;
    font-size: 11px;
  }
  .editor .panel-tabs {
    display: flex;
    flex: 0 0 38px;
    border-bottom: 1px solid var(--line);
    padding: 0 12px;
    gap: 16px;
  }
  .panel-tabs button {
    padding: 6px 12px;
    font-size: 12px;
    border-bottom: 2px solid transparent;
  }
  .panel-tabs [aria-selected="true"] {
    border-bottom-color: var(--purple);
    color: var(--purple);
  }
  .is-editing .editor {
    --timeline-height: 164px;
  }
  .editor .workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "panel" "timeline";
  }
  .editor .transcript,
  .editor .preview {
    grid-area: panel;
    border: 0;
  }
  .editor[data-panel="preview"] .transcript,
  .editor[data-panel="transcript"] .preview {
    display: none;
  }
  .editor .preview .section-heading {
    min-height: 34px;
    padding: 2px 10px;
  }
  .editor .preview .section-heading h2 {
    display: none;
  }
  .editor #preview-size {
    margin: 0 auto 0 0;
  }
  .editor .canvas-wrap {
    margin: 8px;
  }
  .editor .transcript > .section-heading {
    display: none;
  }
  .editor .transcript-tools {
    padding-top: 4px;
  }
  .editor .transcript-hint {
    padding-block: 4px;
  }
  .editor .selection-bar {
    flex-direction: column;
    padding: 4px 8px;
    min-height: 44px;
  }
  .editor .selection-bar > div {
    justify-content: flex-start;
  }
  .editor .selection-bar button {
    min-height: 34px;
  }
  .editor .timeline {
    padding: 3px 8px 6px;
    --track-label: 64px;
  }
  .editor .timeline-toolbar {
    gap: 4px;
  }
  .editor .timeline-toolbar > div {
    flex: 0 0 auto;
  }
  .editor .timeline-toolbar .preview-playback {
    flex: 1;
    justify-content: center;
    gap: 6px;
  }
  .editor .timeline-toolbar .layer-buttons {
    gap: 0;
  }
  .editor .layer-buttons .quiet {
    font-size: 10px;
    padding: 6px 4px;
  }
  .editor .icon-button {
    min-width: 28px;
    padding: 2px;
  }
  .editor .timecode {
    font-size: 10px;
  }
  .editor .layer-empty {
    padding-left: 72px;
  }
  .editor .layer-inspector {
    top: 94px;
    bottom: 196px;
    left: 8px;
    width: calc(100% - 16px);
  }
  .file-menu > .library {
    left: 0;
  }
  .canvas-menu > .menu-content {
    width: min(300px, calc(100vw - 24px));
  }
  .is-editing .under-editor {
    padding: 4px 10px;
  }
}
@media (max-height: 650px) {
  .is-editing .editor {
    --timeline-height: 144px;
  }
  .editor .layer-inspector {
    bottom: 176px;
  }
  .editor #transcript-hint {
    display: none;
  }
  .editor .selection-bar > span {
    display: none;
  }
  .editor #transcript-coverage {
    max-height: 42px;
  }
}
