.save-dialog.share-dialog { width: min(650px, calc(100vw - 32px)); }
.share-link, .access-fields, .access-row { display: flex; align-items: center; gap: 12px; }
.share-link input, .access-name, .access-principal { flex: 1; min-width: 0; }
.share-link { margin: 20px 0; }
.access-list { border-block: 1px solid var(--line); margin: 20px 0; }
.access-row { padding: 14px 0; justify-content: space-between; }
.access-row + .access-row { border-top: 1px solid var(--line); }
.access-row small { display: block; color: var(--muted); }
.access-row select { width: 140px; }
.access-form .access-fields { align-items: end; }
.access-form select { min-height: 40px; }
@media (max-width: 600px) { .access-fields { flex-wrap: wrap; } .access-name { flex-basis: 65%; } }

:root {
  --paper: #faf9f6;
  --white: #fffefa;
  --ink: #282930;
  --muted: #736f79;
  --line: #e7e5e0;
  --violet: #74619c;
  --violet-dark: #5f4e83;
  --lavender: #eeebf5;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  color: inherit;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
h3 {
  font-weight: 500;
}
h1 {
  font-family: var(--serif);
  font-size: 40px;
  letter-spacing: -1.4px;
  line-height: 1.15;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.5px;
}
h3 {
  font-size: 16px;
}
input,
textarea,
select {
  border: 1px solid var(--line);
  background: #fffefa;
  border-radius: 7px;
  padding: 11px 12px;
  color: var(--ink);
}
input,
textarea {
  width: 100%;
}
textarea {
  resize: vertical;
  line-height: 1.65;
}
input::placeholder,
textarea::placeholder {
  color: #aaa7ae;
}
label {
  display: block;
  font-size: 12px;
  font-weight: 550;
  margin: 17px 0 7px;
}
label .muted {
  font-weight: 400;
  margin-left: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}
input:focus,
textarea:focus {
  border-color: #a69ac4;
}
::selection {
  background: #dfd8ed;
}
button {
  border: 0;
  background: none;
}
button,
.button {
  transition:
    background 0.16s,
    border-color 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 37px;
  padding: 9px 15px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
  line-height: 1.3;
  border: 1px solid transparent;
}
.primary {
  background: var(--violet);
  color: white;
  border-color: var(--violet);
  box-shadow: 0 2px 3px #45345b0c;
}
.primary:hover:not(:disabled) {
  background: var(--violet-dark);
  border-color: var(--violet-dark);
}
.secondary {
  background: var(--white);
  border-color: var(--line);
}
.secondary:hover {
  background: #f1eff5;
  border-color: #d0c9dc;
}
.subtle:hover {
  background: #f0edf5;
}
.full {
  width: 100%;
  justify-content: space-between;
}
.small-button {
  padding: 7px 12px;
  min-height: 31px;
}
.icon-button {
  font-size: 21px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  color: var(--muted);
}
.icon-button:hover {
  background: var(--lavender);
  color: var(--violet);
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.7px;
  color: var(--violet);
  margin-bottom: 13px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
}
.wordmark {
  font-size: 26px;
  font-weight: 550;
  letter-spacing: -1.2px;
}
.brand-dot {
  color: var(--violet);
}
.artiflect-mark {
  display: inline-block;
  position: relative;
  width: 27px;
  height: 27px;
  color: var(--violet);
}
.artiflect-mark:before,
.artiflect-mark:after {
  content: "";
  position: absolute;
  width: 11px;
  height: 11px;
  border: 2px solid currentColor;
}
.artiflect-mark:before {
  left: 0;
  top: 0;
  border-right: 0;
  border-bottom: 0;
}
.artiflect-mark:after {
  right: 0;
  bottom: 0;
  border-left: 0;
  border-top: 0;
}
.tiny {
  width: 17px;
  height: 17px;
}
.tiny:before,
.tiny:after {
  width: 7px;
  height: 7px;
  border-width: 1.5px;
}
.mini-mark {
  color: var(--violet);
  font-size: 23px;
}
.avatar {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  background: #e9e5f0;
  color: #75668e;
  font-size: 11px;
  border: 2px solid var(--white);
  border-radius: 50%;
  font-weight: 500;
}
.avatar.small {
  width: 25px;
  height: 25px;
  font-size: 9px;
  border-width: 1px;
}
.avatar.tiny-avatar {
  width: 20px;
  height: 20px;
  font-size: 8px;
}
.pill,
.version-mini {
  font-size: 10px;
  line-height: 1.5;
  background: #f0eef2;
  color: #9b919f;
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  background: #91a48c;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
.sr-only {
  position: absolute !important;
  clip: rect(0, 0, 0, 0);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  padding: 10px;
  background: var(--white);
  z-index: 100;
}
.skip-link:focus {
  top: 12px;
}
[hidden] {
  display: none !important;
}
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  background: var(--ink);
  color: white;
  border-radius: 7px;
  padding: 13px 18px;
  box-shadow: 0 7px 30px #30273c22;
  font-size: 12px;
  max-width: calc(100vw - 30px);
}
.error-toast {
  background: #5c3f46;
  display: flex;
  gap: 20px;
  align-items: center;
}
.toast button {
  color: inherit;
  font-size: 20px;
}
.inline-error {
  padding: 13px 15px;
  background: #f7ebea;
  color: #895451;
  border: 1px solid #edd9d7;
  border-radius: 6px;
  font-size: 12px;
  margin: 12px 0;
  overflow-wrap: anywhere;
}
.loading-line {
  color: var(--violet);
  font-size: 11px;
  margin-bottom: 10px;
}
.empty-state {
  grid-column: 1/-1;
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: #fffdfa;
  border: 1px dashed var(--line);
  border-radius: 9px;
  text-align: center;
}
.empty-symbol {
  font-size: 30px;
  color: #b6abc9;
  font-weight: 300;
  margin-bottom: 20px;
}
.empty-state h3 {
  font-family: var(--serif);
  font-size: 25px;
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 13px;
  color: var(--muted);
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 227px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  padding: 31px 22px 18px;
  display: flex;
  flex-direction: column;
  background: #f6f5f1;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  margin-left: 7px;
}
.workspace-name {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 39px 0 30px;
  font-size: 11px;
  font-weight: 550;
}
.workspace-avatar {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #dedad4;
  border-radius: 7px;
  background: #ebe8e2;
  font: 17px var(--serif);
}
.workspace-name small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 400;
  margin-top: 3px;
}
.nav-label {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #a7a3a6;
  margin: 0 10px 10px;
}
.nav-item {
  width: 100%;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  text-align: left;
  padding: 10px 12px;
  border-radius: 6px;
  color: #7f7c85;
  margin-bottom: 4px;
}
.nav-item > span:first-child {
  font-size: 17px;
  line-height: 1;
}
.nav-item.active {
  color: var(--violet);
  background: #eae5f1;
  font-weight: 550;
}
.nav-item:hover {
  background: #eeebf0;
}
.nav-count {
  margin-left: auto;
  font-size: 10px;
  opacity: 0.6;
}
.sidebar-bottom {
  margin-top: auto;
}
.user-row {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 10px;
}
.user-row small {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 2px;
}
.user-row .icon-button {
  margin-left: auto;
  font-size: 17px;
}
.dashboard {
  padding: 0 48px;
  max-width: 1630px;
  width: calc(100% - 227px);
  margin: 0 auto;
}
.dashboard-top {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: #b0aab1;
  font-size: 8px;
  letter-spacing: 1.2px;
}
.mobile-account {
  display: none;
}
.dashboard-top b {
  color: #6f6875;
  font-weight: 500;
  margin-left: 8px;
}
.private-label {
  font-size: 10px;
  letter-spacing: 0;
  color: #8b8691;
}
.dashboard-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 48px 0 43px;
}
.dashboard-heading h1 {
  font-size: 36px;
}
.dashboard-heading .muted {
  font-size: 12px;
  margin-top: 13px;
}
.dashboard-heading .primary {
  padding: 12px 17px;
}
.collection-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-bottom: 22px;
}
.collection-toolbar h2 {
  font-size: 14px;
  font-weight: 550;
  display: flex;
  align-items: center;
  gap: 9px;
}
.collection-toolbar .muted {
  display: block;
  font-size: 10px;
  margin-top: 4px;
}
.search {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 0;
  padding: 0 11px;
  width: 249px;
  color: #9b92a4;
  font-weight: 400;
}
.search input {
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  outline-offset: 0;
}
.search > span {
  font-size: 20px;
  line-height: 1;
}
.search kbd {
  border: 1px solid var(--line);
  border-radius: 3px;
  font-size: 9px;
  width: 17px;
  text-align: center;
  font-weight: 400;
}
.artifact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.artifact-card {
  background: var(--white);
  border: 1px solid #e5e2dc;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 3px 8px #463e5503;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
}
.artifact-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px #463e550b;
  border-color: #c9bfd8;
}
.card-preview {
  height: 194px;
  background: #eeede8;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 19px 28px 0;
}
.preview-b {
  background: #eeebf1;
}
.paper-preview {
  width: 100%;
  height: 177px;
  border: 1px solid #dedbd5;
  border-bottom: 0;
  background: #fffdf8;
  box-shadow: 0 4px 15px #3d37490c;
  border-radius: 3px 3px 0 0;
  padding: 13px 15px;
  overflow: hidden;
}
.preview-b .paper-preview {
  background: #f9f7fc;
}
.paper-nav {
  display: flex;
  align-items: center;
  gap: 5px;
  border-bottom: 1px solid #eeebe6;
  padding-bottom: 9px;
}
.paper-logo {
  width: 15px;
  height: 7px;
  background: #95839b;
  border-radius: 1px;
  margin-right: auto;
}
.paper-nav i {
  width: 15px;
  height: 2px;
  background: #d5d0d7;
}
.paper-heading {
  font-family: var(--serif);
  font-size: 19px;
  line-height: 1.05;
  width: 80%;
  margin: 17px 0 10px;
  letter-spacing: -0.5px;
  max-height: 42px;
  overflow: hidden;
  color: #5a505f;
}
.paper-line {
  height: 2px;
  background: #e3dfe3;
  width: 70%;
  margin-top: 5px;
}
.paper-line.short {
  width: 48%;
}
.paper-button {
  width: 34px;
  height: 12px;
  background: #8d7a9d;
  margin: 10px 0 13px;
  border-radius: 2px;
}
.paper-blocks {
  display: flex;
  gap: 5px;
}
.paper-blocks span {
  height: 40px;
  background: #eee9ec;
  flex: 1;
  border-radius: 2px;
}
.paper-blocks span:nth-child(2) {
  background: #e7e6dc;
}
.paper-blocks span:nth-child(3) {
  background: #e8e3ef;
}
.preview-label {
  position: absolute;
  left: 13px;
  top: 12px;
  font-size: 7px;
  letter-spacing: 1px;
  color: #9c929f;
  background: #faf9f4dd;
  border: 1px solid #e4dfdbaa;
  padding: 3px 5px;
  border-radius: 3px;
}
.card-arrow {
  opacity: 0;
  position: absolute;
  right: 12px;
  top: 12px;
  background: white;
  color: var(--violet);
  border-radius: 50%;
  width: 25px;
  height: 25px;
  text-align: center;
  line-height: 25px;
  transition: opacity 0.2s;
}
.artifact-card:hover .card-arrow {
  opacity: 1;
}
.card-body {
  padding: 17px 18px 15px;
}
.card-title {
  display: flex;
  gap: 9px;
  align-items: center;
  justify-content: space-between;
}
.card-title h3 {
  font-size: 13px;
  font-weight: 550;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.card-body > p {
  font-size: 10px;
  color: #939096;
  margin-top: 8px;
  line-height: 1.5;
}
.card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #eeebe7;
  margin-top: 13px;
  padding-top: 13px;
  font-size: 9px;
  color: #99929f;
}
.comment-count {
  margin-left: auto;
  font-size: 11px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  padding: 28px 30px;
  box-shadow: 0 30px 120px #2d253c35;
  max-height: 90vh;
  overflow: auto;
}
dialog::backdrop {
  background: #25222c55;
  backdrop-filter: blur(3px);
}
dialog header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}
dialog h2 {
  font: 28px/1.15 var(--serif);
  letter-spacing: -0.8px;
}
dialog header .eyebrow {
  margin-bottom: 8px;
}
dialog > p {
  font-size: 12px;
  margin: 13px 0 15px;
}
dialog footer {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 22px;
}
.create-dialog {
  width: 530px;
}
.save-dialog {
  width: 470px;
}
.code-input {
  font:
    11px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  background: #f8f7f5;
}
.file-input {
  padding: 8px;
  font-size: 11px;
  border-style: dashed;
}
.file-input::file-selector-button {
  background: #eae5f1;
  border: 0;
  color: var(--violet);
  padding: 6px 11px;
  border-radius: 4px;
  margin-right: 10px;
  cursor: pointer;
  font: inherit;
}
.field-hint {
  font-size: 9px;
  color: var(--muted);
  margin-top: 7px;
}
.security-note {
  font-size: 9px;
  color: #9d92ab;
  margin-top: 11px;
}
.save-dialog label {
  margin-top: 22px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.login-story {
  padding: 42px 56px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #f0eee7;
  position: relative;
  overflow: hidden;
}
.story-copy {
  margin: auto 0;
  padding: 60px 0;
  max-width: 475px;
}
.story-copy h1 {
  font-size: 51px;
  letter-spacing: -1.8px;
  line-height: 1.12;
}
.story-copy > p:not(.eyebrow) {
  font-size: 13px;
  line-height: 1.9;
  color: #938b95;
  max-width: 330px;
  margin-top: 23px;
}
.story-note {
  margin: 60px 0 0 40px;
  border: 1px solid #d6cddc;
  background: #f4f1f6;
  width: 260px;
  padding: 25px 30px 30px;
  position: relative;
  transform: rotate(-4deg);
  box-shadow: 6px 6px 0 #e4dfdf;
}
.story-note:before {
  content: "";
  position: absolute;
  right: -5px;
  top: -5px;
  width: 18px;
  height: 18px;
  border-top: 2px solid var(--violet);
  border-right: 2px solid var(--violet);
}
.note-mark {
  color: #afa1bf;
  font: 45px/1 var(--serif);
}
.story-note p {
  font: 27px/1.18 var(--serif);
  color: #766285;
  letter-spacing: -0.4px;
}
.note-line {
  display: block;
  width: 43px;
  height: 1px;
  background: #c4b7d0;
  margin-top: 21px;
}
.login-story footer {
  font-size: 8px;
  letter-spacing: 1.6px;
  color: #a69caa;
}
.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 70px 45px;
}
.login-card {
  width: 335px;
}
.login-card h2 {
  font: 32px/1.2 var(--serif);
  letter-spacing: -1px;
}
.login-card > .muted {
  font-size: 12px;
  margin: 12px 0 33px;
}
.login-card input {
  font-size: 13px;
  padding: 12px;
}
.login-card .primary {
  margin-top: 26px;
  padding: 13px 15px;
}
.login-help {
  font-size: 10px;
  color: #aaa3ad;
  margin-top: 26px;
  text-align: center;
}
.login-bottom {
  position: absolute;
  bottom: 42px;
  font-size: 10px;
  color: #b5acb9;
}
.error-page {
  max-width: 700px;
  padding: 70px 40px;
  margin: auto;
}
.error-page h1 {
  margin-top: 80px;
}
.error-page p {
  margin: 25px 0;
  color: var(--muted);
}
.review-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.review-header {
  min-height: 72px;
  display: flex;
  align-items: center;
  padding: 15px 25px;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
}
.brand.compact {
  gap: 8px;
}
.compact .wordmark {
  font-size: 23px;
}
.compact .artiflect-mark {
  width: 22px;
  height: 22px;
}
.compact .artiflect-mark:before,
.compact .artiflect-mark:after {
  width: 9px;
  height: 9px;
}
.header-divider {
  height: 20px;
  width: 1px;
  background: var(--line);
  margin: 0 3px;
}
.breadcrumb {
  font-size: 11px;
  color: #9d96a3;
  white-space: nowrap;
}
.breadcrumb:hover {
  color: var(--violet);
}
.crumb-slash {
  color: #c0bac4;
}
.review-header h1 {
  font: 500 13px/1.4 var(--sans);
  letter-spacing: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 370px;
}
.version-badge {
  color: var(--violet);
  background: var(--lavender);
  border: 1px solid #e4deee;
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 9px;
  white-space: nowrap;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
  align-items: center;
}
.saved-status {
  color: #a3a1a3;
  font-size: 9px;
  white-space: nowrap;
  margin-right: 9px;
}
.saved-status.unsaved {
  color: #a08462;
}
.review-toolbar {
  min-height: 60px;
  padding: 10px 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fffdfa;
  border-bottom: 1px solid var(--line);
}
.mode-switch,
.device-switch {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f6f3;
}
.mode-switch button {
  font-size: 10px;
  color: #938a9e;
  padding: 7px 10px;
  border-radius: 4px;
  white-space: nowrap;
}
.mode-switch button.selected,
.device-switch button.selected {
  background: #fffefa;
  color: var(--violet);
  box-shadow: 0 1px 3px #2d253c10;
}
.toolbar-right {
  display: flex;
  gap: 13px;
  align-items: center;
  margin-left: auto;
}
.device-switch button {
  padding: 3px 8px;
  font-size: 19px;
  color: #b2a9bb;
  line-height: 1.25;
  border-radius: 4px;
}
.toolbar-right .button {
  font-size: 10px;
  padding: 8px 11px;
  min-height: 32px;
}
#comment-mode.selected {
  color: var(--violet);
  background: var(--lavender);
}
.notice-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 11px 20px;
  border-bottom: 1px solid #e0d6ed;
  background: #efe9f7;
  font-size: 11px;
  color: #75618a;
}
.notice-banner .button {
  font-size: 10px;
  min-height: 28px;
  padding: 6px 9px;
}
.history-banner {
  background: #f4efe5;
  color: #8c7c63;
  border-color: #e5ddcc;
}
.review-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  flex: 1;
  align-items: start;
}
.canvas-area {
  padding: 27px 30px 17px;
  min-width: 0;
}
.canvas-caption {
  display: flex;
  justify-content: space-between;
  font-size: 7px;
  color: #a49cad;
  letter-spacing: 1.3px;
  margin-bottom: 12px;
}
.canvas-caption .status-dot {
  width: 4px;
  height: 4px;
  background: #baaacb;
}
.element-picker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 11px;
  color: var(--muted);
}
.element-picker > div {
  display: flex;
  gap: 4px;
  overflow-x: auto;
}
.element-picker button {
  flex-shrink: 0;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 7px;
  border: 1px solid #cfc2df;
  border-radius: 4px;
  background: #f3eff8;
  color: #42375f;
  cursor: pointer;
}
.canvas-frame {
  position: relative;
  position: relative;
  width: 100%;
  height: calc(100vh - 237px);
  min-height: 470px;
  max-width: 1600px;
  margin: 0 auto;
  background: white;
  border: 1px solid #e0dce4;
  border-radius: 7px;
  box-shadow: 0 7px 25px #3c304408;
  overflow: hidden;
  transition: max-width 0.25s;
}
.canvas-frame.mobile {
  max-width: 390px;
}
.selection-affordance {
  position: absolute;
  z-index: 4;
  min-height: 40px;
  padding: 9px 13px;
  border: 1px solid var(--violet);
  border-radius: 7px;
  background: var(--violet);
  color: white;
  box-shadow: 0 5px 18px #45345b35;
  font-size: 12px;
  font-weight: 550;
  white-space: nowrap;
}
.selection-affordance:hover {
  background: var(--violet-dark);
}
.comment-popover {
  position: absolute;
  z-index: 5;
  width: min(310px, calc(100% - 16px));
  padding: 12px;
  border: 1px solid #d9cde3;
  border-radius: 8px;
  background: #fffdfa;
  box-shadow: 0 8px 28px #45345b30;
}
.comment-popover-heading,
.comment-popover-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.comment-popover-heading {
  color: #6f5b7e;
  font-size: 10px;
}
.comment-popover-heading .icon-button {
  margin-left: auto;
  width: 22px;
  height: 22px;
  font-size: 16px;
}
.comment-popover blockquote {
  margin: 9px 0;
  padding: 7px 9px;
  max-height: 70px;
  overflow: auto;
  border-left: 2px solid #b5a0cf;
  background: #f3eff8;
  color: #9481a7;
  font: 11px/1.45 var(--serif);
  overflow-wrap: anywhere;
}
.comment-popover textarea {
  width: 100%;
  min-height: 64px;
  resize: vertical;
  font-size: 11px;
  padding: 8px;
  background: #fff;
}
.comment-popover-actions {
  justify-content: flex-end;
  margin-top: 8px;
}
.comment-popover-actions .button {
  min-height: 27px;
  padding: 6px 10px;
  font-size: 9px;
}
.canvas-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: white;
  display: block;
}
.canvas-frame.show-source iframe {
  visibility: hidden;
}
.canvas-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 8px;
  color: #aca3b4;
  padding-top: 13px;
}
.source-panel {
  position: absolute;
  inset: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #f8f7f4;
}
.source-panel textarea {
  height: 100%;
  flex: 1;
  resize: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  padding: 24px;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  color: #555064;
  white-space: pre;
  tab-size: 2;
  overflow: auto;
}
.source-panel p {
  font-size: 9px;
  color: #a498af;
  padding: 11px 20px;
  border-top: 1px solid var(--line);
}
.review-rail {
  border-left: 1px solid var(--line);
  background: #fffdfa;
  min-height: calc(100vh - 132px);
  padding-bottom: 25px;
}
.rail-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 21px;
  gap: 24px;
  height: 53px;
}
.rail-tabs button {
  font-size: 11px;
  color: #b0a5b8;
  position: relative;
  padding: 15px 0;
}
.rail-tabs button.active {
  color: var(--violet);
  font-weight: 550;
}
.rail-tabs button.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--violet);
}
.rail-tabs .pill {
  font-size: 9px;
  margin-left: 3px;
}
.rail-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 9px;
  padding: 23px 21px 18px;
}
.rail-heading h2 {
  font-family: var(--serif);
  font-size: 19px;
  letter-spacing: -0.4px;
}
.rail-heading select {
  font-size: 9px;
  padding: 5px 3px;
  max-width: 78px;
  color: #9688a3;
  background: #faf8fd;
}
.comment-threads {
  padding: 0 18px;
  max-height: calc(100vh - 470px);
  min-height: 190px;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: #e2dce8 transparent;
}
.comment-thread {
  border: 1px solid #eae5ec;
  border-radius: 7px;
  padding: 13px 12px;
  margin-bottom: 12px;
  background: #fffefa;
}
.comment-thread > header {
  display: flex;
  align-items: center;
  gap: 7px;
}
.comment-thread > header strong {
  font-size: 10px;
  font-weight: 550;
  display: block;
}
.comment-thread time {
  display: block;
  color: #b7acbf;
  font-size: 8px;
  margin-top: 1px;
}
.comment-thread > header .version-mini {
  margin-left: auto;
  font-size: 8px;
  padding: 2px 4px;
}
.thread-quote {
  display: block;
  background: #f5f2f8;
  border-left: 2px solid #b6a5cf;
  font: 11px/1.5 var(--serif);
  color: #a091af;
  text-align: left;
  padding: 8px 10px;
  width: 100%;
  margin: 13px 0 9px;
  overflow-wrap: anywhere;
  border-radius: 0 3px 3px 0;
}
.thread-quote:hover {
  background: #eee8f4;
  color: var(--violet);
}
.comment-body {
  font-size: 11px;
  color: #807488;
  line-height: 1.65;
  margin: 10px 0 7px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.thread-actions {
  display: flex;
  justify-content: space-between;
  color: #b2a6bc;
  font-size: 8px;
  padding: 5px 0 10px;
}
.thread-actions button {
  color: #a393b4;
  font-size: 8px;
}
.thread-actions button:hover {
  color: var(--violet);
}
.resolved .thread-actions {
  color: #91a28b;
}
.thread-reply {
  border-left: 1px solid #e5deeb;
  padding: 8px 0 0 10px;
  margin: 0 0 9px 12px;
}
.thread-reply header {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  color: #8f829c;
}
.thread-reply time {
  margin-left: auto;
  font-size: 7px;
}
.thread-reply .comment-body {
  font-size: 10px;
  margin: 5px 0;
}
.reply-form {
  display: flex;
  align-items: center;
  border-top: 1px solid #f1edf4;
  padding-top: 8px;
  gap: 4px;
}
.reply-input {
  border: 0;
  background: transparent;
  padding: 3px 2px;
  font-size: 9px;
  min-width: 0;
}
.reply-form button {
  color: #a99ab7;
  padding: 3px;
  font-size: 14px;
}
.reply-input::placeholder {
  color: #baafc4;
}
.comments-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 28px 0 30px;
  color: #b8abbe;
}
.comments-empty > span {
  font-size: 35px;
  font-weight: 300;
  color: #cdbfd8;
  line-height: 1;
  margin-bottom: 16px;
}
.comments-empty h3 {
  font: 17px var(--serif);
  color: #a293ae;
  letter-spacing: -0.2px;
}
.comments-empty p {
  font-size: 10px;
  line-height: 1.9;
  margin-top: 9px;
}
.comment-compose {
  margin: 16px 18px 0;
  border-top: 1px solid var(--line);
  padding-top: 17px;
}
.compose-heading {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #9687a2;
}
.compose-heading strong {
  font-weight: 500;
}
.compose-heading > span:last-child {
  margin-left: auto;
  font-size: 8px;
  color: #b4a6bf;
}
.comment-compose textarea {
  margin-top: 11px;
  font-size: 10px;
  padding: 10px;
  background: #fdfbf9;
  min-height: 87px;
  resize: vertical;
  border-color: #e7e1eb;
}
.compose-footer {
  display: flex;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}
.compose-footer > span {
  font-size: 8px;
  line-height: 1.5;
  color: #b7a9c1;
}
.compose-footer .button {
  font-size: 9px;
  padding: 7px 10px;
  min-height: 28px;
}
.quote-preview {
  margin-top: 9px;
  background: #f3eff8;
  display: flex;
  align-items: flex-start;
  padding: 8px 5px 8px 10px;
  border-radius: 4px;
  border-left: 2px solid #b5a0cf;
  gap: 7px;
}
.quote-preview blockquote {
  margin: 0;
  flex: 1;
  font: 11px/1.5 var(--serif);
  color: #9481a7;
  max-height: 65px;
  overflow: auto;
  overflow-wrap: anywhere;
}
.quote-preview .icon-button {
  font-size: 16px;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}
.rail-security {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 8px;
  color: #bdb0c7;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  margin: 24px 21px 0;
  padding-top: 15px;
}
.rail-security .mini-mark {
  font-size: 19px;
}
.version-history {
  padding: 0 19px;
}
.history-item {
  display: flex;
  position: relative;
  text-align: left;
  gap: 13px;
  width: 100%;
  padding: 13px 4px 20px;
}
.history-item:before {
  content: "";
  position: absolute;
  left: 9px;
  top: 22px;
  bottom: -14px;
  width: 1px;
  background: #e6deed;
}
.history-item:last-child:before {
  display: none;
}
.history-node {
  width: 11px;
  height: 11px;
  border: 1px solid #c6b4d8;
  background: #f6f1fb;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.history-content {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.history-title {
  font-size: 11px;
  color: #91809f;
  display: flex;
  align-items: center;
  gap: 10px;
}
.history-title .pill {
  font-size: 7px;
}
.history-content strong {
  font-size: 10px;
  color: #a193ac;
  font-weight: 400;
}
.history-meta {
  font-size: 8px;
  color: #bbacc5;
}
.history-arrow {
  color: #c4b6cf;
  font-size: 12px;
  margin-left: auto;
}
.history-item:hover .history-content strong,
.history-item:hover .history-title {
  color: var(--violet);
}
.header-byline {
  font-size: 10px;
  color: #95899e;
  white-space: nowrap;
}
.comment-thread > header strong {
  font-size: 11px;
}
.comment-thread time {
  font-size: 9px;
  color: #9f90aa;
}
.comment-body {
  font-size: 12px;
  color: #73657e;
}
.thread-quote {
  font-size: 12px;
  color: #8c789f;
}
.thread-actions,
.thread-actions button {
  font-size: 10px;
}
.thread-reply header {
  font-size: 10px;
}
.thread-reply .comment-body {
  font-size: 11px;
}
.reply-input {
  font-size: 11px;
  padding: 5px 2px;
}
.comment-compose textarea {
  font-size: 12px;
}
.compose-heading {
  font-size: 11px;
}
.compose-footer > span {
  font-size: 9px;
  color: #9c8ba8;
}
.compose-footer .button {
  font-size: 10px;
}
.rail-security {
  font-size: 9px;
  color: #a291ae;
}
.comments-empty p {
  font-size: 11px;
  color: #a191ac;
}
.comments-empty h3 {
  color: #8a779b;
}
.card-body > p {
  font-size: 11px;
  color: #8a818f;
}
.card-meta {
  font-size: 10px;
  color: #95849f;
}
.canvas-footer {
  font-size: 9px;
  color: #9e90a8;
}
.mode-switch button {
  font-size: 11px;
}
.rail-tabs button {
  font-size: 12px;
}
.saved-status {
  font-size: 10px;
}
.canvas-caption {
  font-size: 8px;
}
.history-meta {
  font-size: 9px;
  color: #a08bab;
}
.history-content strong {
  font-size: 11px;
}
.history-title {
  font-size: 12px;
}
@media (max-width: 1150px) {
  .header-byline {
    display: none;
  }
}
@media (min-width: 1550px) {
  .artifact-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .dashboard-heading {
    margin-top: 58px;
    margin-bottom: 48px;
  }
  .dashboard-heading h1 {
    font-size: 42px;
  }
  .card-preview {
    height: 215px;
  }
  .paper-preview {
    height: 191px;
  }
  .review-main {
    grid-template-columns: minmax(0, 1fr) 355px;
  }
  .canvas-area {
    padding: 32px 40px 20px;
  }
  .review-header {
    padding-left: 30px;
    padding-right: 30px;
  }
}
@media (max-width: 1150px) {
  .sidebar {
    width: 205px;
    padding: 27px 16px 18px;
  }
  .dashboard {
    width: calc(100% - 205px);
    padding: 0 30px;
  }
  .artifact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .dashboard-heading h1 {
    font-size: 31px;
  }
  .dashboard-heading {
    align-items: flex-start;
  }
  .review-toolbar {
    gap: 12px;
    padding: 10px 15px;
  }
  .review-header {
    padding: 15px;
    gap: 10px;
  }
  .review-header h1 {
    max-width: 230px;
  }
  .header-actions {
    gap: 5px;
  }
  .saved-status {
    display: none;
  }
  .review-main {
    grid-template-columns: minmax(0, 1fr) 305px;
  }
  .canvas-area {
    padding: 22px 20px 16px;
  }
  .login-story {
    padding: 35px;
  }
  .story-copy h1 {
    font-size: 43px;
  }
}
@media (max-width: 800px) {
  .sidebar {
    width: 73px;
    padding: 24px 12px 15px;
    align-items: center;
  }
  .sidebar .wordmark,
  .workspace-name,
  .nav-label,
  .user-row > span:not(.avatar),
  .nav-count {
    display: none;
  }
  .sidebar .brand {
    margin: 0;
  }
  .sidebar nav {
    margin-top: 40px;
  }
  .nav-item {
    width: 45px;
    height: 43px;
    justify-content: flex-start;
    padding: 13px;
    overflow: hidden;
    white-space: nowrap;
    gap: 30px;
    font-size: 0;
  }
  .nav-item > span:first-child {
    font-size: 18px;
    flex-shrink: 0;
  }
  .user-row {
    flex-direction: column;
    gap: 12px;
  }
  .dashboard {
    width: calc(100% - 73px);
    padding: 0 25px;
  }
  .dashboard-heading {
    margin: 35px 0;
    flex-wrap: wrap;
  }
  .dashboard-heading h1 {
    font-size: 34px;
  }
  .dashboard-top {
    height: 65px;
  }
  .private-label {
    font-size: 9px;
  }
  .collection-toolbar {
    align-items: flex-end;
  }
  .search {
    width: 210px;
  }
  .review-header .breadcrumb,
  .review-header .crumb-slash,
  .review-header .header-divider {
    display: none;
  }
  .review-header h1 {
    max-width: 190px;
  }
  .review-header .wordmark {
    display: none;
  }
  .header-actions .avatar {
    display: none;
  }
  .header-actions .button {
    font-size: 10px;
    padding: 7px 9px;
  }
  .review-main {
    grid-template-columns: minmax(0, 1fr);
  }
  .canvas-area {
    padding: 20px;
  }
  .canvas-frame {
    height: 65vh;
    min-height: 410px;
  }
  .review-rail {
    min-height: 0;
    border-left: 0;
    border-top: 1px solid var(--line);
    display: block;
  }
  .comment-threads {
    max-height: none;
    min-height: 150px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    align-items: start;
  }
  .comment-thread {
    margin-bottom: 0;
  }
  .comments-empty {
    grid-column: 1/-1;
  }
  .comment-compose {
    max-width: 650px;
    margin: 20px auto 0;
    padding: 18px;
  }
  .rail-heading {
    padding: 22px;
  }
  .rail-security {
    max-width: 650px;
    margin: 10px auto 0;
    padding: 17px 18px 0;
  }
  .version-history {
    max-width: 650px;
    margin: auto;
  }
  .toolbar-right {
    gap: 7px;
  }
  #comment-mode {
    font-size: 0;
    gap: 0;
    width: 30px;
  }
  #comment-mode:before {
    content: "◌";
    font-size: 15px;
  }
  .login-story {
    padding: 28px;
  }
  .story-copy h1 {
    font-size: 37px;
  }
  .story-note {
    margin-left: 5px;
    width: 230px;
  }
  .login-panel {
    padding: 45px 28px;
  }
  .login-card h2 {
    font-size: 28px;
  }
}
@media (max-width: 550px) {
  .sidebar {
    display: none;
  }
  .dashboard {
    width: 100%;
    padding: 0 20px;
  }
  .dashboard-top {
    height: 54px;
  }
  .dashboard-top .private-label {
    display: none;
  }
  .mobile-account {
    display: flex;
    align-items: center;
    gap: 4px;
  }
  .mobile-account .icon-button {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
  .dashboard-top b {
    margin-left: 3px;
  }
  .dashboard-heading {
    margin: 30px 0;
    gap: 19px;
  }
  .dashboard-heading h1 {
    font-size: 34px;
    max-width: 310px;
  }
  .dashboard-heading .primary {
    padding: 10px 13px;
  }
  .collection-toolbar {
    flex-wrap: wrap;
    margin-bottom: 17px;
    gap: 13px;
  }
  .search {
    width: 100%;
  }
  .artifact-grid {
    grid-template-columns: 1fr;
  }
  .card-preview {
    height: 211px;
    padding: 22px 40px 0;
  }
  .paper-preview {
    height: 190px;
  }
  .card-title h3 {
    font-size: 14px;
  }
  .card-body > p {
    font-size: 11px;
  }
  .card-meta {
    font-size: 10px;
  }
  .private-label {
    font-size: 8px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 145px;
    padding: 25px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .story-copy {
    padding: 24px 0 2px;
  }
  .story-copy .eyebrow,
  .story-copy > p,
  .story-note,
  .login-story footer {
    display: none;
  }
  .story-copy h1 {
    font-size: 29px;
  }
  .story-copy h1 br {
    display: none;
  }
  .login-panel {
    min-height: calc(100vh - 215px);
    padding: 50px 28px 75px;
    align-items: flex-start;
  }
  .login-bottom {
    bottom: 22px;
  }
  .login-card > .muted {
    margin-bottom: 24px;
  }
  .login-card h2 {
    font-size: 30px;
  }
  .create-dialog,
  .save-dialog {
    width: calc(100vw - 24px);
    padding: 23px 20px;
  }
  .review-header {
    padding: 12px;
    min-height: 60px;
    gap: 8px;
  }
  .review-header h1 {
    font-size: 11px;
    max-width: 130px;
  }
  .review-header .brand {
    flex-shrink: 0;
  }
  .version-badge {
    font-size: 8px;
    padding: 2px 4px;
  }
  .header-actions {
    gap: 3px;
  }
  .header-actions .button {
    min-height: 29px;
    padding: 6px 7px;
    font-size: 9px;
  }
  .header-actions .button > span {
    display: none;
  }
  .review-toolbar {
    padding: 8px 10px;
    min-height: 51px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .mode-switch button {
    padding: 6px 7px;
    font-size: 9px;
  }
  .device-switch {
    display: none;
  }
  .toolbar-right .button {
    font-size: 9px;
    padding: 7px 9px;
    min-height: 29px;
  }
  .toolbar-right {
    gap: 5px;
  }
  .canvas-area {
    padding: 17px 12px 12px;
  }
  .canvas-frame {
    min-height: 430px;
    height: 65vh;
  }
  .canvas-caption {
    font-size: 6px;
  }
  .canvas-footer {
    font-size: 7px;
  }
  .canvas-footer > span:last-child {
    display: none;
  }
  .comment-threads {
    display: block;
    padding: 0 17px;
  }
  .comment-thread {
    margin-bottom: 12px;
  }
  .notice-banner {
    flex-wrap: wrap;
    font-size: 10px;
    text-align: center;
    padding: 10px 15px;
    gap: 8px;
  }
  .source-panel textarea {
    padding: 15px;
    font-size: 11px;
  }
  .rail-heading h2 {
    font-size: 21px;
  }
  .thread-quote {
    font-size: 12px;
  }
  .comment-body {
    font-size: 12px;
  }
  .comment-thread > header strong {
    font-size: 11px;
  }
  .reply-input {
    font-size: 11px;
    padding: 7px 2px;
  }
  .comment-compose textarea {
    font-size: 12px;
  }
  .comment-threads time {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
