/* A shared conversation and document workspace. Canvas matches the BP PPT. */
.simple-workspace .workspace,
.simple-workspace.owner-workspace .workspace {
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
}
.simple-workspace .workspace.is-admin-view {
  display: block;
}
.simple-workspace .topbar {
  background: var(--canvas);
}
.simple-workspace .sidebar {
  background: color-mix(in srgb, var(--canvas) 92%, var(--ink) 8%);
  padding: 22px 12px;
}
.simple-workspace .sidebar-head {
  padding: 0 10px 18px;
}
.simple-workspace .sidebar-head h2 {
  font-size: 13px;
  font-weight: 500;
}
.simple-workspace .requirement-item {
  border-radius: 8px;
  padding: 12px 10px;
  gap: 8px;
}
.simple-workspace .requirement-item-title {
  color: var(--ink);
  font-size: 13px;
}
.simple-workspace .requirement-item.is-active {
  background: var(--soft);
}
.simple-workspace .requirement-item:hover {
  background: color-mix(in srgb, var(--soft) 55%, transparent);
}
.simple-workspace .requirement-item.is-active:hover {
  background: var(--soft);
}
.owner-workspace #sidebarFilters {
  display: block;
  margin: 0 6px 15px;
}
#ownerSessionSearch {
  width: 100%;
  background: transparent;
  font-size: 12px;
  padding: 9px 10px;
}
.session-filters {
  display: flex;
  gap: 3px;
  margin-top: 12px;
}
.session-filters button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 7px 3px;
  border-radius: 6px;
  font-size: 11px;
  color: var(--ink-soft);
}
.session-filters button.is-active {
  background: var(--paper);
  color: var(--ink);
}
.session-meta {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  width: 100%;
  font-size: 11px;
  color: var(--ink-soft);
}
.session-meta > span:first-child {
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
}
.session-status {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  padding: 3px 7px;
  border-radius: 5px;
  color: var(--ink-soft);
  background: var(--soft);
}
.session-status.review {
  background: #f3e7d7;
  color: #835d2b;
}
.session-status.make {
  background: #eae6de;
  color: #635743;
}
.session-status.building {
  background: #e9e9eb;
  color: #555767;
}
[data-theme="dark"] .session-status.review {
  background: #493b28;
  color: #ebc88c;
}
[data-theme="dark"] .session-status.make,
[data-theme="dark"] .session-status.building {
  background: var(--soft);
  color: var(--ink);
}
.project-workbench {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex: 0 0 auto;
  min-height: 88px;
  padding: 21px 28px 18px;
  border-bottom: 1px solid var(--line);
}
.workbench-header > div:first-child {
  min-width: 0;
}
.workbench-header h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.workbench-header p {
  margin: 5px 0 0;
  font-size: 11px;
  color: var(--ink-soft);
}
.workbench-header p span {
  margin: 0 4px;
}
.header-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex: 0 0 auto;
}
.workbench-panels {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.2fr);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.conversation-panel,
.plan-panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}
.plan-panel {
  background: var(--paper);
  border-left: 1px solid var(--line);
}
.pane-heading {
  min-height: 61px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  margin: 0;
  padding: 17px 25px;
}
.pane-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.pane-heading h2 svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: var(--ink-soft);
}
.pane-heading > span {
  font-size: 11px;
  color: var(--ink-soft);
  white-space: nowrap;
}
.simple-workspace .conversation-panel .conversation-scroll {
  gap: 27px;
  padding: 13px 25px 30px;
}
.simple-workspace .message-body {
  font-size: 14px;
  line-height: 1.85;
}
.simple-workspace .message.student {
  max-width: 92%;
  padding: 13px 16px;
  border-radius: 13px;
  background: var(--soft);
}
.simple-workspace .message.teacher {
  background: transparent;
  border-left: 2px solid var(--branch);
  border-radius: 0;
  padding: 7px 0 7px 15px;
}
.simple-workspace .message-label {
  font-size: 11px;
}
.simple-workspace .creator-compose-area,
.owner-compose-area {
  flex: 0 0 auto;
  padding: 10px 22px 21px;
}
.simple-workspace .composer {
  border-radius: 13px;
  background: var(--paper);
}
.simple-workspace .composer textarea {
  padding: 10px 11px;
  min-height: 64px;
  font-size: 13px;
}
.simple-workspace .composer .button {
  min-height: 34px;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
}
.simple-workspace .composer-actions {
  justify-content: flex-end;
}
.simple-workspace .composer-hint {
  display: none;
}
.simple-workspace .submitted-note {
  padding: 0 3px;
  margin: 0 0 9px;
  gap: 7px;
  font-size: 11px;
}
.simple-workspace .submitted-note svg {
  display: none;
}
.simple-workspace .submitted-note [data-creator-plan] {
  display: none;
}
.owner-note-form {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 13px;
  background: var(--paper);
}
.owner-note-form > label {
  display: block;
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 500;
}
.simple-workspace .owner-note-form textarea {
  min-height: 70px;
  max-height: 160px;
  padding: 10px 0;
  border: 0;
  background: transparent;
  font-size: 13px;
  resize: vertical;
}
.note-form-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.note-form-actions > :first-child {
  margin-right: auto;
}
.note-form-actions .button {
  min-height: 34px;
  font-size: 12px;
  padding: 8px 12px;
  border-radius: 8px;
}
.note-form-actions .feedback-reopen {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 11px;
}
.note-form-actions .quiet-caption {
  font-size: 10px;
}
.simple-workspace .plan-panel > .plan-scroll {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
  padding: 5px 29px 35px;
  margin: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--line) transparent;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.plan-scroll .idea-reading {
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  min-height: 0;
}
.document-heading {
  margin: 23px 0 16px;
}
.document-heading h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.6;
}
.document-heading > span {
  display: block;
  color: var(--ink-soft);
  font-size: 11px;
  margin-top: 6px;
}
.plan-document {
  overflow-wrap: anywhere;
}
.plan-document > .idea-definition,
.plan-document .friendly-plan > .idea-definition {
  font-size: 14px;
  line-height: 1.9;
  font-weight: 400;
  margin: 13px 0 17px;
  color: var(--ink);
}
.plan-document .friendly-plan {
  margin: 0;
  padding: 0;
}
.plan-document .friendly-plan section {
  margin: 0;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}
.plan-document .friendly-plan h3,
.plan-pending h3 {
  margin: 0 0 9px;
  font-size: 13px;
  line-height: 1.5;
  font-weight: 600;
}
.plan-document .friendly-plan p,
.plan-document .friendly-plan li {
  font-size: 13px;
  line-height: 1.9;
  margin-top: 0;
  margin-bottom: 5px;
  color: var(--ink);
}
.plan-document .friendly-plan ul {
  padding-left: 19px;
  margin: 0;
}
.plan-pending {
  margin-top: 20px;
  padding: 15px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}
.plan-pending ul {
  padding-left: 17px;
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.8;
}
.plan-placeholder {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.version-delta {
  margin: 20px 0;
  padding: 16px 17px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--canvas);
}
.version-delta > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
.version-delta > header h3 {
  font-size: 12px;
  margin: 0;
  font-weight: 600;
}
.version-delta > header span {
  font-size: 10px;
  color: var(--ink-soft);
}
.version-delta > p {
  margin: 9px 0 0;
  font-size: 12px;
  line-height: 1.8;
}
.delta-row {
  border-top: 1px solid var(--line);
  margin-top: 13px;
  padding-top: 12px;
  font-size: 12px;
}
.delta-row > strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 7px;
}
.delta-row > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 5px;
}
.delta-row > div > span {
  color: var(--ink-soft);
  flex: 0 0 24px;
  font-size: 10px;
}
.delta-row p {
  margin: 0;
  line-height: 1.75;
}
.version-history {
  border: 1px solid var(--line);
  border-radius: 9px;
  margin: 3px 0 19px;
  background: var(--paper);
}
.version-history > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  font-size: 12px;
  cursor: pointer;
  list-style: none;
}
.version-history > summary::-webkit-details-marker {
  display: none;
}
.version-history > summary > span::before {
  content: "⌄";
  display: inline-block;
  margin-right: 8px;
  color: var(--ink-soft);
}
.version-history[open] > summary > span::before {
  transform: rotate(180deg);
}
.version-history > summary small {
  font-size: 10px;
  color: var(--ink-soft);
}
.version-tree {
  margin: 4px 16px 16px 24px;
  padding: 0 0 0 15px;
  list-style: none;
  border-left: 1px solid var(--branch);
}
.version-tree .version-node {
  position: relative;
  display: block;
  height: auto;
  width: 100%;
  margin: 0;
  padding: 4px 0 14px;
}
.version-tree .version-node::before {
  content: "";
  position: absolute;
  left: -19px;
  top: 20px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--branch);
  background: var(--paper);
  border-radius: 50%;
}
.version-tree .version-button {
  display: block;
  width: 100%;
  max-width: none;
  min-height: 0;
  margin: 0;
  padding: 10px 12px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--ink);
}
.version-tree .version-button.is-selected {
  background: var(--canvas);
  border-color: var(--branch);
}
.version-button > span:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}
.version-button strong {
  font-size: 12px;
  font-weight: 500;
}
.version-button small {
  font-size: 10px;
  color: var(--ink-soft);
}
.version-description {
  display: block;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 5px;
}
.version-button em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 10px;
  color: var(--ink-soft);
}
.version-products {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 5px;
  margin: 5px 0 0 18px;
  padding-left: 11px;
  border-left: 1px solid var(--line);
}
.version-products:empty {
  display: none;
}
.version-products .product-fruit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 7px 9px;
  background: transparent;
  text-align: left;
  font-size: 11px;
}
.version-products .product-fruit.is-selected {
  border-color: var(--branch);
  background: var(--soft);
}
.version-products small {
  color: var(--ink-soft);
  font-size: 10px;
}
.plan-actions {
  flex: 0 0 auto;
  padding: 15px 25px 19px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.plan-actions .simple-build-form {
  margin: 0;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}
.plan-actions .simple-build-form label {
  flex: 1 1 auto;
  min-width: 0;
}
.plan-actions .simple-build-form label > span {
  font-size: 10px;
  margin-bottom: 5px;
}
.plan-actions .simple-build-form select {
  width: 100%;
  height: 37px;
  font-size: 12px;
}
.plan-actions .button {
  min-height: 37px;
  padding: 9px 16px;
  font-size: 12px;
  border-radius: 8px;
}
.workspace-empty {
  display: flex;
  height: 100%;
  min-height: 240px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 35px;
  text-align: center;
}
.workspace-empty h1 {
  margin: 18px 0 10px;
  font-size: 25px;
  font-weight: 500;
}
.workspace-empty p {
  font-size: 13px;
  line-height: 1.9;
  color: var(--ink-soft);
}
.document-symbol svg {
  width: 29px;
  height: 29px;
  color: var(--ink-soft);
}
.simple-workspace .button {
  border-radius: 8px;
}
.simple-workspace .settings-menu {
  box-shadow: 0 12px 36px #24201812;
}
.simple-workspace .settings-dock {
  top: 14px;
}
.workbench-tabs {
  display: none;
}
.simple-workspace .login-visual-copy h2 {
  font-size: clamp(30px, 3.1vw, 44px);
  line-height: 1.45;
  font-weight: 500;
  letter-spacing: -1px;
}
.simple-workspace .login-visual-copy > p {
  color: #d5c6a6;
}
.simple-workspace .login-form input:focus {
  border-color: var(--accent);
  outline: 2px solid var(--line);
  outline-offset: 2px;
  box-shadow: none;
  background: var(--paper);
}
.simple-workspace .calm-details {
  margin-top: 14px;
}
.simple-workspace .calm-details > summary {
  font-size: 12px;
}
.plan-scroll .delivery-reading h2 {
  font-size: 20px;
  margin-top: 20px;
}
.plan-scroll .sharing-notice {
  font-size: 12px;
  line-height: 1.8;
  padding: 12px 14px;
  background: var(--canvas);
}
.plan-scroll .sharing-notice svg {
  display: none;
}
.simple-workspace .simple-chat-home {
  max-width: 760px;
  margin: auto;
  padding-top: min(20vh, 180px);
}
.simple-chat-home .small-leaf {
  display: none;
}
.simple-workspace .simple-chat-home h1 {
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.6px;
}
.simple-workspace .simple-chat-home > p {
  font-size: 14px;
}
.simple-workspace .simple-chat-home .quick-composer {
  border-radius: 14px;
}
@media (max-width: 1260px) {
  .simple-workspace .workspace,
  .simple-workspace.owner-workspace .workspace {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .workbench-panels {
    grid-template-columns: minmax(310px, 0.95fr) minmax(390px, 1.15fr);
  }
  .pane-heading {
    padding-inline: 20px;
  }
  .simple-workspace .plan-panel > .plan-scroll {
    padding-inline: 22px;
  }
  .simple-workspace .conversation-panel .conversation-scroll {
    padding-inline: 20px;
  }
  .note-form-actions > .quiet-caption {
    display: none;
  }
}
@media (max-width: 1100px) {
  .simple-workspace .workspace,
  .simple-workspace.owner-workspace .workspace {
    display: block;
  }
  .simple-workspace .creator-menu-toggle {
    display: inline-flex;
    border: 0;
    width: 28px;
    min-width: 28px;
  }
  .simple-workspace .sidebar {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    bottom: 0;
    width: 264px;
    height: auto;
    z-index: 45;
    box-shadow: 14px 0 36px #24201816;
    background: var(--canvas);
  }
  .simple-workspace.creator-menu-open .sidebar {
    display: flex;
  }
  .simple-workspace .workspace.is-admin-view .sidebar {
    display: none;
  }
}
@media (max-width: 860px) {
  .workbench-header {
    min-height: 76px;
    padding: 17px 22px;
  }
  .workbench-header h1 {
    font-size: 17px;
  }
  .workbench-panels {
    display: flex;
  }
  .workbench-panels > section {
    flex: 1 1 auto;
  }
  .plan-panel {
    border-left: 0;
  }
  .project-workbench[data-mobile-pane="plan"] .conversation-panel,
  .project-workbench[data-mobile-pane="conversation"] .plan-panel {
    display: none;
  }
  .workbench-tabs {
    display: flex;
    flex: 0 0 auto;
    padding: 0 21px;
    gap: 22px;
    border-bottom: 1px solid var(--line);
  }
  .workbench-tabs button {
    font-size: 12px;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 12px 0 10px;
    background: transparent;
    color: var(--ink-soft);
  }
  .workbench-tabs button[aria-pressed="true"] {
    color: var(--ink);
    border-bottom-color: var(--ink);
  }
  .pane-heading {
    min-height: 56px;
    padding-block: 15px;
  }
  .pane-heading > span {
    font-size: 10px;
  }
  .simple-workspace .plan-panel > .plan-scroll {
    padding: 0 22px 30px;
  }
  .simple-workspace .conversation-panel .conversation-scroll {
    padding: 10px 22px 25px;
  }
  .simple-workspace .creator-compose-area,
  .owner-compose-area {
    padding: 12px 18px 20px;
  }
}
@media (max-width: 640px) {
  .simple-workspace .sidebar {
    top: 58px;
  }
  .simple-workspace .settings-dock {
    top: 11px;
  }
  .workbench-header {
    padding: 15px 18px;
    gap: 9px;
  }
  .workbench-header h1 {
    font-size: 16px;
  }
  .workbench-header p {
    font-size: 10px;
  }
  .workbench-header .header-actions .session-status {
    display: none;
  }
  .header-actions .creator-docs-button {
    font-size: 11px;
  }
  .header-actions .creator-docs-button span {
    display: none;
  }
  .pane-heading {
    gap: 8px;
    padding-inline: 18px;
  }
  .pane-heading h2 {
    font-size: 12px;
  }
  .pane-heading > span {
    font-size: 9px;
  }
  .simple-workspace .plan-panel > .plan-scroll {
    padding-inline: 18px;
  }
  .document-heading h2 {
    font-size: 17px;
  }
  .plan-document .friendly-plan h3 {
    font-size: 13px;
  }
  .plan-document .friendly-plan p,
  .plan-document .friendly-plan li {
    font-size: 13px;
  }
  .plan-actions {
    padding: 13px 18px 17px;
  }
  .plan-actions .simple-build-form {
    gap: 8px;
  }
  .plan-actions .simple-build-form select {
    font-size: 11px;
  }
  .plan-actions .button {
    padding-inline: 12px;
  }
  .version-products .product-fruit {
    gap: 5px;
  }
  .version-products small {
    font-size: 9px;
  }
  .version-history > summary {
    gap: 6px;
    padding: 11px;
  }
  .version-history > summary small {
    font-size: 9px;
  }
  .simple-workspace .simple-chat-home {
    padding: 60px 22px 30px;
  }
  .simple-workspace .simple-chat-home h1 {
    font-size: 25px;
  }
}
