.workspace-shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 235px;
  flex: 0 0 235px;
  background: #f0f1ea;
  border-right: 1px solid var(--line);
  padding: 29px 18px 18px;
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
}
.sidebar > .brand {
  padding: 0 12px;
  margin-bottom: 36px;
}
.project-switch {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  border: 1px solid #d7dbce;
  background: #f9faf6;
  border-radius: 6px;
  padding: 12px 10px;
  text-align: left;
  font-size: 11px;
  min-height: 44px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.7px;
  color: #717a6b;
  margin: 30px 12px 12px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 12px 14px;
  min-height: 45px;
  font-size: 13px;
  color: #5e695c;
  border-radius: 5px;
}
.nav-link:hover {
  background: #e4e8dc;
}
.nav-link.active {
  background: #dfe5d5;
  color: #263628;
  font-weight: 600;
}
.nav-icon {
  font-size: 19px;
  line-height: 1;
  width: 20px;
  text-align: center;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  background: #f4f6ef;
  border-radius: 3px;
  padding: 2px 5px;
}
.sidebar-bottom {
  margin-top: auto;
}
.evidence-note {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 10px;
  font-size: 10px;
  color: #68735f;
}
.evidence-note strong {
  display: block;
  font-size: 9px;
  letter-spacing: 1px;
  margin-top: 5px;
  font-weight: 500;
}
.evidence-dot,
.banner-dot {
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
}
.evidence-note button {
  margin-left: auto;
  background: transparent;
  border: 0;
  font-size: 15px;
  padding: 10px;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  border: 0;
  border-top: 1px solid #d8ddcf;
  padding: 18px 5px 5px;
  background: transparent;
}
.avatar {
  display: grid;
  place-items: center;
  background: #e3e6db;
  width: 34px;
  height: 34px;
  border: 1px solid #d3d8ca;
  border-radius: 50%;
  font-size: 15px;
}
.account-button strong {
  font-size: 11px;
  font-weight: 500;
}
.account-button small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 5px;
}
.workspace-body {
  margin-left: 235px;
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.workspace-header {
  height: 76px;
  border-bottom: 1px solid var(--line);
  padding: 0 35px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  background: #fafaf7;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
}
.breadcrumb-root {
  color: var(--muted);
}
.breadcrumb strong {
  font-weight: 500;
}
.breadcrumb-slash {
  color: #b0b6a7;
}
.workspace-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.preview-badge {
  font-size: 9px;
  letter-spacing: 0.5px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 3px;
  color: var(--muted);
}
.workspace-actions .language {
  font-size: 10px;
  min-height: 34px;
  padding: 7px 10px;
}
.sign-in {
  border: 0;
  background: transparent;
  font-size: 11px;
  min-height: 40px;
}
.release-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 35px;
  background: #f3eee6;
  border-bottom: 1px solid #e9dfd2;
  font-size: 10px;
  line-height: 1.7;
  color: #756350;
}
.release-banner button {
  border: 0;
  background: transparent;
  font-size: 10px;
  white-space: nowrap;
  margin-left: auto;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.workspace-content {
  padding: 36px;
  flex: 1;
  min-width: 0;
  outline: none;
}
.projects-content {
  max-width: 1350px;
  width: 100%;
  margin: 0 auto;
}
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 29px;
}
.page-header .eyebrow,
.compact-header .eyebrow {
  font-size: 9px;
  letter-spacing: 1.7px;
  margin: 0 0 12px;
}
.page-header h1 {
  font:
    33px/1.2 Georgia,
    "Songti SC",
    serif;
  letter-spacing: -0.9px;
  margin: 0 0 12px;
}
.page-header p:last-child {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}
.button.small {
  font-size: 11px;
  padding: 10px 15px;
  min-height: 39px;
  white-space: nowrap;
}
.welcome-card {
  background: #e9ede1;
  border: 1px solid #dce2d2;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  align-items: center;
  padding: 28px 32px;
  overflow: hidden;
}
.welcome-copy .status-pill {
  font-size: 9px;
  border-color: #cfd7c2;
  background: #f0f3e9;
}
.welcome-copy h2 {
  font:
    27px/1.25 Georgia,
    "Songti SC",
    serif;
  letter-spacing: -0.5px;
  margin: 19px 0 12px;
}
.welcome-copy p {
  max-width: 430px;
  font-size: 12px;
  color: #5e6b55;
  line-height: 1.85;
}
.text-link {
  display: inline-flex;
  gap: 22px;
  align-items: center;
  font-size: 11px;
  border-bottom: 1px solid #bcc7ad;
  padding: 10px 0 6px;
}
.welcome-drawing svg {
  width: 100%;
  max-height: 190px;
}
.welcome-drawing {
  text-align: center;
  padding: 5px 0 10px;
}
.welcome-drawing > span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #79856d;
}
.project-section {
  margin-top: 33px;
}
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.section-row h2 {
  font-size: 13px;
  font-weight: 500;
  margin: 0;
}
.count {
  font-size: 10px;
  display: inline-block;
  background: #eeeee7;
  border: 1px solid var(--line);
  padding: 2px 5px;
  margin-left: 8px;
  border-radius: 3px;
  color: var(--muted);
}
.section-row > .muted {
  font-size: 10px;
}
.empty-state {
  border: 1px dashed #d5dace;
  border-radius: 7px;
  padding: 34px 24px;
  text-align: center;
  background: #fafbf7;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  margin: 0 auto 13px;
  background: #eff1e9;
  color: #7e8a71;
  border: 1px solid #dce1d3;
  border-radius: 10px;
  font-size: 24px;
}
.empty-state h2 {
  font-size: 15px;
  font-weight: 500;
  margin: 0 0 10px;
}
.empty-state > p {
  font-size: 11px;
  color: var(--muted);
  max-width: 400px;
  line-height: 1.8;
  margin: 0 auto 17px;
}
.empty-state .button {
  font-size: 10px;
  min-height: 36px;
  padding: 8px 15px;
}
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 23px;
  gap: 18px;
}
.workflow a {
  display: flex;
  gap: 13px;
  padding: 19px 5px;
  border-top: 1px solid var(--line);
}
.workflow .step {
  font: 10px monospace;
  color: var(--accent);
  padding-top: 3px;
}
.workflow h3 {
  font-size: 11px;
  font-weight: 500;
  margin: 0 0 7px;
}
.workflow p {
  font-size: 9px;
  color: var(--muted);
  margin: 0;
  line-height: 1.6;
}
.workflow a > span:last-child {
  margin-left: auto;
  font-size: 12px;
  color: var(--muted);
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 36px;
  border-top: 1px solid var(--line);
  font-size: 9px;
  color: var(--muted);
  gap: 20px;
}
.workspace-footer > div {
  display: flex;
  gap: 20px;
}
.compact-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 25px;
}
.compact-header h1 {
  font:
    30px/1.3 Georgia,
    "Songti SC",
    serif;
  letter-spacing: -0.7px;
  margin: 0;
}
.context-bar {
  background: #f0f1e9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 13px 17px;
  font-size: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  margin-bottom: 20px;
  color: var(--muted);
}
.context-bar a {
  color: var(--accent);
  white-space: nowrap;
}
.reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr);
  gap: 18px;
  min-height: 490px;
}
.reader-panel,
.conversation-panel,
.figure-canvas,
.figure-inspector {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcfcf9;
  overflow: hidden;
}
.panel-tabs {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--line);
  gap: 16px;
  padding: 0 16px;
  min-height: 49px;
}
.panel-tabs button {
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  padding: 16px 0 14px;
  font-size: 10px;
  color: var(--muted);
}
.panel-tabs button[aria-selected="true"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.panel-status {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
}
.paper-empty {
  display: flex;
  align-items: center;
  text-align: center;
  flex-direction: column;
  padding: 65px 24px 45px;
}
.paper-placeholder {
  border: 1px solid #d5dace;
  box-shadow: 4px 5px 0 #ecefe5;
  width: 83px;
  height: 110px;
  padding: 22px 14px;
  margin-bottom: 28px;
  transform: rotate(-4deg);
}
.paper-placeholder div {
  height: 3px;
  background: #dce1d4;
  margin-bottom: 8px;
}
.paper-placeholder div:nth-child(3) {
  width: 70%;
  background: #d6b4a5;
}
.paper-empty h2 {
  font:
    21px Georgia,
    "Songti SC",
    serif;
  margin: 0 0 14px;
}
.paper-empty p {
  font-size: 11px;
  color: var(--muted);
  max-width: 300px;
  line-height: 1.8;
  margin: 0 0 22px;
}
.paper-empty .button {
  font-size: 10px;
  min-height: 37px;
}
.privacy-note {
  font-size: 9px;
  color: var(--muted);
  margin-top: 13px;
}
.conversation-panel {
  display: flex;
  flex-direction: column;
}
.conversation-empty {
  padding: 36px 24px;
  text-align: center;
  flex: 1;
}
.assistant-mark {
  width: 36px;
  height: 36px;
  margin: 10px auto 22px;
  color: #8b977e;
}
.assistant-mark svg {
  width: 36px;
  height: 36px;
}
.conversation-empty h3 {
  font-size: 14px;
  font-weight: 500;
}
.conversation-empty p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 260px;
  margin: auto;
}
.composer {
  margin: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px;
  background: #f6f7f1;
}
.composer label {
  font-size: 9px;
  color: var(--muted);
}
textarea {
  resize: vertical;
}
.composer textarea {
  display: block;
  width: 100%;
  min-height: 65px;
  border: 0;
  background: transparent;
  padding: 13px 0;
  font-size: 11px;
  color: var(--muted);
}
.composer > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 8px;
  color: var(--muted);
}
.composer button {
  height: 27px;
  width: 27px;
  border: 0;
  border-radius: 4px;
  background: #e3e7db;
  color: #8d9685;
}
.next-step {
  padding: 22px 0 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 10px;
  color: var(--muted);
}
.next-step a {
  color: var(--accent);
  white-space: nowrap;
}
.figure-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 285px;
  gap: 18px;
  min-height: 490px;
}
.figure-canvas {
  background-color: #fafbf7;
  background-image: radial-gradient(#d6ddcc 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}
.canvas-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fcfcf9;
  border-bottom: 1px solid var(--line);
  padding: 14px;
  font-size: 10px;
}
.locked-badge {
  font-size: 9px;
  padding: 5px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--muted);
}
.canvas-center {
  padding: 60px 24px;
  text-align: center;
}
.canvas-center > svg {
  width: 200px;
}
.canvas-center h2 {
  font:
    22px Georgia,
    "Songti SC",
    serif;
  margin: 20px 0 14px;
}
.canvas-center p {
  font-size: 11px;
  line-height: 1.9;
  color: var(--muted);
  max-width: 340px;
  margin: 0 auto 22px;
}
.concept-label {
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #7b866f;
}
.figure-inspector {
  padding: 25px 20px;
}
.figure-inspector .eyebrow {
  font-size: 9px;
}
.figure-inspector h3 {
  font:
    20px/1.4 Georgia,
    "Songti SC",
    serif;
  margin: 17px 0 25px;
}
.figure-inspector dl {
  font-size: 10px;
  margin: 0 0 25px;
}
.figure-inspector dt {
  color: var(--muted);
  margin-bottom: 7px;
}
.figure-inspector dd {
  margin: 0 0 19px;
}
.figure-inspector label {
  font-size: 10px;
}
.figure-inspector textarea {
  display: block;
  margin: 10px 0 16px;
  width: 100%;
  min-height: 90px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #f5f6ef;
  padding: 12px;
  font-size: 10px;
}
.figure-inspector .button {
  font-size: 10px;
  width: 100%;
  padding: 10px;
}
.inspector-note {
  font-size: 9px;
  line-height: 1.9;
  color: var(--muted);
  margin-top: 20px;
}
.resource-panel {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fcfcf9;
  overflow: hidden;
  margin-top: 28px;
}
.resource-panel .empty-state {
  border: 0;
  padding: 75px 24px;
  background: transparent;
}
.resource-heading {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}
.task-legend {
  display: flex;
  gap: 22px;
  font-size: 10px;
  color: var(--muted);
  flex-wrap: wrap;
  margin-top: 24px;
}
.task-legend p {
  width: 100%;
  font-size: 9px;
  margin: 0;
}
.menu-toggle {
  display: none;
}
.sidebar-scrim {
  display: none;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 10px;
  max-width: 460px;
  width: calc(100% - 32px);
  padding: 36px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 20px 100px #14251d33;
  max-height: 90dvh;
  overflow: auto;
}
dialog::backdrop {
  background: #1c2e2355;
  backdrop-filter: blur(3px);
}
dialog h2 {
  font:
    30px/1.25 Georgia,
    "Songti SC",
    serif;
  letter-spacing: -0.7px;
}
dialog p {
  font-size: 12px;
  line-height: 1.9;
  color: var(--muted);
}
dialog .eyebrow {
  font-size: 9px;
  margin-top: 28px;
}
dialog > .button {
  margin-top: 18px;
}
.dialog-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: transparent;
  border: 0;
  width: 36px;
  height: 36px;
  font-size: 23px;
  color: var(--muted);
}
#email-form label {
  display: block;
  font-size: 11px;
  margin: 24px 0 9px;
}
#email {
  width: 100%;
  padding: 13px;
  border: 1px solid #cfd5c6;
  border-radius: 5px;
  background: #fffefa;
  font-size: 13px;
}
#email-form .button {
  width: 100%;
  margin-top: 12px;
  font-size: 12px;
}
#auth-message {
  font-size: 10px;
  min-height: 38px;
  line-height: 1.8;
}
.login-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 8px;
  letter-spacing: 1px;
  color: var(--muted);
  margin: 18px 0;
}
.login-divider:before,
.login-divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
.google-button {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 11px;
  background: transparent;
  color: var(--muted);
}
#login > small {
  display: block;
  font-size: 9px;
  line-height: 1.8;
  text-align: center;
  margin-top: 22px;
  color: var(--muted);
}
@media (min-width: 1600px) {
  .workspace-content {
    padding: 45px 60px;
  }
  .workspace-header,
  .release-banner {
    padding-left: 60px;
    padding-right: 60px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 205px;
    flex-basis: 205px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .workspace-body {
    margin-left: 205px;
  }
  .workspace-content {
    padding: 28px 24px;
  }
  .workspace-header {
    padding: 0 24px;
  }
  .release-banner {
    padding: 10px 24px;
  }
  .page-header h1 {
    font-size: 28px;
  }
  .welcome-card {
    padding: 25px;
  }
  .welcome-copy h2 {
    font-size: 24px;
  }
  .reader-layout {
    grid-template-columns: minmax(0, 1fr) minmax(240px, 0.8fr);
  }
  .figure-layout {
    grid-template-columns: minmax(0, 1fr) 250px;
  }
  .workspace-footer {
    padding: 20px 24px;
  }
}
@media (max-width: 850px) {
  .sidebar {
    transform: translateX(-100%);
    width: 235px;
    transition: transform 0.2s;
  }
  .sidebar.open {
    transform: translateX(0);
  }
  .workspace-body {
    margin-left: 0;
  }
  .sidebar-scrim {
    display: block;
    position: fixed;
    inset: 0;
    border: 0;
    background: #20302466;
    z-index: 19;
  }
  .menu-toggle {
    display: block;
    border: 0;
    background: transparent;
    width: 32px;
    height: 40px;
    font-size: 17px;
  }
  .breadcrumb {
    gap: 10px;
  }
  .workspace-header {
    height: 66px;
  }
  .workspace-content {
    padding: 28px;
  }
  .page-header h1 {
    font-size: 30px;
  }
  .release-banner {
    padding: 12px 28px;
  }
}
@media (max-width: 600px) {
  .workspace-header {
    padding: 0 16px;
  }
  .breadcrumb-root,
  .breadcrumb-slash {
    display: none;
  }
  .breadcrumb {
    font-size: 12px;
  }
  .workspace-actions {
    gap: 9px;
  }
  .preview-badge {
    font-size: 8px;
    padding: 5px;
  }
  .sign-in {
    font-size: 10px;
  }
  .workspace-content {
    padding: 25px 18px;
  }
  .release-banner {
    padding: 10px 18px;
    font-size: 9px;
    align-items: flex-start;
    gap: 8px;
  }
  .release-banner .banner-dot {
    margin-top: 6px;
  }
  .release-banner button {
    font-size: 9px;
  }
  .page-header {
    display: block;
    margin-bottom: 24px;
  }
  .page-header h1 {
    font-size: 29px;
    max-width: 310px;
  }
  .page-header .button {
    margin-top: 18px;
  }
  .page-header p:last-child {
    font-size: 11px;
    max-width: 320px;
  }
  .welcome-card {
    grid-template-columns: 1fr;
    padding: 25px;
  }
  .welcome-copy h2 {
    font-size: 26px;
    max-width: 260px;
  }
  .welcome-drawing {
    max-width: 260px;
    margin: 12px auto 0;
    width: 100%;
  }
  .welcome-drawing svg {
    height: 150px;
  }
  .welcome-copy p {
    font-size: 11px;
  }
  .project-section {
    margin-top: 27px;
  }
  .section-row > .muted {
    font-size: 9px;
  }
  .empty-state {
    padding: 30px 17px;
  }
  .workflow {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 25px;
  }
  .workflow a {
    padding: 18px 4px;
    align-items: center;
  }
  .workflow h3 {
    font-size: 12px;
  }
  .workflow p {
    font-size: 10px;
  }
  .workflow .step {
    margin-right: 8px;
  }
  .workspace-footer {
    padding: 20px 18px;
    font-size: 8px;
  }
  .workspace-footer > div {
    gap: 13px;
  }
  .compact-header {
    align-items: flex-start;
    gap: 10px;
  }
  .compact-header h1 {
    font-size: 26px;
  }
  .compact-header .eyebrow {
    font-size: 8px;
  }
  .compact-header .button {
    font-size: 9px;
    padding: 9px;
    min-height: 36px;
  }
  .compact-header > .status-pill {
    font-size: 9px;
    white-space: nowrap;
  }
  .context-bar {
    font-size: 9px;
    padding: 12px;
  }
  .reader-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .paper-empty {
    padding: 40px 20px;
  }
  .paper-empty h2 {
    font-size: 21px;
  }
  .conversation-panel {
    min-height: 370px;
  }
  .conversation-empty {
    padding: 28px 22px;
  }
  .next-step {
    font-size: 9px;
    line-height: 1.8;
  }
  .figure-layout {
    grid-template-columns: 1fr;
  }
  .canvas-center {
    padding: 45px 20px;
  }
  .figure-inspector {
    padding: 25px;
  }
  .figure-inspector dl {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .figure-inspector dd {
    margin: 0 0 15px;
  }
  .canvas-toolbar {
    font-size: 9px;
  }
  .locked-badge {
    font-size: 8px;
  }
  .task-legend {
    gap: 16px;
  }
  dialog {
    padding: 30px 25px;
  }
  dialog h2 {
    font-size: 28px;
  }
}
