@font-face {
  font-family: SystemCJK;
  src: local("PingFang SC"), local("Noto Sans CJK SC");
}
:root {
  font-family:
    -apple-system, BlinkMacSystemFont, SystemCJK, "Segoe UI", sans-serif;
  color: #25384c;
  font-size: 14px;
  --blue: #1673e8;
  --muted: #748296;
  --line: rgba(54, 78, 105, 0.1);
  --glass: rgba(246, 250, 255, 0.64);
  --shadow: 0 20px 70px rgba(32, 62, 98, 0.14);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #c9dbe9;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
}
button:disabled {
  cursor: default;
  opacity: 0.45;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #72a9f8;
  outline-offset: 3px;
}
button {
  transition:
    background 0.16s,
    box-shadow 0.16s,
    transform 0.16s;
}
button:active:not(:disabled) {
  transform: scale(0.98);
}
a {
  color: var(--blue);
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.landscape {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: -1;
  background: linear-gradient(145deg, #c4ddec 4%, #dfd9e9 48%, #c1d4de 100%);
}
.ribbon {
  position: absolute;
  border-radius: 50%;
  filter: blur(30px);
  transform: rotate(-27deg);
}
.ribbon-one {
  background: linear-gradient(90deg, #95bde1, #bdd5e8);
  width: 120vw;
  height: 55vh;
  top: -28vh;
  left: -30vw;
  box-shadow: 0 45px 90px #a1bcda;
}
.ribbon-two {
  background: linear-gradient(120deg, #c5b8dc, #e6d6e6);
  width: 115vw;
  height: 45vh;
  bottom: -20vh;
  left: -15vw;
  box-shadow: 0 -35px 95px #c5cde7;
}
.ribbon-three {
  width: 65vw;
  height: 21vh;
  right: -20vw;
  top: 35vh;
  background: #e7f1f2;
  filter: blur(70px);
}
.glass {
  background: var(--glass);
  backdrop-filter: blur(36px) saturate(145%);
  -webkit-backdrop-filter: blur(36px) saturate(145%);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.75),
    0 4px 16px rgba(43, 70, 98, 0.04);
}
.window {
  width: calc(100% - 72px);
  max-width: 1560px;
  height: calc(100dvh - 72px);
  min-height: 620px;
  margin: 36px auto;
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  border-radius: 28px;
  overflow: hidden;
  border: 1px solid #ffffffad;
  box-shadow:
    var(--shadow),
    0 2px 8px #27445a12;
  background: #f5f8fc94;
}
.sidebar {
  display: flex;
  flex-direction: column;
  padding: 0 14px 16px;
  border: 0;
  border-right: 1px solid #ffffff66;
  background: rgba(232, 241, 251, 0.57);
}
.window-dots {
  display: flex;
  gap: 8px;
  margin: 20px 9px 25px;
}
.window-dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  box-shadow: inset 0 0 1px #0004;
  background: #ff6158;
}
.window-dots span:nth-child(2) {
  background: #ffbd2e;
}
.window-dots span:nth-child(3) {
  background: #28c840;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  margin: 0 10px 27px;
}
.brand h1 {
  font-size: 19px;
  letter-spacing: 0.04em;
  margin: 0 0 3px;
  font-weight: 650;
}
.brand span {
  font-size: 11px;
  color: #758499;
}
.small-mark,
.app-mark {
  background: linear-gradient(140deg, #77b5ff, #357de2);
  border: 1px solid #a8c9fa;
  box-shadow:
    inset 0 1px 1px #ffffff8c,
    0 4px 10px #3d78b52b;
  color: white;
  display: grid;
  place-items: center;
  border-radius: 12px;
  width: 36px;
  height: 36px;
}
.small-mark svg {
  width: 21px;
  height: 21px;
}
.new-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 12px 13px;
  border-radius: 12px;
  background: #ffffff91;
  box-shadow:
    inset 0 1px 0 #fff,
    0 2px 5px #334e6b06;
  color: #35618a;
  text-align: left;
  font-size: 13px;
  font-weight: 550;
}
.new-button:hover {
  background: #fff;
}
.new-button > span {
  margin-left: auto;
  color: #8795a6;
  font-size: 10px;
}
.sidebar-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #77869a;
  margin: 26px 11px 9px;
}
.sidebar-label > span:nth-child(2) {
  font-size: 10px;
  background: #ffffff65;
  border-radius: 5px;
  padding: 1px 5px;
}
.sidebar-label .icon-button {
  margin-left: auto;
  width: 23px;
  height: 23px;
}
.sidebar-label svg {
  width: 13px;
  height: 13px;
}
.task-list {
  flex: 1;
  overflow: auto;
  min-height: 80px;
}
.task-item {
  width: 100%;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  text-align: left;
  padding: 13px 12px;
  margin: 4px 0;
  border-radius: 12px;
  background: transparent;
}
.task-item > svg {
  margin-top: 3px;
  color: #8c9ab0;
  width: 19px;
  height: 19px;
}
.task-item.active {
  background: #fff9;
  box-shadow:
    0 3px 12px #4775980a,
    inset 0 1px 1px #fffc;
}
.task-item.active > svg {
  color: var(--blue);
}
.task-item:hover {
  background: #ffffff6e;
}
.task-item .task-info {
  min-width: 0;
  flex: 1;
}
.task-item strong {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.7;
}
.task-item small {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: #7f8c9f;
  margin-top: 3px;
}
.task-list-empty {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
  padding: 12px;
}
.sidebar-bottom {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 12px;
}
.nav-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  border-radius: 10px;
}
.nav-button:hover {
  background: #ffffff61;
}
.nav-button svg {
  width: 17px;
  height: 17px;
  color: #70849e;
}
.account-button {
  display: flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  width: 100%;
  padding: 12px 8px 0;
  text-align: left;
}
.avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  background: #eff6ff;
  border-radius: 50%;
  color: #6e87a4;
  font-size: 12px;
  border: 1px solid #fff;
}
.account-button b {
  display: block;
  font-size: 11px;
  font-weight: 550;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.account-button small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.account-dots {
  margin-left: auto;
  color: #8692a6;
  font-size: 19px;
}
.main-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.toolbar {
  height: 76px;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  border: 0;
  border-bottom: 1px solid #fff8;
  background: #f9fbff60;
  gap: 14px;
}
.breadcrumb {
  font-size: 11px;
  display: flex;
  gap: 12px;
  min-width: 0;
  color: #8390a2;
  align-items: center;
}
.breadcrumb strong {
  color: #475b72;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.breadcrumb-slash {
  color: #afbccb;
}
.toolbar-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.save-state {
  font-size: 10px;
  color: #8d98a8;
  margin-right: 7px;
}
.save-state.dirty {
  color: #b08139;
}
.secondary,
.primary,
.destructive {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  padding: 9px 13px;
  font-size: 12px;
  min-height: 35px;
  font-weight: 550;
  white-space: nowrap;
}
.secondary {
  background: #fff9;
  border: 1px solid #ffffffba;
  box-shadow: 0 1px 3px #45596a0b;
}
.secondary:hover {
  background: #fff;
}
.primary {
  background: linear-gradient(180deg, #3089f5, #1470df);
  color: #fff;
  border: 1px solid #0869dc;
  box-shadow:
    inset 0 1px 0 #ffffff35,
    0 3px 8px #0e6cce1c;
}
.primary:hover {
  background: linear-gradient(180deg, #3e94fc, #217ce8);
  box-shadow: 0 4px 12px #146fd22b;
}
.secondary svg,
.primary svg {
  width: 16px;
  height: 16px;
}
.wide {
  width: 100%;
}
.quiet {
  background: transparent;
  color: #5c789b;
  font-size: 12px;
  padding: 10px;
}
.icon-button {
  display: inline-grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: transparent;
}
.icon-button:hover {
  background: #dce6f15c;
}
.danger {
  color: #9b9fac;
}
.danger:hover {
  background: #fae3e1;
  color: #c44f47;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: transparent;
  color: #547ca8;
  font-size: 11px;
  padding: 4px;
}
.text-button svg {
  width: 14px;
  height: 14px;
}
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 270px;
  min-height: 0;
  flex: 1;
}
.editor-column {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #eef3f9a6;
  position: relative;
}
.document {
  margin: 24px 22px 0;
  background: rgba(255, 255, 255, 0.93);
  box-shadow:
    0 8px 28px #374c6610,
    0 1px 2px #53667e0a;
  border: 1px solid #fff;
  border-radius: 13px;
  padding: 28px 38px 24px;
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
}
.document-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 9px;
}
.style-pill {
  background: #eef4fe;
  color: #5b7fae;
  border: 1px solid #e8f0fc;
  border-radius: 6px;
  font-size: 10px;
  padding: 4px 8px;
}
.document h2 {
  font-size: 25px;
  line-height: 1.5;
  letter-spacing: 0.015em;
  font-weight: 620;
  margin: 0 0 12px;
  color: #29394c;
}
.document-meta {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 10px;
  color: #8e99a8;
  flex-wrap: wrap;
}
.private-label {
  display: flex;
  align-items: center;
  gap: 3px;
}
.private-label svg {
  width: 11px;
  height: 11px;
}
.brief-box {
  margin: 23px 0 24px;
  border-top: 1px solid #e7ecf2;
  border-bottom: 1px solid #e7ecf2;
  padding: 11px 0;
  color: #77869a;
}
.brief-box summary {
  font-size: 11px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brief-box summary::before {
  content: "›";
  font-size: 15px;
  line-height: 1;
  transition: transform 0.15s;
}
.brief-box[open] summary::before {
  transform: rotate(90deg);
}
.brief-box summary span {
  margin-left: auto;
  color: #a2acb9;
  font-size: 10px;
}
.brief-box h3 {
  font-size: 11px;
  font-weight: 600;
  color: #5c728d;
  margin-top: 19px;
}
.brief-box p,
.brief-box pre {
  font-family: inherit;
  font-size: 12px;
  line-height: 1.9;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 8px 0 14px;
  max-height: 180px;
  overflow: auto;
  color: #6e8095;
}
.editor-label {
  font-size: 10px;
  color: #a0aab7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.document textarea {
  resize: none;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 1;
  width: 100%;
  min-height: 270px;
  font-size: 14px;
  line-height: 2.1;
  color: #384b60;
  outline: none;
  border-radius: 3px;
  tab-size: 2;
  white-space: pre-wrap;
}
.document textarea::placeholder {
  color: #acb6c2;
}
.document textarea:focus-visible {
  outline: 2px solid #d9eaff;
  outline-offset: 7px;
}
.editor-footer {
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 25px;
  color: #8d9aab;
  font-size: 10px;
  gap: 10px;
}
.editor-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 5px;
}
.editor-footer svg {
  height: 12px;
  width: 12px;
}
.review-rail {
  padding: 29px 20px 20px;
  background: #f7f9fd86;
  border-left: 1px solid #fff8;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.review-heading {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 0 2px 23px;
}
.review-icon {
  width: 34px;
  height: 34px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: #fff8;
  border: 1px solid #fffd;
  color: #7a92ad;
  box-shadow: 0 3px 10px #334e6805;
}
.review-heading h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 4px;
}
.review-heading p {
  font-size: 10px;
  color: #8d99a8;
  margin: 0;
}
.review-status {
  font-size: 11px;
  line-height: 1.8;
  color: #8b97a8;
  margin: 15px 3px;
}
.findings {
  flex: 1;
  overflow: auto;
  min-height: 140px;
}
.finding {
  padding: 13px;
  margin: 0 0 9px;
  background: #fff9;
  border: 1px solid #fff;
  border-radius: 11px;
  text-align: left;
  width: 100%;
  box-shadow: 0 2px 7px #334b6705;
}
.finding:hover {
  background: #fff;
  box-shadow: 0 4px 12px #3553750d;
}
.finding small {
  display: flex;
  justify-content: space-between;
  color: #a28a62;
  font-size: 10px;
  margin-bottom: 8px;
}
.finding p {
  font-size: 11px;
  line-height: 1.85;
  color: #61738a;
  margin: 0;
}
.finding span {
  color: #8b9db2;
}
.review-empty {
  padding-top: 44px;
  text-align: center;
  color: #a0acbb;
}
.review-empty p {
  font-size: 11px;
  line-height: 1.9;
}
.review-lines {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 43px;
  margin: 0 auto 18px;
  opacity: 0.65;
}
.review-lines span {
  height: 4px;
  background: #becbd9;
  border-radius: 5px;
}
.review-lines span:nth-child(2) {
  width: 80%;
}
.review-lines span:nth-child(3) {
  width: 55%;
}
.rail-note {
  border-top: 1px solid var(--line);
  padding: 17px 3px 0;
  display: flex;
  align-items: flex-start;
  gap: 7px;
  color: #93a0b1;
}
.rail-note svg {
  height: 12px;
  width: 12px;
  margin-top: 3px;
}
.rail-note p {
  font-size: 10px;
  line-height: 1.8;
  margin: 0;
}
.empty-state {
  display: grid;
  align-content: center;
  justify-items: center;
  flex: 1;
  padding: 40px;
  text-align: center;
}
.empty-state h2 {
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: #50647b;
}
.empty-state p {
  color: #8998aa;
  font-size: 13px;
  line-height: 2;
  margin: 0 0 28px;
}
.empty-paper {
  height: 75px;
  width: 60px;
  background: #fffc;
  border: 1px solid white;
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 7px 18px #405c7c13;
  transform: rotate(-7deg);
  color: #8ea8c3;
}
.empty-paper svg {
  height: 30px;
  width: 30px;
}
.login-screen {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 26px;
}
.login-panel {
  width: min(430px, 100%);
  padding: 42px 42px 30px;
  border-radius: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.app-mark {
  width: 62px;
  height: 62px;
  border-radius: 19px;
  margin: auto;
}
.app-mark svg {
  width: 34px;
  height: 34px;
}
.login-panel h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: 0.08em;
  margin: 23px 0 8px;
}
.login-tagline {
  color: #6c8098;
  font-size: 14px;
  letter-spacing: 0.04em;
}
.login-description {
  font-size: 12px;
  line-height: 1.9;
  color: #8492a4;
  margin: 22px 0 28px;
}
.login-panel form {
  text-align: left;
}
.login-panel .primary {
  margin: 12px 0 5px;
}
.privacy-caption {
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  color: #8b9aaf;
  font-size: 10px;
  margin-top: 23px;
}
.privacy-caption svg {
  width: 12px;
  height: 12px;
}
.sheet {
  width: min(560px, calc(100% - 32px));
  max-height: calc(100dvh - 64px);
  padding: 28px;
  border-radius: 23px;
  border: 1px solid #fff9;
  color: #304157;
  box-shadow: 0 30px 100px #1e355b40;
  background: #f4f8fbe8;
}
.sheet::backdrop {
  background: #20334d24;
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
}
.sheet-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.sheet h2 {
  font-size: 21px;
  font-weight: 600;
  margin: 0;
}
.eyebrow {
  font-size: 11px;
  color: #8796aa;
  margin: 0 0 5px;
}
.sheet h3 {
  font-size: 12px;
  font-weight: 600;
  color: #6b7f97;
  margin-top: 23px;
}
.sheet > p {
  font-size: 12px;
  line-height: 1.9;
  color: #7c8ba0;
}
.sheet label,
.login-panel label {
  display: block;
  font-size: 12px;
  color: #667c95;
  margin-bottom: 16px;
}
.sheet input,
.sheet textarea,
.sheet select,
.login-panel input {
  display: block;
  width: 100%;
  margin-top: 7px;
  background: #ffffffba;
  border: 1px solid #d4dfeb;
  box-shadow: inset 0 1px 2px #5f7c9705;
  border-radius: 9px;
  padding: 10px 12px;
  outline-offset: 2px;
  color: #344b66;
}
.sheet textarea {
  resize: vertical;
  line-height: 1.8;
}
.sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 23px;
}
.sheet-footer > span {
  font-size: 10px;
  color: #8898ad;
}
.form-error {
  color: #bf5c54;
  font-size: 12px;
  line-height: 1.7;
  min-height: 0;
}
.copy-field {
  display: flex;
  align-items: center;
  gap: 6px;
}
.copy-field input {
  margin: 0;
  font-size: 11px;
}
.copy-field .icon-button {
  flex-shrink: 0;
}
.help-text {
  font-size: 11px;
  color: #8c9aab;
  line-height: 1.9;
}
.connection-actions {
  display: flex;
  gap: 9px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.sheet pre {
  font-family: inherit;
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.9;
  word-break: break-word;
  padding: 13px;
  background: #ffffff91;
  border-radius: 9px;
  border: 1px solid #fff;
}
.toggle-row {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
}
.toggle-row input {
  width: 16px !important;
  margin: 0 !important;
  accent-color: var(--blue);
}
.token-row,
.member-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  border-bottom: 1px solid var(--line);
  padding: 11px 0;
}
.token-row small,
.member-row small {
  display: block;
  color: #909eae;
  font-size: 10px;
  margin-top: 4px;
}
.token-row button,
.member-row button {
  font-size: 10px;
}
.invite-form {
  margin-top: 15px;
}
.account-dots,
.token-row {
  color: #7e90a6;
}
.sheet #logout {
  margin-top: 25px;
  color: #aa6662;
}
.compact {
  max-width: 380px;
  text-align: center;
  padding: 32px;
}
.compact p {
  font-size: 12px;
  color: #8391a5;
  line-height: 1.9;
}
.warning-mark {
  color: #b5726b;
  background: #f4e8e7;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  margin: 0 auto 18px;
  border-radius: 15px;
}
.delete-actions {
  display: flex;
  gap: 9px;
  margin-top: 23px;
  justify-content: center;
}
.destructive {
  background: #cf625b;
  color: white;
  border: 1px solid #bd5750;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  padding: 12px 20px;
  border-radius: 13px;
  box-shadow: 0 5px 25px #35466324;
  font-size: 12px;
  z-index: 100;
  max-width: calc(100% - 35px);
}
html.reduce-glass .glass {
  background: #f0f5fa;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html.reduce-glass .window {
  background: #f3f7fb;
}
html.reduce-glass .review-rail {
  background: #f5f8fc;
}
html.reduce-glass .toolbar {
  background: #f6f9fc;
}
@media (min-width: 1500px) {
  .document {
    padding: 34px 56px;
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .review-rail {
    padding: 31px 26px;
  }
}
@media (max-width: 1180px) {
  .window {
    width: calc(100% - 36px);
    margin: 18px auto;
    height: calc(100dvh - 36px);
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .content-grid {
    grid-template-columns: minmax(0, 1fr) 225px;
  }
  .toolbar {
    padding: 0 18px;
  }
  .document {
    padding: 24px;
    margin: 19px 16px 0;
  }
  .review-rail {
    padding: 25px 14px;
  }
  .save-state {
    display: none;
  }
  .breadcrumb > span {
    display: none;
  }
  .document h2 {
    font-size: 22px;
  }
}
@media (max-width: 900px) {
  .window {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .content-grid {
    grid-template-columns: 1fr;
    overflow: auto;
  }
  .editor-column {
    min-height: 580px;
  }
  .review-rail {
    border-left: 0;
    min-height: 220px;
    display: grid;
    grid-template-columns: 1fr 210px;
    gap: 12px 22px;
    padding: 23px;
  }
  .review-heading {
    margin: 0;
  }
  .review-rail > .primary {
    align-self: center;
  }
  .review-status {
    grid-column: 1/-1;
    margin: 0;
  }
  .findings {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    min-height: 100px;
    overflow: visible;
  }
  .finding {
    margin: 0;
  }
  .review-empty {
    grid-column: 1/-1;
    padding: 10px;
  }
  .review-lines {
    display: none;
  }
  .rail-note {
    grid-column: 1/-1;
  }
  .document {
    min-height: 490px;
  }
  .toolbar {
    height: 66px;
    min-height: 66px;
  }
  .toolbar-title {
    max-width: 130px;
  }
}
@media (max-width: 640px) {
  .window {
    width: calc(100% - 16px);
    margin: 8px auto;
    height: auto;
    min-height: calc(100dvh - 16px);
    border-radius: 21px;
    display: flex;
    flex-direction: column;
  }
  .sidebar {
    padding: 14px;
    border-right: 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    border-bottom: 1px solid #fff7;
  }
  .window-dots,
  .sidebar-label,
  .sidebar-bottom {
    display: none;
  }
  .brand {
    margin: 0;
    gap: 9px;
  }
  .brand h1 {
    font-size: 18px;
  }
  .brand span {
    display: none;
  }
  .small-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
  }
  .new-button {
    width: auto;
    padding: 9px 11px;
    font-size: 11px;
  }
  .new-button > span {
    display: none;
  }
  .task-list {
    grid-column: 1/-1;
    display: flex;
    overflow: auto;
    min-height: 0;
    gap: 6px;
  }
  .task-item {
    width: 180px;
    min-width: 180px;
    margin: 0;
    padding: 9px 10px;
  }
  .task-item small {
    font-size: 9px;
  }
  .toolbar {
    padding: 12px 14px;
    gap: 8px;
  }
  .breadcrumb {
    font-size: 10px;
    flex: 1;
  }
  .toolbar-actions {
    gap: 5px;
  }
  .toolbar-actions .secondary {
    font-size: 10px;
    padding: 7px 9px;
    min-height: 30px;
  }
  .toolbar-actions svg {
    width: 13px;
    height: 13px;
  }
  .content-grid {
    display: block;
    overflow: visible;
  }
  .editor-column {
    min-height: 630px;
  }
  .document {
    margin: 13px 12px 0;
    padding: 22px 20px;
    min-height: 560px;
  }
  .document h2 {
    font-size: 22px;
  }
  .document-meta {
    gap: 9px;
    font-size: 9px;
  }
  .editor-footer {
    padding: 0 16px;
    font-size: 9px;
  }
  .document textarea {
    font-size: 14px;
    min-height: 330px;
  }
  .review-rail {
    grid-template-columns: 1fr 180px;
    padding: 23px 20px;
  }
  .findings {
    grid-template-columns: 1fr;
  }
  .sheet {
    padding: 23px;
    max-height: calc(100dvh - 32px);
  }
  .login-panel {
    padding: 35px 26px;
  }
  .empty-state {
    padding: 50px 20px;
  }
  .empty-state h2 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-transparency: reduce) {
  .glass {
    background: #f0f5fa;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .window {
    background: #f3f7fb;
  }
  .review-rail {
    background: #f5f8fc;
  }
}

.mobile-only {
  display: none;
}
@media (max-width: 640px) {
  .mobile-only {
    display: inline-grid;
  }
}

.comparison-toggle[aria-pressed="true"] {
  color: #19549a;
  background: #e0ecfb;
}
.content-grid.comparison-active {
  grid-template-columns: minmax(0, 1fr);
  overflow: hidden;
}
.comparison {
  --date-mark: #f8e9c7;
  --date-ink: #5d400e;
  --number-mark: #e0eefd;
  --number-ink: #164879;
  --status-mark: #efe6f9;
  --status-ink: #553670;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  padding: 27px 28px 15px;
  background: #eef3f999;
}
.comparison-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px 20px;
}
.comparison-head h2 {
  margin: 0;
  color: #26384d;
  font-size: 24px;
  font-weight: 620;
  letter-spacing: 0.015em;
}
.comparison-version,
.comparison-summary {
  margin: 6px 0 0;
  color: #566980;
  font-size: 12px;
}
.comparison-summary[data-filter="date"] {
  color: var(--date-ink);
  font-weight: 620;
}
.comparison-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 16px 0 14px;
}
.comparison-filters button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 33px;
  padding: 6px 11px;
  color: #405972;
  font-size: 12px;
  background: #ffffffa8;
  border: 1px solid #fff;
  border-radius: 17px;
}
.comparison-filters button[data-compare="date"] {
  color: var(--date-ink);
  background: var(--date-mark);
}
.comparison-filters button[data-compare="number"] {
  color: var(--number-ink);
  background: var(--number-mark);
}
.comparison-filters button[data-compare="status"] {
  color: var(--status-ink);
  background: var(--status-mark);
}
.comparison-filters button[aria-pressed="true"] {
  border-color: currentColor;
  font-weight: 620;
}
.comparison-count {
  min-width: 17px;
  padding: 0 4px;
  border-radius: 8px;
  background: #ffffff90;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.comparison-paper {
  overflow: auto;
  overscroll-behavior: contain;
  flex: 1;
  min-height: 0;
  background: #fff;
  border: 1px solid #e0e8f2;
  border-radius: 14px;
  box-shadow: 0 5px 18px #374c6610;
}
.comparison-columns,
.comparison-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.comparison-columns {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f4f7fc;
  border-bottom: 1px solid #e2ebf4;
  color: #3d526a;
  font-size: 13px;
  font-weight: 620;
}
.comparison-columns > span {
  padding: 11px 18px;
}
.comparison-columns > span + span,
.comparison-cell + .comparison-cell {
  border-left: 1px solid #e2ebf4;
}
.comparison-row + .comparison-row {
  border-top: 1px solid #e8eef5;
}
.comparison-cell {
  min-width: 0;
  padding: 13px 18px;
  color: #33495e;
}
.comparison-row[data-change="edited"] [data-side="before"],
.comparison-row[data-change="removed"] [data-side="before"] {
  background: #fcf9f4;
}
.comparison-row[data-change="edited"] [data-side="after"],
.comparison-row[data-change="added"] [data-side="after"] {
  background: #f4f8fd;
}
.comparison-cell-label {
  display: none;
}
.comparison-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.85;
  font-size: 14px;
}
.comparison-mark {
  padding: 1px 2px;
  color: inherit;
  border-radius: 3px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.comparison-edit {
  border-radius: 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
del.comparison-edit {
  color: #813f43;
  background: #f8e8e6;
  text-decoration-thickness: 1px;
}
ins.comparison-edit {
  color: #225e49;
  background: #e1f1e9;
  text-underline-offset: 3px;
}
.comparison-mark[data-kind="date"] {
  color: var(--date-ink);
  background: var(--date-mark);
}
.comparison-mark[data-kind="number"] {
  color: var(--number-ink);
  background: var(--number-mark);
}
.comparison-mark[data-kind="status"] {
  color: var(--status-ink);
  background: var(--status-mark);
}
.comparison-mark[data-context-changed] {
  text-decoration: underline dotted;
  text-underline-offset: 3px;
}
.comparison-empty,
.comparison-missing {
  margin: 0;
  color: #62768c;
  font-size: 12px;
}
.comparison-empty {
  display: grid;
  place-items: center;
  flex: 1;
  padding: 24px;
  text-align: center;
}
.comparison-note {
  margin: 12px 0 0;
  color: #556b82;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 640px) {
  .comparison {
    padding: 17px 13px;
  }
  .comparison-head h2 {
    font-size: 20px;
  }
  .comparison-head {
    align-items: flex-start;
  }
  .comparison-paper {
    overflow: visible;
  }
  .comparison-columns {
    display: none;
  }
  .comparison-row {
    grid-template-columns: minmax(0, 1fr);
  }
  .comparison-cell + .comparison-cell {
    border-top: 1px dashed #dfe7f0;
    border-left: 0;
  }
  .comparison-cell-label {
    display: block;
    margin-bottom: 5px;
    color: #52677e;
    font-size: 11px;
    font-weight: 620;
  }
}
