@font-face {
  font-family: "Manrope";
  src: url("assets/fonts/manrope-variable.ttf") format("truetype");
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
}
:root {
  --ink: #203c37;
  --muted: #60736c;
  --teal: #007f73;
  --teal-dark: #00675e;
  --mint: #e8f4ed;
  --line: #dfe8e2;
  --surface: #f3f6f3;
  --white: #fff;
  --radius: 24px;
  font-family: "Manrope", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 450;
  color: var(--ink);
  background: var(--surface);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; display: flex; min-height: 100vh; }
button, textarea, select { font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; color: inherit; }
a { color: inherit; }
button:disabled { cursor: default; }
button, .button {
  transition: background .18s ease, border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
button:active:not(:disabled) { transform: translateY(1px); }
button:focus-visible, a:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #168a7e; outline-offset: 4px;
}
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip-link { position: fixed; top: -64px; left: 12px; padding: 12px 20px; background: var(--ink); color: white; z-index: 20; }
.skip-link:focus { top: 12px; }
.icon { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; align-items: center; justify-content: center; }
.icon svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.artwork { width: 48px; height: 48px; display: inline-flex; flex-shrink: 0; }
.artwork svg { width: 100%; height: 100%; overflow: visible; }

.sidebar {
  width: 252px; flex-shrink: 0; background: #fcfdfb; border-right: 1px solid var(--line);
  padding: 34px 18px 24px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 14px; font-size: 30px; font-weight: 750; letter-spacing: -1.5px; }
.brand img { object-fit: contain; width: 44px; height: 44px; }
.brand-dot { color: var(--teal); }
.sidebar-body { flex: 1; display: flex; flex-direction: column; }
.eyebrow { font-size: 11px; letter-spacing: 1.4px; font-weight: 750; color: #5c7568; line-height: 1.6; margin: 0; }
.nav-label { margin: 49px 15px 18px; font-size: 11px; letter-spacing: 1.2px; }
.tool-nav { display: flex; flex-direction: column; gap: 10px; }
.nav-item { border: 1px solid transparent; background: transparent; border-radius: 16px; display: flex; align-items: center; padding: 13px 12px; gap: 11px; font-size: 15px; text-align: left; min-height: 73px; font-weight: 600; }
.nav-item .artwork { width: 41px; height: 41px; transition: transform .25s cubic-bezier(.2,.7,.2,1); }
.nav-item:hover .artwork { transform: translateY(-2px) rotate(-5deg); }
.nav-item:hover { background: #f0f6f1; }
.nav-item.active { background: linear-gradient(120deg,#e2f1e8,#eef6ee); border-color: #d3e7da; color: #006d60; box-shadow: 0 3px 8px #365e3406; }
.nav-dot { width: 6px; height: 6px; border-radius: 50%; margin-left: auto; flex-shrink: 0; }
.active .nav-dot { background: #208e72; box-shadow: 0 0 0 4px #d6e9da; }
.side-note { margin: auto 14px 30px; padding-top: 54px; }
.mini-keys { display: flex; gap: 6px; transform: rotate(-5deg); transform-origin: left center; margin-bottom: 26px; }
.mini-keys span { display: grid; place-items: center; width: 35px; height: 38px; border-radius: 10px; background: #fff; box-shadow: 0 3px 0 #d8dfda,0 6px 12px #25372a0d; border: 1px solid #e5e9e5; font-size: 16px; font-weight: 600; color: #597163; }
.mini-keys .mint-key { background: #d6eede; color: #007f73; }
.side-note h2 { font-size: 19px; font-weight: 700; line-height: 1.5; letter-spacing: -.5px; margin: 0 0 12px; }
.side-note p { font-size: 14px; color: var(--muted); line-height: 1.8; margin: 0; }
.side-note-rule { display: block; width: 32px; height: 1px; background: #bdd2c5; margin: 24px 0 17px; }
.quiet-label { display: flex; align-items: center; gap: 7px; font-size: 12px; color: #65776c; }
.sidebar-footer { font-size: 12px; color: #607568; line-height: 1.7; padding: 0 12px; }
.preview-indicator { display: inline-block; width: 6px; height: 6px; background: #419078; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.sidebar-footer a { display: block; margin-top: 9px; color: #607568; font-size: 12px; text-underline-offset: 4px; }
.main { flex: 1; min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; min-height: 82px; gap: 20px; padding: 0 40px; border-bottom: 1px solid #e3ebe4; background: #f7f9f6; }
.breadcrumb { display: flex; gap: 16px; font-size: 13px; color: #65786d; }
.breadcrumb strong { font-weight: 650; color: #395e4f; }
.breadcrumb>span { color: #98ad9e; }
.preview-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: 1px; color: #5c7463; font-weight: 650; }
.preview-badge .preview-indicator { width: 5px; height: 5px; margin-right: 1px; }
.preview-version { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #dce7d9; border-radius: 9px; background: #eef3e9; letter-spacing: 0; font-size: 12px; margin-left: 4px; }
.workspace { padding: 36px 40px 28px; max-width: 1560px; margin: auto; }
.intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-bottom: 32px; min-height: 189px; }
.intro-copy { position: relative; z-index: 1; }
.intro .eyebrow { display: flex; align-items: center; gap: 9px; color: #4f7560; font-size: 11px; letter-spacing: 1.7px; }
.eyebrow-line { display: inline-block; width: 22px; height: 2px; background: #74a68b; }
h1 { font-weight: 650; font-size: clamp(36px,3.1vw,48px); letter-spacing: -2px; line-height: 1.14; margin: 14px 0 17px; }
h1 span { color: var(--teal); }
.intro p:not(.eyebrow) { font-size: 16px; color: #60746a; margin: 0; line-height: 1.7; max-width: 510px; }

/* Soft paper and enamel details echo the keyboard's Mist artwork. */
.intro-art { position: relative; width: 245px; height: 180px; flex-shrink: 0; margin-right: 35px; }
.art-halo { position: absolute; inset: 1px -8px; background: radial-gradient(ellipse,#daeede 0%,#edf4e9 46%,transparent 72%); border-radius: 50%; transform: rotate(-15deg); }
.quill-tile { position: absolute; width: 116px; height: 112px; top: 29px; left: 65px; display: grid; place-items: center; background: linear-gradient(135deg,#fff,#f0f8ed); border: 1px solid #fff; border-radius: 31px; box-shadow: 4px 8px 0 #dbe9dd,10px 20px 27px #48684a19,inset 0 0 0 1px #dbe9dc; transform: rotate(-9deg); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.quill-tile img { width: 83px; height: 83px; object-fit: contain; }
.intro-art:hover .quill-tile { transform: rotate(-3deg) translateY(-5px); }
.floating-note { position: absolute; border: 1px solid #dfe8dd; box-shadow: 0 6px 14px #36543b0c; }
.note-a { width: 70px; height: 77px; top: 0; left: 12px; border-radius: 15px 15px 4px 15px; background: linear-gradient(145deg,#fffdf6,#f6e9ce); color: #8f7249; padding: 11px 13px; font-size: 25px; font-weight: 650; transform: rotate(-13deg); }
.note-a>span { display: block; width: 38px; height: 3px; margin-top: 7px; background: #cfbe9c; border-radius: 3px; }
.note-a>span:last-child { width: 24px; margin-top: 5px; }
.note-b { width: 52px; height: 50px; top: 116px; left: 171px; border-radius: 14px 14px 14px 4px; background: linear-gradient(135deg,#e4f5df,#d2e8c7); display: grid; place-items: center; color: #438067; transform: rotate(12deg); }
.note-b .icon { width: 28px; height: 28px; }
.hero-spark { position: absolute; font-size: 23px; color: #b4996f; }
.spark-one { top: 7px; left: 196px; }
.spark-two { top: 139px; left: 27px; color: #6f9b83; font-size: 30px; }

.studio { display: grid; grid-template-columns: minmax(0,1fr) 356px; align-items: stretch; border: 1px solid #d9e5dc; background: #fff; border-radius: var(--radius); box-shadow: 0 3px 8px #253d2b03,0 20px 48px -24px #29493824; overflow: hidden; min-height: 650px; }
.editor-pane { min-width: 0; display: flex; flex-direction: column; }
.pane-header { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 86px; border-bottom: 1px solid #e7eee8; margin: 0 28px; }
.document-heading { display: flex; align-items: center; gap: 10px; }
.document-heading .artwork { width: 38px; height: 38px; }
.pane-header h2 { font-size: 16px; font-weight: 700; margin: 0; letter-spacing: -.25px; }
.demo-pill { font-size: 10px; letter-spacing: 1px; padding: 5px 7px; color: #5c7361; background: #edf3e9; border: 1px solid #e0e9db; border-radius: 5px; margin-left: 1px; font-weight: 600; }
.editor-actions { display: flex; gap: 3px; align-items: center; }
.icon-button { border: 1px solid transparent; background: transparent; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; width: 42px; min-height: 44px; color: #517962; }
.icon-button:hover { background: #eff6ef; border-color: #dfeade; }
.icon-button:disabled { opacity: .35; }
.icon-button .icon { width: 20px; height: 20px; }
#undo:not(:disabled) { color: #007e70; background: #eaf5eb; }
.divider { width: 1px; height: 20px; background: var(--line); margin: 0 4px; }
.paper { padding: 29px 32px 14px; flex: 1; min-height: 350px; display: flex; }
.paper textarea { border: 0; background: transparent; outline: none; resize: vertical; width: 100%; min-height: 290px; color: #28493c; font-size: 18px; font-weight: 450; line-height: 1.85; letter-spacing: .02px; padding: 0; caret-color: var(--teal); }
.paper textarea::placeholder { color: #647a6a; }
.paper textarea:focus-visible { outline: 2px solid #21998d; outline-offset: 9px; border-radius: 3px; }
.editor-bottom { padding: 16px 28px 24px; }
.editor-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 18px; flex-wrap: wrap; }
.text-metrics { font-size: 12px; color: #607468; display: flex; gap: 8px; align-items: center; }
.text-metrics.over-limit { color: #a34233; }
.metric-dot { color: #889d8d; }
.sample-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: #f5f8ef; border: 1px solid #e3eadb; border-radius: 10px; padding: 10px 12px; min-height: 44px; font-size: 13px; font-weight: 650; color: #58714b; }
.sample-button .icon { width: 18px; height: 18px; color: #809351; }
.sample-button:hover { background: #eaf2e1; border-color: #d5e2c7; }
.sample-button:hover .icon { transform: rotate(12deg); }
.editor-bottom-row { border-top: 1px solid #e7eee8; padding-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.preserve-note { font-size: 12px; color: #607a68; display: flex; align-items: center; gap: 7px; }
.preserve-note .icon { width: 17px; height: 17px; color: #558f72; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border: 1px solid #dce6dc; min-height: 48px; padding: 12px 18px; border-radius: 12px; background: #fff; font-size: 15px; font-weight: 650; line-height: 1.4; }
.button:hover { background: #f0f7ef; }
.primary { background: linear-gradient(120deg,#008174,#00776e); border-color: #008174; color: #fff; box-shadow: inset 0 1px 0 #ffffff22,0 5px 10px #007f7317; position: relative; overflow: hidden; }
.primary:hover { background: linear-gradient(120deg,#007f70,#006b62); box-shadow: inset 0 1px 0 #ffffff22,0 7px 14px #007f7324; }
.primary:disabled { background: #d8e6de; color: #627b6b; border-color: #cfded3; box-shadow: none; }
.primary .icon:first-child { width: 20px; height: 20px; }
.primary .icon:last-child { margin-left: 9px; width: 19px; height: 19px; transition: transform .2s; }
.primary:hover:not(:disabled) .icon:last-child { transform: translateX(3px); }

.review-pane { background: linear-gradient(155deg,#f0f7ef,#f8fbf6 65%); border-left: 1px solid #dce8dc; display: flex; flex-direction: column; min-width: 0; }
.review-header { padding: 25px 22px 18px; display: flex; align-items: center; gap: 11px; }
.review-art { width: 57px; height: 57px; }
.review-header .eyebrow { font-size: 10px; letter-spacing: 1px; color: #5f7966; }
.review-header h2 { font-size: 23px; font-weight: 700; letter-spacing: -.8px; margin: 6px 0 0; display: flex; gap: 9px; align-items: center; }
.review-header h2>span { font-size: 13px; font-weight: 650; letter-spacing: 0; display: grid; place-items: center; min-width: 27px; height: 27px; padding: 0 6px; background: #dcebdc; color: #3e7253; border: 1px solid #d3e3d2; border-radius: 8px; }
.review-content { padding: 0 20px; flex: 1; min-width: 0; }
.review-summary { font-size: 14px; color: #597060; margin: 0 3px 20px; line-height: 1.7; }
.correction { border: 1px solid #dae7d8; border-radius: 16px; background: #fff; margin-bottom: 13px; padding: 17px 17px 16px; box-shadow: 0 2px 4px #22482e03; transition: border-color .18s,box-shadow .18s; }
.correction:hover { border-color: #a5c7ae; box-shadow: 0 4px 10px #22482e08; }
.correction-top { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 1.5; font-weight: 650; color: #4e6e59; }
.correction-top .artwork { width: 34px; height: 34px; }
.correction-change { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px; font-size: 18px; margin: 12px 0 0; line-height: 1.5; }
.correction-change del { font-size: 16px; text-decoration-color: #bd927e; text-decoration-thickness: 1px; color: #986a55; }
.correction-change .arrow { font-size: 17px; color: #73947e; }
.correction-change strong { font-size: 18px; color: #007a68; font-weight: 750; }
.correction-detail { font-size: 14px; color: #586e60; line-height: 1.7; margin: 10px 0 0; }
.correction-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; }
.accept { padding: 10px 13px; min-height: 44px; background: #e5f3e8; color: #006c5b; border: 1px solid #cfe5d4; border-radius: 10px; font-size: 14px; font-weight: 700; }
.accept:hover { background: #d5ecdc; border-color: #b8d7c0; }
.apply-small .icon { width: 15px; height: 15px; margin-right: 4px; vertical-align: -3px; }
.remaining-corrections { background: #ffffff7a; box-shadow: none; }
.remaining-corrections .correction-detail { display: none; }
.more-edits-button { display: flex; width: 100%; align-items: center; justify-content: center; border: 0; background: none; padding: 11px 7px; min-height: 44px; font-size: 13px; font-weight: 600; color: #476c53; border-radius: 10px; }
.more-edits-button:hover { background: #e6f0e2; }
.review-footer { padding: 13px 20px 24px; }
.apply-all { width: 100%; background: #fff; border: 1px solid #cddfcf; color: #006c5d; font-size: 14px; min-height: 48px; }
.apply-all:hover { background: #e4f0e3; }
.small-caption { font-size: 12px; text-align: center; color: #5f7563; margin: 12px 0 0; line-height: 1.7; }

.language-row { padding: 20px 30px 0; display: flex; align-items: center; gap: 15px; flex-wrap: wrap; font-size: 14px; color: #536f5c; }
.language-row>span:first-child { display: flex; align-items: center; gap: 7px; }
.small-dot { width: 6px; height: 6px; background: #519076; border-radius: 50%; }
.language-row>.icon { width: 18px; height: 18px; color: #5e846c; }
.language-row select { border: 1px solid #cddfce; border-radius: 11px; background: #f1f8ed; color: #37664b; font-size: 14px; font-weight: 650; padding: 11px 26px 11px 12px; cursor: pointer; min-height: 44px; max-width: 100%; }
.rewrite-result { padding: 10px 8px 24px; line-height: 1.85; font-size: 18px; color: #284c38; white-space: pre-wrap; overflow-wrap: anywhere; }
.rewrite-label { display: flex; align-items: center; gap: 8px; margin: 0 8px 10px; font-size: 14px; font-weight: 650; color: #436d51; }
.rewrite-label .icon { width: 19px; height: 19px; }
.result-buttons { display: flex; flex-direction: column; gap: 10px; }
.studio.paraphrase-mode { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.studio.paraphrase-mode .review-pane { background: linear-gradient(150deg,#eff8ee,#f7fbf3); }
.studio.paraphrase-mode .paper { padding-top: 23px; }
.studio.paraphrase-mode .review-header { min-height: 111px; padding-bottom: 27px; padding-inline: 24px; }
.studio.paraphrase-mode .review-header h2>span { display: none; }
.studio.paraphrase-mode .review-content { padding-inline: 24px; }
.studio.paraphrase-mode .review-footer { padding-inline: 28px; }

.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 58px 6px 35px; }
.empty-state>.artwork { width: 88px; height: 88px; margin-bottom: 24px; }
.empty-state h3 { font-size: 20px; letter-spacing: -.6px; line-height: 1.5; font-weight: 700; margin: 0 0 13px; }
.empty-state p { font-size: 15px; color: #5b7561; line-height: 1.8; margin: 0; max-width: 290px; }
.empty-state .button { margin-top: 23px; font-size: 14px; }
.success-mark { width: 92px; height: 92px; margin-bottom: 23px; }
.success-mark .artwork { width: 100%; height: 100%; }

.loading-state { padding: 24px 4px; text-align: center; }
.loading-illustration { width: 168px; height: 168px; position: relative; margin: 0 auto 23px; display: grid; place-items: center; }
.loading-illustration:before { content: ""; position: absolute; inset: 1px; background: radial-gradient(circle,#d5e9cc,transparent 69%); border-radius: 50%; }
.loading-orbit { position: absolute; inset: 10px; border: 1px solid #cadfc7; border-radius: 50%; animation: orbit 5s linear infinite; }
.loading-orbit:before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #2b9980; box-shadow: 0 0 0 5px #d6ead5; position: absolute; top: 12px; left: 21px; }
.loading-orbit:after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #c5a474; position: absolute; bottom: 5px; right: 37px; }
.loading-tile { position: relative; width: 91px; height: 90px; border-radius: 25px; background: linear-gradient(135deg,#fff,#f3f9ed); border: 1px solid #fff; box-shadow: 0 5px 0 #d3e6cf,0 15px 25px #44694017; display: grid; place-items: center; transform: rotate(-7deg); animation: breathe 2s ease-in-out infinite; }
.loading-tile img { width: 65px; height: 65px; object-fit: contain; }
.loading-star { position: absolute; color: #9b9c6a; font-size: 22px; animation: twinkle 1.8s ease-in-out infinite; }
.star-a { top: 10px; right: 11px; }
.star-b { bottom: 15px; left: 7px; font-size: 16px; animation-delay: -.9s; }
.loading-state h3 { font-size: 20px; letter-spacing: -.6px; line-height: 1.5; margin: 0 0 12px; font-weight: 700; }
.loading-state>p { font-size: 15px; line-height: 1.8; color: #58705b; margin: 0 auto; max-width: 280px; }
.loading-track { height: 4px; background: #dce9d8; border-radius: 3px; overflow: hidden; margin: 27px 26px; }
.loading-track span { display: block; width: 42%; height: 100%; background: linear-gradient(90deg,#93c9a4,#078776,#93c9a4); border-radius: inherit; animation: scan 1.4s ease-in-out infinite; }
.loading-lines { padding: 5px 15px; }
.loading-lines span { display: block; height: 8px; border-radius: 5px; margin: 12px 0; background: linear-gradient(100deg,#e1eadd 25%,#f9fcf4 50%,#e1eadd 75%); background-size: 200% 100%; animation: shimmer 1.6s linear infinite; }
.loading-lines span:nth-child(2) { width: 85%; animation-delay: -.2s; }
.loading-lines span:nth-child(3) { width: 62%; animation-delay: -.4s; }
.is-checking #run-check { color: #e9fff3; background: #478b79; border-color: #478b79; }
.is-checking #run-check>.icon:first-child { animation: orbit 3s linear infinite; }
.is-checking #run-check>.icon:last-child { display: none; }
.workspace-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; font-size: 12px; color: #5e7565; padding: 20px 2px; }
.workspace-footer p { margin: 0; display: flex; align-items: center; gap: 7px; line-height: 1.6; }
.workspace-footer .icon { width: 15px; height: 15px; }
.workspace-footer>span { font-size: 12px; }
.preview-note { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; max-width: 810px; }
.preview-note-tag { font-size: 10px; letter-spacing: 1px; font-weight: 650; color: #5f735d; border: 1px solid #d4e0cd; padding: 6px 8px; border-radius: 5px; flex-shrink: 0; }
.preview-note p { color: #5e725e; font-size: 12px; line-height: 1.8; margin: 1px 0 0; }
.mobile-credit { display: none; }
.toast { position: fixed; bottom: 27px; left: calc(50% + 100px); transform: translate(-50%,12px); max-width: calc(100vw - 32px); padding: 15px 22px; border-radius: 14px; background: #244b3b; color: #fff; font-size: 14px; line-height: 1.6; opacity: 0; pointer-events: none; transition: opacity .18s,transform .18s; z-index: 10; box-shadow: 0 5px 20px #16342a20; }
.toast.visible { opacity: 1; transform: translate(-50%,0); }

@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes breathe { 50% { transform: rotate(-3deg) translateY(-4px); } }
@keyframes twinkle { 50% { opacity: .4; transform: scale(.8); } }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
@keyframes shimmer { to { background-position: -200% 0; } }

@media (min-width:1600px) {
  .studio { grid-template-columns: minmax(0,1fr) 390px; }
  .intro-art { margin-right: 70px; }
  .paper { padding-inline: 38px; }
  .review-header { padding-inline: 27px; }
  .review-content, .review-footer { padding-inline: 26px; }
}
@media (max-width:1250px) {
  .sidebar { width: 218px; padding-inline: 12px; }
  .brand { font-size: 28px; gap: 8px; padding-inline: 10px; }
  .brand img { width: 38px; height: 38px; }
  .nav-item { font-size: 14px; gap: 8px; padding: 12px 9px; }
  .nav-item .artwork { width: 36px; height: 36px; }
  .nav-dot { display: none; }
  .workspace { padding-inline: 28px; }
  .topbar { padding-inline: 28px; }
  .studio { grid-template-columns: minmax(0,1fr) 326px; }
  .intro-art { margin-right: 4px; width: 210px; transform: scale(.9); transform-origin: right center; }
  .intro p:not(.eyebrow) { max-width: 380px; }
  .pane-header { margin-inline: 20px; }
  .paper { padding-inline: 23px; }
  .editor-bottom { padding-inline: 22px; }
  .preserve-note { display: none; }
  .editor-bottom-row { justify-content: flex-end; }
  .document-heading { gap: 6px; }
  .document-heading .artwork { width: 32px; height: 32px; }
  .demo-pill { display: none; }
  .icon-button { width: 40px; }
  .review-header { gap: 8px; padding-inline: 18px; }
  .review-art { width: 47px; height: 47px; }
  .review-header h2 { font-size: 22px; }
  .review-content, .review-footer { padding-inline: 16px; }
  .review-header .eyebrow { font-size: 10px; }
  .language-row { padding-inline: 23px; gap: 10px; }
}
@media (max-width:1050px) {
  body { display: block; }
  .sidebar { position: static; width: 100%; height: auto; padding: 22px 28px 0; border: 0; background: var(--surface); }
  .brand { padding: 0; width: max-content; }
  .sidebar-body { display: block; }
  .nav-label, .side-note, .sidebar-footer { display: none; }
  .tool-nav { flex-direction: row; gap: 10px; margin-top: 24px; }
  .nav-item { font-size: 15px; padding: 10px 16px; min-height: 58px; border-radius: 13px; gap: 9px; }
  .nav-item .artwork { width: 36px; height: 36px; }
  .nav-item.active { border: 1px solid #d0e3d2; }
  .topbar { position: absolute; top: 27px; right: 28px; padding: 0; min-height: 30px; background: none; border: 0; }
  .breadcrumb { display: none; }
  .workspace { padding-top: 28px; }
  .intro { min-height: 175px; margin-bottom: 30px; }
  h1 { font-size: 40px; }
  .intro-art { transform: scale(.93); margin-right: 20px; }
  .studio { grid-template-columns: minmax(0,1fr) 335px; }
  .mobile-credit { display: inline-block; margin-left: 5px; text-underline-offset: 3px; }
  .toast { left: 50%; }
}
@media (max-width:850px) {
  .studio, .studio.paraphrase-mode { grid-template-columns: minmax(0,1fr); min-height: 0; }
  .review-pane { border-left: 0; border-top: 1px solid #d6e5d5; }
  .review-header { padding: 25px 26px 19px; }
  .review-art { width: 58px; height: 58px; }
  .review-header h2 { font-size: 25px; }
  .review-header .eyebrow { font-size: 11px; }
  .review-content, .review-footer { padding-inline: 26px; }
  .correction { padding: 18px 20px; }
  .remaining-corrections .correction-detail { display: block; }
  .review-summary { font-size: 15px; }
  .pane-header { margin-inline: 27px; }
  .paper { padding: 28px 30px 15px; min-height: 300px; }
  .paper textarea { min-height: 260px; }
  .editor-bottom { padding-inline: 28px; }
  .preserve-note { display: flex; }
  .editor-bottom-row { justify-content: space-between; }
  .demo-pill { display: inline-block; }
  .document-heading { gap: 10px; }
  .document-heading .artwork { width: 38px; height: 38px; }
  .studio.paraphrase-mode .review-header { padding-inline: 26px; min-height: 100px; }
  .workspace-footer>span { display: none; }
  .empty-state { padding: 28px 12px 35px; }
  .loading-state { padding: 12px 7px 20px; max-width: 430px; margin: auto; }
}
@media (max-width:600px) {
  .sidebar { padding: 21px 20px 0; }
  .brand { font-size: 27px; gap: 8px; }
  .brand img { width: 37px; height: 37px; }
  .topbar { top: 25px; right: 20px; }
  .preview-badge { font-size: 9px; letter-spacing: .65px; gap: 5px; }
  .preview-version { width: 25px; height: 25px; font-size: 11px; margin-left: 1px; }
  .preview-badge .preview-indicator { display: none; }
  .tool-nav { gap: 8px; margin-top: 23px; }
  .nav-item { font-size: 14px; gap: 8px; padding: 10px 12px; flex: 1; min-height: 57px; }
  .nav-item .artwork { width: 33px; height: 33px; }
  .workspace { padding: 28px 20px 25px; }
  .intro { gap: 0; min-height: 0; margin-bottom: 26px; position: relative; }
  .intro-copy { width: 100%; }
  h1 { font-size: 35px; letter-spacing: -1.6px; margin: 13px 0 16px; max-width: 270px; }
  .intro .eyebrow { font-size: 10px; letter-spacing: 1.3px; }
  .intro p:not(.eyebrow) { font-size: 15px; line-height: 1.75; max-width: 350px; }
  .intro-art { position: absolute; width: 120px; height: 112px; right: -6px; top: 17px; margin: 0; transform: none; opacity: .8; }
  .quill-tile { width: 69px; height: 69px; left: 35px; top: 13px; border-radius: 20px; box-shadow: 3px 5px 0 #dbe9dd,8px 15px 18px #48684a14; }
  .quill-tile img { width: 51px; height: 51px; }
  .note-a { width: 40px; height: 44px; left: 5px; top: 0; font-size: 17px; border-radius: 10px 10px 3px 10px; padding: 6px 8px; }
  .note-a>span { width: 22px; height: 2px; margin-top: 3px; }
  .note-a>span:last-child { display: none; }
  .note-b { width: 33px; height: 32px; left: 84px; top: 73px; border-radius: 10px; }
  .note-b .icon { width: 20px; height: 20px; }
  .spark-one { top: -7px; left: 100px; font-size: 16px; }
  .spark-two { top: 86px; left: 15px; font-size: 20px; }
  .studio { border-radius: 19px; }
  .pane-header { min-height: 78px; margin-inline: 19px; gap: 5px; }
  .document-heading { gap: 7px; }
  .document-heading .artwork { width: 33px; height: 33px; }
  .pane-header h2 { font-size: 16px; }
  .demo-pill { display: none; }
  .editor-actions { gap: 0; }
  .icon-button { width: 38px; }
  .divider { margin-inline: 2px; }
  .paper { padding: 24px 23px 12px; min-height: 290px; }
  .paper textarea { font-size: 17px; line-height: 1.85; min-height: 260px; }
  .editor-bottom { padding: 15px 21px 22px; }
  .editor-meta { gap: 8px; padding-bottom: 17px; }
  .text-metrics { font-size: 12px; gap: 6px; }
  .sample-button { font-size: 12px; padding: 9px 10px; gap: 5px; }
  .sample-button .icon { width: 16px; height: 16px; }
  .editor-bottom-row { padding-top: 17px; }
  .preserve-note { font-size: 12px; }
  .preserve-note .icon { display: none; }
  .button { font-size: 14px; padding: 12px 14px; min-height: 48px; }
  .primary .icon:last-child { margin-left: 1px; }
  .review-header { padding: 23px 20px 18px; gap: 10px; }
  .review-art { width: 53px; height: 53px; }
  .review-header h2 { font-size: 24px; }
  .review-header .eyebrow { font-size: 10px; }
  .review-content { padding-inline: 19px; }
  .review-footer { padding: 10px 19px 22px; }
  .review-summary { font-size: 14px; }
  .correction { padding: 15px 16px; }
  .correction-top { font-size: 12px; }
  .correction-change { margin-top: 10px; }
  .correction-detail { font-size: 14px; }
  .more-edits-button { font-size: 13px; }
  .small-caption { font-size: 12px; }
  .language-row { padding-inline: 23px; gap: 10px; font-size: 13px; }
  .language-row select { font-size: 14px; }
  .rewrite-result { font-size: 17px; }
  .studio.paraphrase-mode .review-content, .studio.paraphrase-mode .review-footer { padding-inline: 20px; }
  .studio.paraphrase-mode .review-header { padding-inline: 20px; }
  .workspace-footer { font-size: 12px; padding-top: 17px; }
  .preview-note { margin-top: 13px; gap: 9px; }
  .preview-note-tag { font-size: 9px; padding: 5px 6px; }
  .preview-note p { font-size: 12px; }
  .mobile-credit { display: block; margin: 8px 0 0; }
}
@media (max-width:430px) {
  .intro-art { display: none; }
  h1 { font-size: 36px; max-width: none; }
  .preserve-note { display: none; }
  .editor-bottom-row { justify-content: stretch; }
  .editor-bottom-row .primary { width: 100%; }
}
@media (max-width:360px) {
  .sidebar { padding-inline: 14px; }
  .workspace { padding-inline: 13px; }
  .topbar { right: 14px; }
  .brand { font-size: 25px; gap: 6px; }
  .brand img { width: 32px; height: 32px; }
  .preview-version { display: none; }
  .preview-badge { font-size: 8px; letter-spacing: .4px; }
  .nav-item { padding: 9px 7px; font-size: 13px; gap: 6px; }
  .nav-item .artwork { width: 29px; height: 29px; }
  h1 { font-size: 32px; letter-spacing: -1.3px; }
  .intro p:not(.eyebrow) { font-size: 15px; }
  .pane-header { margin-inline: 14px; }
  .document-heading { gap: 5px; }
  .document-heading .artwork { width: 28px; height: 28px; }
  .pane-header h2 { font-size: 15px; }
  .icon-button { width: 35px; }
  .paper { padding-inline: 19px; }
  .paper textarea { font-size: 17px; }
  .editor-bottom { padding-inline: 17px; }
  .editor-meta { align-items: flex-start; flex-direction: column; gap: 12px; }
  .sample-button { font-size: 13px; }
  .language-row { padding-inline: 19px; }
}
@media (max-height:800px) and (min-width:1051px) {
  .side-note { display: none; }
}
@media (prefers-reduced-motion:reduce) {
  *, *:before, *:after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
