@font-face {
  font-family: "DejaVu Local";
  src: url(./vendor/DejaVuSans.ttf) format("truetype");
  font-display: swap;
}
:root {
  --bg:#f7f8fa;
  --surface:#fff;
  --ink:#243038;
  --muted:#78838b;
  --line:#e6eaed;
  --accent:#0c7366;
  --accent-soft:#edf6f3;
  --hover:#f3f5f6;
  --reader:#e6e9ec;
  --shadow:0 2px 10px #1f313a0c;
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
  color-scheme: light;
}
:root[data-theme=dark] {
  --bg:#151b20;
  --surface:#1c242b;
  --ink:#e3e9ed;
  --muted:#a0afb8;
  --line:#303b44;
  --accent:#59cbb4;
  --accent-soft:#183c35;
  --hover:#27323a;
  --reader:#10161a;
  color-scheme: dark;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  color: inherit;
  border: 0;
  background: none;
}
button:disabled {
  opacity: .35;
  cursor: default;
}
a {
  color: var(--accent);
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
input,
textarea,
select {
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  max-width: 100%;
}
textarea {
  resize: vertical;
  min-height: 90px;
}
input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
  flex-shrink: 0;
}
input[type=number] {
  appearance: textfield;
}
input::-webkit-inner-spin-button {
  opacity: .5;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  color: var(--ink);
}
h1 {
  font-size: 38px;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -1.4px;
  margin-bottom: 15px;
}
h2 {
  font-size: 20px;
  letter-spacing: -.4px;
  font-weight: 600;
}
h3 {
  font-size: 15px;
}
p {
  line-height: 1.65;
}
small {
  font-size: 12px;
}
.icon {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}
button .icon + span {
  margin-left: 8px;
}
[hidden] {
  display: none !important;
}
.skip {
  position: fixed;
  left: 10px;
  top: -80px;
  z-index: 100;
  padding: 12px;
  background: var(--surface);
}
.skip:focus {
  top: 10px;
}
.primary,
.secondary,
.text-button,
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 11px 16px;
  font-weight: 550;
  line-height: 1.3;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}
:root[data-theme=dark] .primary {
  color: #102c26;
}
.primary:hover {
  filter: brightness(.94);
}
.secondary {
  background: var(--surface);
  border: 1px solid var(--line);
}
.secondary:hover {
  background: var(--hover);
}
.text-button {
  color: var(--accent);
  padding: 9px 10px;
}
.text-button:hover {
  background: var(--accent-soft);
}
.small {
  padding: 8px 12px;
  font-size: 12px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border-radius: 6px;
  flex-shrink: 0;
  min-width: 32px;
  min-height: 32px;
}
.icon-button:hover {
  background: var(--hover);
}
.icon-button.active {
  color: var(--accent);
  background: var(--accent-soft);
}
.icon-button .icon {
  width: 18px;
  height: 18px;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.rotate90 {
  transform: rotate(90deg);
}
#app {
  display: flex;
  min-height: 100vh;
}
.app-sidebar {
  width: 236px;
  position: fixed;
  inset: 0 auto 0 0;
  border-right: 1px solid var(--line);
  background: var(--surface);
  padding: 30px 18px 14px;
  display: flex;
  flex-direction: column;
  z-index: 25;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  padding: 0 6px 28px;
}
.brand > span {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.5px;
}
.brand b {
  color: var(--accent);
  font-weight: 600;
}
.brand small {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: var(--muted);
  font-weight: 550;
}
.sidebar-open {
  width: 100%;
  margin: 1px 0 26px;
  font-size: 13px;
  padding: 12px;
}
.sidebar-open .icon {
  width: 17px;
  height: 17px;
}
.app-sidebar nav {
  display: grid;
  gap: 5px;
}
.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  border-radius: 6px;
  text-align: left;
  padding: 11px 12px;
  color: #6c7983;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  min-width: 0;
}
.nav-link .icon {
  width: 18px;
  height: 18px;
}
.nav-link.active {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.nav-link:hover {
  background: var(--hover);
}
.nav-link small {
  margin-left: auto;
  font-size: 10px;
  background: var(--surface);
  padding: 2px 5px;
  border-radius: 4px;
  color: var(--muted);
}
.sidebar-caption {
  font-size: 9px;
  letter-spacing: 1.2px;
  color: #99a3aa;
  padding: 30px 12px 12px;
  font-weight: 600;
}
.sidebar-docs {
  overflow-y: auto;
  flex: 1;
  min-height: 30px;
}
.sidebar-docs > p {
  font-size: 11px;
  color: #a3acb2;
  padding: 8px 12px;
}
.sidebar-docs .nav-link span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.sidebar-bottom {
  padding-top: 20px;
}
.local-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 13px 10px;
  margin-bottom: 18px;
}
.local-note > .icon {
  color: var(--accent);
  width: 16px;
  height: 18px;
}
.local-note strong {
  display: block;
  font-size: 10px;
  font-weight: 600;
  margin-bottom: 5px;
}
.local-note span {
  color: var(--muted);
  font-size: 9px;
}
.version {
  border-top: 1px solid var(--line);
  margin-top: 14px;
  padding: 18px 10px 0;
  color: var(--muted);
  font-size: 9px;
}
.version span {
  display: block;
  margin-top: 5px;
  font-size: 8px;
  color: #9aa4ac;
}
.app-body {
  margin-left: 236px;
  display: flex;
  flex-direction: column;
  width: calc(100% - 236px);
  min-height: 100vh;
}
.app-header {
  height: 72px;
  padding: 0 39px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  flex-shrink: 0;
  gap: 15px;
}
.header-left,
.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
}
.breadcrumb > span {
  color: #b5bdc3;
}
.breadcrumb b {
  color: var(--ink);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}
.local-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #779088;
  font-size: 10px;
  margin-right: 7px;
  white-space: nowrap;
}
.local-badge i {
  background: #4aa48b;
  width: 5px;
  height: 5px;
  border-radius: 50%;
}
.header-left > .icon-button {
  display: none;
}
.header-right > .icon-button {
  color: #839099;
}
.app-footer {
  display: flex;
  justify-content: space-between;
  padding: 22px 40px;
  color: #98a2ab;
  font-size: 9px;
  margin-top: auto;
}
.app-footer > span:last-child {
  display: flex;
  align-items: center;
  gap: 6px;
}
.app-footer .icon {
  width: 11px;
  height: 11px;
}
.home-page,
.content-page {
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
  padding: 43px 40px 12px;
}
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 25px;
  margin-bottom: 29px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 1.6px;
  color: var(--accent);
  margin-bottom: 14px;
}
.page-title p {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 0;
}
.free-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--accent);
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  align-self: flex-start;
  margin-top: 25px;
}
.free-tag .icon {
  width: 13px;
  height: 13px;
}
.hero {
  height: 309px;
  background: #eaf3ef;
  border: 1px solid #ddece5;
  border-radius: 6px;
  display: flex;
  position: relative;
  overflow: hidden;
  margin-bottom: 34px;
}
.hero-copy {
  padding: 31px 32px;
  position: relative;
  z-index: 2;
  flex: 1;
}
.tag {
  font-size: 8px;
  letter-spacing: 1.2px;
  color: #568276;
  font-weight: 650;
}
.hero h2 {
  font-size: 30px;
  letter-spacing: -1px;
  color: #1e4b41;
  line-height: 1.25;
  margin: 14px 0 11px;
  font-weight: 600;
}
.hero p {
  font-size: 11px;
  color: #68847a;
  line-height: 1.8;
  margin-bottom: 18px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.hero-actions > .primary {
  font-size: 11px;
  padding: 10px 13px;
}
.hero-actions .icon {
  width: 15px;
  height: 15px;
}
.hero-actions > .text-button {
  font-size: 10px;
  color: #3c7766;
  flex-direction: row-reverse;
}
.hero-actions > .text-button > span {
  margin: 0;
}
.hero-copy > small {
  display: block;
  font-size: 9px;
  color: #8ba096;
  margin-top: 13px;
}
.hero-art {
  width: 44%;
  position: relative;
  margin-right: 12px;
  flex-shrink: 0;
}
.art-paper {
  width: 214px;
  height: 280px;
  background: #fff;
  position: absolute;
  top: 34px;
  left: calc(50% - 107px);
  border: 1px solid #dce6df;
  border-radius: 4px;
}
.back-paper {
  transform: rotate(11deg);
  top: 45px;
  left: calc(50% - 88px);
  background: #dfeee5;
}
.front-paper {
  transform: rotate(-7deg);
  padding: 22px 20px;
  box-shadow: 0 12px 20px #3554440c;
}
.paper-top {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #2c6b57;
}
.paper-top small {
  font-size: 5px;
  letter-spacing: 1px;
}
.paper-top > b {
  font-size: 8px;
  margin-left: auto;
  font-weight: 500;
  color: #b1b9b4;
}
.paper-mark {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -2px;
}
.paper-mark span {
  font-size: 11px;
  vertical-align: top;
}
.paper-title {
  font-size: 17px;
  letter-spacing: -.5px;
  font-weight: 650;
  line-height: 1.4;
  color: #2b3d35;
  margin: 21px 0 17px;
}
.paper-line {
  height: 3px;
  background: #e6eae7;
  width: 90%;
  margin: 7px 0;
}
.paper-line.long {
  width: 98%;
}
.paper-line.mid {
  width: 65%;
}
.paper-line.marked {
  background: #f4d87e;
  width: 84%;
  height: 6px;
}
.paper-chart {
  height: 47px;
  display: flex;
  gap: 8px;
  align-items: flex-end;
  margin: 14px 8px 18px;
}
.paper-chart i {
  width: 16px;
  height: 30%;
  background: #aac9b5;
  border-radius: 2px 2px 0 0;
}
.paper-chart i:nth-child(2) {
  height: 42%;
}
.paper-chart i:nth-child(3) {
  height: 58%;
  background: #789f89;
}
.paper-chart i:nth-child(4) {
  height: 70%;
  background: #6d997f;
}
.paper-chart i:nth-child(5) {
  height: 65%;
  background: #397b5c;
}
.paper-chart i:nth-child(6) {
  height: 95%;
  background: #2a6c4c;
}
.paper-footer {
  font-size: 4px;
  letter-spacing: .5px;
  color: #a9b2ac;
  border-top: 1px solid #edf0ed;
  padding-top: 10px;
}
.floating-chip {
  position: absolute;
  top: 164px;
  left: -8px;
  transform: rotate(-5deg);
  padding: 10px 12px;
  background: #fff;
  border: 1px solid #e0e8df;
  border-radius: 6px;
  box-shadow: 0 5px 15px #354b4008;
  font-size: 9px;
  color: #61726b;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}
.floating-chip > .icon {
  width: 16px;
  height: 16px;
  color: #9c8836;
}
.floating-check {
  position: absolute;
  top: 55px;
  right: 12px;
  background: #fff;
  color: #54856a;
  width: 41px;
  height: 41px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  transform: rotate(10deg);
  border: 1px solid #dbe8df;
}
.art-dot {
  border-radius: 50%;
  position: absolute;
  background: #b7d6c2;
  opacity: .4;
}
.dot-one {
  width: 150px;
  height: 150px;
  right: -20px;
  top: 175px;
}
.dot-two {
  width: 7px;
  height: 7px;
  left: 18px;
  top: 60px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 17px;
}
.section-heading h2 {
  font-size: 16px;
  letter-spacing: -.2px;
  margin: 0;
  font-weight: 600;
}
.section-heading > a {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-heading > a .icon {
  width: 13px;
  height: 13px;
}
.section-heading > .text-button {
  font-size: 10px;
  padding: 0;
}
.section-heading > .text-button .icon {
  width: 13px;
  height: 13px;
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.quick-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 19px 17px;
  text-align: left;
  position: relative;
  transition: border-color .15s, transform .15s;
}
.quick-card:hover,
.tool-card:hover {
  border-color: #9dbeb4;
  transform: translateY(-2px);
}
.tool-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
}
.tool-icon .icon {
  width: 18px;
  height: 18px;
}
.teal {
  background: #e9f3ef;
  color: #4b8d76;
}
.blue {
  background: #eef2fa;
  color: #6481b2;
}
.purple {
  background: #f2eff9;
  color: #9680b7;
}
.orange {
  background: #fcf2e8;
  color: #be9461;
}
.quick-card h3 {
  font-size: 11px;
  margin: 15px 0 7px;
  font-weight: 600;
}
.quick-card p {
  font-size: 9px;
  line-height: 1.4;
  color: var(--muted);
  margin-bottom: 0;
  white-space: nowrap;
}
.quick-card > .card-arrow {
  width: 14px;
  height: 14px;
  position: absolute;
  right: 16px;
  top: 29px;
  color: #aab4ba;
}
.start-section {
  margin-top: 33px;
}
.dropzone {
  display: flex;
  align-items: center;
  gap: 17px;
  border: 1px dashed #cfd9dd;
  border-radius: 6px;
  min-height: 92px;
  padding: 22px;
  background: var(--surface);
  cursor: pointer;
}
.dropzone > .icon {
  width: 27px;
  height: 27px;
  color: #9aadb3;
}
.dropzone strong {
  font-size: 11px;
  font-weight: 550;
}
.dropzone p {
  font-size: 10px;
  color: var(--muted);
  margin: 6px 0 0;
}
.dropzone > span {
  margin-left: auto;
  font-size: 10px;
  color: var(--accent);
  display: flex;
  gap: 8px;
  align-items: center;
  white-space: nowrap;
}
.dropzone > span > .icon {
  width: 13px;
  height: 13px;
}
.dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.privacy-strip {
  margin-top: 23px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 9px;
  line-height: 1.7;
  color: #8b979e;
}
.privacy-strip > .icon {
  width: 13px;
  height: 13px;
  color: #86a496;
}
.privacy-strip strong {
  font-weight: 550;
  color: #6d8076;
}
:root[data-theme=dark] .hero {
  filter: brightness(.9);
}
.compact h1 {
  font-size: 32px;
}
.compact {
  margin-bottom: 30px;
}
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.tool-search {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 430px;
  margin-bottom: 27px;
}
.tool-search .icon {
  width: 17px;
  height: 17px;
  color: var(--muted);
}
.tool-search input {
  background: transparent;
  border: 0;
  width: 100%;
  font-size: 12px;
  padding: 13px 0;
  outline: 0;
}
.tool-card {
  text-align: left;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  transition: transform .15s, border-color .15s;
}
.tool-card > small {
  float: right;
  font-size: 9px;
  color: var(--muted);
  padding: 6px 0;
}
.tool-card h2 {
  font-size: 15px;
  margin: 18px 0 9px;
}
.tool-card p {
  font-size: 11px;
  min-height: 34px;
  color: var(--muted);
  margin-bottom: 19px;
}
.card-go {
  font-size: 10px;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-go .icon {
  width: 13px;
  height: 13px;
}
.document-list {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  overflow: hidden;
}
.document-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 17px 19px;
  border-bottom: 1px solid var(--line);
}
.document-row:last-child {
  border-bottom: 0;
}
.pdf-icon {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  color: var(--accent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  border: 1px solid #c8dcd5;
  border-radius: 3px;
  background: var(--accent-soft);
  width: 29px;
  height: 36px;
  padding-bottom: 7px;
}
.doc-name {
  text-align: left;
  min-width: 0;
  flex: 1;
}
.doc-name strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-name small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 6px;
}
.document-row > .icon-button {
  color: var(--muted);
}
.narrow {
  max-width: 1060px;
}
.settings-panel,
.help-panel {
  background: var(--surface);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
}
.settings-panel h2 {
  font-size: 16px;
  margin: 5px 0 20px;
}
.settings-panel h2:not(:first-child) {
  margin-top: 32px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--line);
  padding: 22px 0;
  gap: 20px;
}
.setting-row strong {
  font-size: 12px;
  font-weight: 550;
}
.setting-row small {
  display: block;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
}
.setting-row select {
  width: 185px;
  font-size: 12px;
}
.form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 25px;
}
.help-panel {
  font-size: 12px;
  line-height: 1.8;
}
.help-panel h2 {
  font-size: 17px;
  margin-top: 32px;
}
.help-panel h2:first-child {
  margin-top: 0;
}
.help-panel li {
  padding-left: 3px;
  margin-bottom: 9px;
}
.help-panel p,
.help-panel li {
  color: var(--muted);
}
.help-panel strong {
  color: var(--ink);
}
.shortcut-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 20px;
  align-items: center;
  font-size: 11px;
}
.shortcut-list kbd {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 3px 7px;
  font-size: 10px;
  width: max-content;
  max-width: 100%;
}
.help-links {
  display: flex;
  gap: 20px;
  margin-top: 28px;
  font-size: 11px;
}
.help-links .icon {
  width: 12px;
  height: 12px;
}
.notice {
  display: flex;
  gap: 9px;
  font-size: 11px;
  line-height: 1.7;
  border: 1px solid #d8e7e0;
  color: #4b7263;
  background: #f2f7f4;
  padding: 13px 15px;
  border-radius: 6px;
  margin: 0 0 20px;
  align-items: flex-start;
}
.notice .icon {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}
.notice.warning {
  background: #fff8ed;
  border-color: #eedfc9;
  color: #85672d;
}
:root[data-theme=dark] .notice {
  background: #1d352e;
  border-color: #355a4b;
  color: #b1d8c3;
}
:root[data-theme=dark] .notice.warning {
  background: #3b3020;
  border-color: #665232;
  color: #e0c28a;
}
.empty {
  padding: 50px 20px;
  text-align: center;
  color: var(--muted);
}
.empty > .icon {
  width: 32px;
  height: 32px;
  color: #9fb6ae;
  margin-bottom: 18px;
}
.empty h3 {
  font-size: 14px;
  margin-bottom: 9px;
}
.empty p {
  font-size: 11px;
  margin: 0 auto;
  max-width: 350px;
}
.reader-page {
  display: flex;
  flex-direction: column;
  height: calc(100dvh - 72px);
  min-height: 400px;
  background: var(--surface);
  max-width: none;
}
.app-body:has(.reader-page) .app-footer {
  display: none;
}
.app-body:has(.reader-page) {
  overflow: hidden;
}
.doc-tabs {
  height: 40px;
  min-height: 40px;
  display: flex;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: thin;
}
.doc-tab {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 150px;
  max-width: 245px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  padding: 0 7px;
}
.doc-tab.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 -2px 0 var(--accent);
}
.doc-tab > button:first-child {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 100%;
  font-size: 10px;
  flex: 1;
}
.doc-tab > button:first-child > .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.doc-tab > button:first-child > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.doc-tab > .icon-button {
  padding: 4px;
  min-height: 22px;
  min-width: 22px;
}
.doc-tab > .icon-button .icon {
  width: 12px;
  height: 12px;
}
.dot {
  display: inline-block;
  flex-shrink: 0;
  width: 5px;
  height: 5px;
  background: var(--accent);
  border-radius: 50%;
}
.reader-menu {
  height: 53px;
  min-height: 53px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.reader-menu-left,
.reader-menu-right {
  display: flex;
  align-items: center;
  gap: 5px;
}
.reader-menu-left .text-button {
  font-size: 10px;
  padding: 8px;
  color: var(--ink);
  font-weight: 500;
}
.reader-menu-left .text-button .icon {
  width: 16px;
  height: 16px;
}
.reader-menu-left .text-button span {
  margin-left: 0;
}
.reader-menu-right .icon-button {
  color: var(--muted);
}
.reader-menu-right .primary {
  font-size: 10px;
}
.reader-menu-right .primary .icon {
  width: 14px;
  height: 14px;
}
.toolbar-divider {
  display: block;
  height: 18px;
  width: 1px;
  background: var(--line);
  margin: 0 7px;
  flex-shrink: 0;
}
.reader-toolbar {
  height: 47px;
  min-height: 47px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  gap: 12px;
}
.toolbar-group {
  display: flex;
  align-items: center;
  gap: 2px;
}
.toolbar-group .icon-button {
  color: #71818b;
  padding: 5px;
  min-width: 28px;
  min-height: 28px;
}
.toolbar-group .icon-button .icon {
  width: 16px;
  height: 16px;
}
.page-input {
  width: 37px;
  padding: 5px 2px;
  text-align: center;
  height: 27px;
  font-size: 10px;
  border-radius: 4px;
}
.page-total {
  font-size: 10px;
  color: var(--muted);
  white-space: nowrap;
  padding: 0 8px 0 4px;
}
#zoom-select {
  border: 0;
  background: transparent;
  max-width: 130px;
  padding: 5px;
  font-size: 10px;
  color: var(--ink);
}
.reader-body {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  position: relative;
}
.reader-side {
  width: 183px;
  flex-shrink: 0;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  background: var(--surface);
}
.side-tabs {
  display: flex;
  align-items: center;
  justify-content: space-around;
  min-height: 42px;
  border-bottom: 1px solid var(--line);
  padding: 4px;
}
.side-tabs .icon-button {
  min-width: 30px;
  min-height: 30px;
}
.side-tabs .icon {
  width: 15px;
  height: 15px;
}
.side-content {
  overflow: auto;
  flex: 1;
  padding: 0 12px 20px;
}
.side-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 17px 1px 13px;
  font-size: 10px;
}
.side-heading strong {
  font-weight: 550;
}
.side-heading > span {
  font-size: 9px;
  color: var(--muted);
}
.thumbnails {
  display: grid;
  gap: 15px;
}
.thumbnail {
  width: 100%;
  text-align: center;
}
.thumb-sheet {
  width: 100px;
  margin: 0 auto;
  background: white;
  min-height: 130px;
  box-shadow: 0 0 0 1px #cfd5d9, 0 1px 4px #00000010;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: #bac2c5;
  position: relative;
}
.thumb-sheet canvas {
  width: 100%;
  display: block;
  height: auto;
}
.thumbnail small {
  display: block;
  font-size: 9px;
  color: var(--muted);
  margin-top: 8px;
}
.thumbnail.selected .thumb-sheet {
  box-shadow: 0 0 0 2px var(--accent);
}
.thumbnail.selected small {
  color: var(--accent);
  font-weight: 600;
}
.side-hint {
  font-size: 10px;
  line-height: 1.7;
  color: var(--muted);
  margin: 10px 0 20px;
}
.document-scroll {
  background: var(--reader);
  flex: 1;
  min-width: 0;
  overflow: auto;
  padding: 25px 25px 50px;
  position: relative;
}
.page-stage {
  min-width: 100%;
  min-height: 100%;
  width: max-content;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}
.pdf-page {
  position: relative;
  background: white;
  color: black;
  box-shadow: 0 2px 7px #0000001a;
  flex-shrink: 0;
  isolation: isolate;
}
.pdf-page > #page-canvas {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}
.pdf-page .textLayer {
  z-index: 2;
}
.textLayer .search-hit {
  background: #ffc84070;
}
.textLayer ::selection {
  background: #168dbb4d;
}
.pdf-links {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}
.pdf-links > a {
  position: absolute;
  pointer-events: auto;
  border: 1px solid transparent;
}
.pdf-links > a:hover {
  background: #4898c216;
  border-color: #4898c288;
}
.pdf-page > #annotation-canvas {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
}
.pointer-layer {
  position: absolute;
  inset: 0;
  z-index: 5;
  touch-action: none;
}
.loading-text {
  font-size: 12px;
  color: var(--muted);
  padding: 80px 20px;
}
.annotation-tools {
  width: 46px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  border-left: 1px solid var(--line);
  padding: 10px 5px;
  gap: 6px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.annotation-tools .icon-button {
  padding: 6px;
  min-width: 32px;
  min-height: 32px;
  color: #788a91;
}
.annotation-tools .icon-button.active {
  color: var(--accent);
}
.annotation-tools .icon {
  width: 17px;
  height: 17px;
}
.annotation-tools > .toolbar-divider {
  width: 20px;
  height: 1px;
  min-height: 1px;
  margin: 4px;
}
.annotation-tools input[type=color] {
  width: 25px;
  height: 25px;
  border: 1px solid var(--line);
  padding: 2px;
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}
.annotation-tools input[type=number] {
  font-size: 9px;
  width: 32px;
  padding: 5px 2px;
  text-align: center;
}
.reader-status {
  height: 27px;
  min-height: 27px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  font-size: 8px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  gap: 15px;
  overflow: hidden;
}
.reader-status > span {
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.reader-status .icon {
  width: 10px;
  height: 10px;
  color: var(--accent);
}
.reader-status i {
  font-style: normal;
  color: #aab4bb;
  margin: 0 2px;
}
.reader-body.side-hidden .reader-side {
  display: none;
}
.reader-page:fullscreen {
  height: 100dvh;
}
.search-input {
  display: flex;
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 5px 0 15px;
  overflow: hidden;
}
.search-input input {
  width: 100%;
  border: 0;
  padding: 8px;
  font-size: 10px;
  min-width: 0;
}
.search-input .icon-button {
  min-width: 28px;
  padding: 3px;
}
.search-result {
  text-align: left;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  font-size: 10px;
  background: var(--bg);
}
.search-result strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent);
  font-size: 10px;
}
.search-result span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.outline-list {
  list-style: none;
  padding: 0 0 0 10px;
  margin: 0;
}
.outline-list:first-child {
  padding-left: 0;
}
.outline-list button {
  font-size: 10px;
  text-align: left;
  line-height: 1.6;
  padding: 6px 0;
  color: var(--ink);
}
.outline-list button:hover {
  color: var(--accent);
}
.bookmark-row {
  font-size: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 1px;
}
.bookmark-row .icon {
  width: 14px;
  height: 14px;
  color: var(--accent);
}
.annotation-item {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
  margin-bottom: 10px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.annotation-jump {
  width: 100%;
  text-align: left;
  padding: 0;
}
.annotation-jump strong {
  font-size: 9px;
  display: block;
  margin-bottom: 7px;
}
.annotation-jump span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  white-space: pre-wrap;
  line-height: 1.6;
  overflow-wrap: anywhere;
  max-height: 120px;
  overflow: auto;
}
.annotation-item .icon-button {
  min-height: 24px;
  min-width: 24px;
  padding: 3px;
  margin-top: 8px;
}
.annotation-item .icon {
  width: 12px;
  height: 12px;
}
dialog {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  width: min(570px, calc(100vw - 30px));
  max-height: 90dvh;
  box-shadow: 0 15px 60px #10292b28;
  overflow: hidden;
}
dialog::backdrop {
  background: #15232e70;
  backdrop-filter: blur(2px);
}
dialog.wide-dialog {
  width: min(940px, calc(100vw - 30px));
}
#dialog-form {
  display: flex;
  flex-direction: column;
  max-height: 90dvh;
}
.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 23px 26px 19px;
  border-bottom: 1px solid var(--line);
}
.modal-header h2 {
  font-size: 18px;
  margin: 5px 0 2px;
}
.modal-header p {
  font-size: 11px;
  color: var(--muted);
  margin: 5px 0 0;
}
.modal-body {
  padding: 24px 26px;
  overflow-y: auto;
  overscroll-behavior: contain;
  font-size: 12px;
  min-height: 0;
}
.modal-body .empty {
  padding: 25px 10px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 26px;
}
.modal-footer button {
  font-size: 11px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  font-size: 11px;
  font-weight: 550;
  margin-bottom: 20px;
  line-height: 1.5;
}
.field small {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}
.field input,
.field select,
.field textarea {
  font-size: 12px;
  line-height: 1.6;
  font-weight: 400;
  width: 100%;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.checkbox-field {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  line-height: 1.7;
}
.checkbox-field input {
  width: 18px;
  max-width: 18px;
}
.field.checkbox-field {
  flex-direction: row;
  justify-content: space-between;
}
#dialog-error {
  color: #b1473e;
  font-size: 11px;
  padding: 0 26px;
}
#dialog-error:empty {
  display: none;
}
#dialog-error:not(:empty) {
  padding-bottom: 15px;
}
.properties-summary {
  padding: 13px 15px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  margin-bottom: 24px;
  display: grid;
  gap: 7px;
  font-size: 11px;
  overflow-wrap: anywhere;
}
.properties-summary > span:not(:first-child) {
  color: var(--muted);
  font-size: 10px;
}
.ordered-file {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}
.ordered-file > .icon {
  color: var(--accent);
  width: 18px;
  height: 18px;
}
.ordered-file > div {
  flex: 1;
  min-width: 0;
}
.ordered-file strong {
  font-size: 11px;
  display: block;
  overflow-wrap: anywhere;
  font-weight: 500;
}
.ordered-file small {
  font-size: 9px;
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
#file-order {
  margin-bottom: 25px;
}
.organize-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.organize-actions > .secondary {
  font-size: 10px;
  padding: 8px 9px;
  gap: 6px;
}
.organize-actions .icon {
  width: 14px;
  height: 14px;
}
.organizer {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 17px;
  margin-bottom: 20px;
}
.organize-page {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 6px;
  padding: 8px;
}
.organize-page > label {
  display: block;
  font-size: 10px;
  position: relative;
}
.organize-page input {
  position: absolute;
  top: 3px;
  left: 3px;
  z-index: 1;
  width: 16px;
  height: 16px;
}
.organize-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid #dde1e2;
  overflow: hidden;
  color: #a8b3b8;
}
.organize-thumb img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}
.organize-page strong {
  display: block;
  text-align: center;
  margin: 9px 0 3px;
  font-size: 10px;
  font-weight: 500;
}
.organize-page > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.organize-page > div > small {
  font-size: 8px;
  color: var(--muted);
}
.organize-page > div .icon-button {
  min-width: 22px;
  min-height: 22px;
  padding: 2px;
}
.organize-page > div .icon {
  width: 13px;
  height: 13px;
}
.signature-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
.signature-tabs button {
  font-size: 11px;
}
.signature-tabs .active {
  background: var(--accent-soft);
  color: var(--accent);
  border-color: #9dc1b7;
}
#signature-pad {
  width: 100%;
  height: auto;
  background: #fafcfd;
  border: 1px solid #d7e0e4;
  border-radius: 6px;
  touch-action: none;
  background-image:
    linear-gradient(
      transparent 68%,
      #e2e8ed 68%,
      #e2e8ed 68.5%,
      transparent 68.5%);
}
#signature-clear {
  font-size: 10px;
  margin: 7px 0 20px;
}
.signature-preview {
  font: italic 34px Georgia, serif;
  color: #153549;
  min-height: 100px;
  padding: 22px 15px;
  border: 1px solid #d7e0e4;
  border-radius: 6px;
  background: #fafcfd;
  overflow-wrap: anywhere;
  margin-bottom: 20px;
}
.compare-header {
  display: flex;
  gap: 15px;
  justify-content: space-between;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.compare-header .removed {
  color: #b75b59;
}
.compare-header .added {
  color: #277b56;
}
.diff-content {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.9;
  padding: 20px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-height: 440px;
  overflow: auto;
  margin-bottom: 20px;
  font-size: 12px;
}
.diff-content ins {
  background: #b8edcd;
  color: #163d2b;
  text-decoration: none;
}
.diff-content del {
  background: #f6c9c5;
  color: #7d3432;
}
.modal-body > .link-button {
  font-size: 12px;
  margin-bottom: 20px;
}
.modal-body > .link-button + small {
  display: block;
}
.busy {
  position: fixed;
  inset: 0;
  background: #13242c65;
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}
.busy-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 40px;
  border-radius: 6px;
  width: 360px;
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow);
}
.spinner {
  width: 30px;
  height: 30px;
  border: 2px solid var(--line);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}
.busy-card strong {
  font-size: 15px;
}
.busy-card p {
  font-size: 11px;
  color: var(--muted);
  margin: 13px 0 20px;
}
.busy-card progress {
  width: 100%;
  height: 5px;
  accent-color: var(--accent);
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
#toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translate(-50%, 20px);
  padding: 13px 21px;
  background: #243c36;
  color: #fff;
  border: 1px solid #ffffff20;
  border-radius: 6px;
  font-size: 12px;
  max-width: min(620px, 90vw);
  line-height: 1.6;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  z-index: 1000;
  box-shadow: 0 5px 20px #00000018;
}
#toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
#toast.error {
  background: #823e36;
}
.dragging:after {
  content: "Solte seu PDF para abrir";
  position: fixed;
  inset: 15px;
  background: #e7f3f0f5;
  border: 2px dashed #0c7366;
  border-radius: 6px;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  color: #0c7366;
  pointer-events: none;
}
@media (min-width: 1600px) {
  .home-page {
    max-width: 1360px;
    padding-top: 55px;
  }
  .hero {
    height: 350px;
  }
  .hero-copy {
    padding: 40px;
  }
  .hero h2 {
    font-size: 36px;
  }
  .hero p {
    font-size: 13px;
  }
  .hero-art {
    margin-right: 50px;
  }
  .art-paper {
    top: 40px;
    width: 240px;
    height: 310px;
  }
  .front-paper {
    padding: 26px;
  }
  .paper-title {
    font-size: 20px;
  }
  .floating-chip {
    left: 0;
    top: 190px;
  }
  .quick-card {
    padding: 25px;
  }
  .quick-card h3 {
    font-size: 13px;
  }
  .quick-card p {
    font-size: 11px;
  }
}
@media (max-width: 1200px) {
  .app-sidebar {
    width: 206px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .app-body {
    margin-left: 206px;
    width: calc(100% - 206px);
  }
  .brand > span {
    font-size: 16px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .home-page,
  .content-page {
    padding-left: 28px;
    padding-right: 28px;
  }
  .app-header {
    padding: 0 28px;
  }
  .hero-copy {
    padding-left: 25px;
  }
  .hero-art {
    width: 42%;
    margin-right: 0;
  }
  .hero h2 {
    font-size: 27px;
  }
  .quick-card {
    padding: 16px 13px;
  }
  .quick-card h3 {
    font-size: 10px;
  }
  .quick-card p {
    font-size: 8px;
  }
  .quick-card > .card-arrow {
    right: 10px;
  }
  .reader-menu-left .text-button {
    font-size: 9px;
    padding: 7px 5px;
    gap: 5px;
  }
  .reader-menu-left .text-button .icon {
    width: 14px;
    height: 14px;
  }
  .reader-side {
    width: 160px;
  }
  .organizer {
    grid-template-columns: repeat(4, 1fr);
  }
  .reader-status > span:last-child {
    max-width: 50%;
    overflow: hidden;
  }
}
@media (max-width: 1000px) {
  .app-sidebar {
    width: 185px;
    padding: 24px 10px 15px;
  }
  .app-body {
    margin-left: 185px;
    width: calc(100% - 185px);
  }
  .brand {
    gap: 7px;
    padding-left: 4px;
  }
  .brand > span {
    font-size: 14px;
  }
  .brand small {
    font-size: 7px;
    letter-spacing: 1.3px;
  }
  .brand img {
    width: 29px;
    height: 29px;
  }
  .nav-link {
    font-size: 11px;
    gap: 10px;
    padding: 11px 10px;
  }
  .local-note {
    padding: 10px 8px;
    gap: 6px;
  }
  .local-note strong {
    font-size: 9px;
  }
  .local-note span {
    font-size: 8px;
  }
  .hero-art {
    width: 39%;
  }
  .art-paper {
    width: 175px;
    height: 260px;
    left: calc(50% - 83px);
  }
  .back-paper {
    left: calc(50% - 66px);
  }
  .paper-title {
    font-size: 15px;
  }
  .paper-top small {
    font-size: 4px;
  }
  .floating-chip {
    font-size: 8px;
    left: -20px;
    padding: 9px;
  }
  .floating-check {
    right: 0;
  }
  .hero h2 {
    font-size: 25px;
  }
  .hero-copy > small {
    font-size: 8px;
  }
  .hero-actions {
    gap: 0;
  }
  .hero-actions > .text-button {
    font-size: 9px;
  }
  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .quick-card h3 {
    font-size: 12px;
  }
  .quick-card p {
    font-size: 10px;
  }
  .page-title h1 {
    font-size: 32px;
  }
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .reader-menu-left > .text-button .icon {
    display: none;
  }
  .reader-menu-right .toolbar-divider {
    display: none;
  }
  .reader-menu-right {
    gap: 1px;
  }
  .reader-menu {
    padding: 0 8px;
    gap: 4px;
  }
  .reader-menu-right .primary {
    padding: 8px;
  }
  .reader-menu-right .primary .icon {
    display: none;
  }
  .reader-side {
    width: 145px;
  }
  .reader-toolbar {
    padding: 0 7px;
    gap: 4px;
  }
  .toolbar-divider {
    margin: 0 3px;
  }
  .zoom-group .icon-button {
    min-width: 23px;
  }
  .reader-menu-left .text-button {
    font-size: 9px;
  }
  .annotation-tools {
    width: 40px;
  }
  .annotation-tools .icon-button {
    min-width: 28px;
    min-height: 28px;
    padding: 5px;
  }
  .reader-status > span:last-child {
    display: none;
  }
}
@media (max-width: 760px) {
  .app-sidebar {
    transform: translateX(-100%);
    width: 236px;
    transition: transform .2s;
    box-shadow: 0 0 35px #00000020;
  }
  .app-sidebar.mobile-open {
    transform: translateX(0);
  }
  .app-sidebar .brand > span {
    font-size: 18px;
  }
  .app-sidebar .brand small {
    font-size: 8px;
  }
  .app-sidebar .brand img {
    width: 34px;
    height: 34px;
  }
  .app-body {
    margin-left: 0;
    width: 100%;
  }
  .app-header {
    height: 58px;
    padding: 0 15px;
  }
  .header-left > .icon-button {
    display: inline-flex;
  }
  .header-left,
  .header-right {
    gap: 9px;
  }
  .breadcrumb {
    font-size: 10px;
    gap: 7px;
  }
  .header-right > .icon-button:last-child {
    display: none;
  }
  .local-badge {
    font-size: 9px;
    margin-right: 0;
  }
  .home-page,
  .content-page {
    padding: 30px 20px 15px;
  }
  .page-title h1 {
    font-size: 31px;
  }
  .page-title p {
    font-size: 11px;
  }
  .free-tag {
    display: none;
  }
  .hero {
    height: 303px;
  }
  .hero-copy {
    padding: 27px 20px;
  }
  .hero-art {
    width: 36%;
    opacity: .7;
  }
  .hero h2 {
    font-size: 27px;
  }
  .hero p {
    font-size: 10px;
  }
  .hero-actions {
    gap: 4px;
    align-items: flex-start;
    flex-direction: column;
  }
  .hero-actions > .text-button {
    padding: 5px 0;
    font-size: 9px;
  }
  .hero-copy > small {
    margin-top: 9px;
    font-size: 8px;
  }
  .art-paper {
    left: 10px;
    top: 61px;
    width: 165px;
    height: 245px;
  }
  .back-paper {
    left: 25px;
    top: 74px;
  }
  .floating-chip {
    display: none;
  }
  .floating-check {
    top: 25px;
    right: 15px;
    width: 30px;
    height: 30px;
  }
  .hero-art .dot-one {
    right: -70px;
  }
  .hero {
    margin-bottom: 28px;
  }
  .quick-card {
    padding: 17px;
  }
  .quick-card h3 {
    font-size: 12px;
  }
  .quick-card p {
    font-size: 9px;
  }
  .start-section {
    margin-top: 28px;
  }
  .dropzone {
    padding: 18px;
    gap: 13px;
  }
  .dropzone > span {
    display: none;
  }
  .dropzone strong {
    font-size: 11px;
  }
  .dropzone p {
    font-size: 9px;
  }
  .section-heading h2 {
    font-size: 15px;
  }
  .section-heading > a {
    font-size: 9px;
  }
  .section-heading > .text-button {
    font-size: 9px;
  }
  .privacy-strip {
    font-size: 8px;
    align-items: flex-start;
  }
  .privacy-strip > .icon {
    margin-top: 3px;
    flex-shrink: 0;
  }
  .app-footer {
    padding: 18px 20px;
    font-size: 8px;
  }
  .reader-page {
    height: calc(100dvh - 58px);
  }
  .reader-side {
    width: 148px;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 10;
    box-shadow: 2px 0 4px #0000000c;
  }
  .reader-body .reader-side {
    display: none;
  }
  .reader-body.side-visible .reader-side {
    display: flex;
  }
  .reader-body.side-visible.side-hidden .reader-side {
    display: none;
  }
  .reader-menu {
    height: 48px;
    min-height: 48px;
  }
  .reader-menu-left > .text-button {
    font-size: 9px;
    padding: 7px;
  }
  .reader-menu-left > .text-button:nth-child(2) {
    display: none;
  }
  .reader-menu-right > .icon-button {
    min-width: 27px;
    min-height: 27px;
    padding: 5px;
  }
  .reader-menu-right > .primary {
    font-size: 9px;
    padding: 8px 10px;
  }
  .reader-menu-right > .primary span {
    margin: 0;
  }
  .reader-toolbar {
    height: 43px;
    min-height: 43px;
  }
  .toolbar-group .icon-button {
    min-width: 25px;
  }
  .toolbar-group .toolbar-divider {
    display: none;
  }
  .zoom-group > .icon-button[data-action=fullscreen] {
    display: none;
  }
  .page-input {
    width: 30px;
  }
  .page-total {
    padding-right: 2px;
    font-size: 9px;
  }
  #zoom-select {
    width: 95px;
    font-size: 9px;
  }
  .toolbar-group:last-child > .icon-button[data-action=properties] {
    display: none;
  }
  .reader-toolbar {
    gap: 0;
  }
  .document-scroll {
    padding: 20px 15px 40px;
  }
  .annotation-tools {
    width: 38px;
    padding-left: 3px;
    padding-right: 3px;
  }
  .reader-status {
    font-size: 8px;
  }
  .tools-grid {
    gap: 12px;
  }
  .tool-card {
    padding: 17px;
  }
  .tool-card h2 {
    font-size: 13px;
  }
  .tool-card p {
    font-size: 10px;
  }
  .card-go {
    font-size: 9px;
  }
  .settings-panel,
  .help-panel {
    padding: 22px 18px;
  }
  .setting-row {
    gap: 12px;
  }
  .setting-row select {
    width: 140px;
  }
  .setting-row strong {
    font-size: 11px;
  }
  .setting-row small {
    font-size: 10px;
  }
  .help-links {
    flex-wrap: wrap;
  }
  .shortcut-list {
    gap: 13px;
    font-size: 10px;
  }
  .shortcut-list kbd {
    font-size: 8px;
  }
  .organizer {
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
  }
  .organize-thumb {
    height: 125px;
  }
  .modal-header {
    padding: 18px 18px 15px;
  }
  .modal-header h2 {
    font-size: 16px;
  }
  .modal-body {
    padding: 20px 18px;
  }
  .modal-footer {
    padding: 15px 18px;
  }
  #dialog-error {
    padding-left: 18px;
    padding-right: 18px;
  }
  .compare-header {
    flex-direction: column;
    gap: 7px;
  }
}
@media (max-width: 420px) {
  .hero-art {
    width: 29%;
    opacity: .35;
  }
  .hero-copy {
    padding-right: 0;
  }
  .hero-art .art-paper {
    left: 0;
  }
  .hero-copy > small {
    max-width: 195px;
  }
  .quick-card {
    padding: 15px;
  }
  .quick-card h3 {
    font-size: 11px;
  }
  .quick-card p {
    font-size: 8px;
  }
  .section-heading h2 {
    font-size: 13px;
  }
  .section-heading > .text-button {
    font-size: 8px;
  }
  .page-title h1 {
    font-size: 28px;
  }
  .breadcrumb > b {
    max-width: 120px;
  }
  .reader-menu-left > .text-button {
    font-size: 8px;
    padding: 6px 4px;
  }
  .reader-menu-right > .icon-button {
    min-width: 23px;
    padding: 3px;
  }
  .reader-menu-right > .primary {
    font-size: 9px;
    padding: 8px;
  }
  .zoom-group > .icon-button[data-action=rotate] {
    display: none;
  }
  .toolbar-group > .icon-button .icon {
    width: 15px;
    height: 15px;
  }
  .zoom-group > .icon-button {
    min-width: 20px;
    padding: 3px;
  }
  .toolbar-group {
    gap: 0;
  }
  #zoom-select {
    width: 82px;
  }
  .toolbar-group:last-child > .icon-button {
    min-width: 23px;
  }
  .tools-grid {
    grid-template-columns: 1fr;
  }
  .tool-card p {
    min-height: 0;
  }
  .tool-card h2 {
    font-size: 15px;
  }
  .organizer {
    grid-template-columns: repeat(2, 1fr);
  }
  .field-grid {
    gap: 0 12px;
  }
  .setting-row {
    align-items: flex-start;
    flex-direction: column;
  }
  .setting-row select {
    width: 100%;
  }
  .setting-row:has([type=checkbox]) {
    flex-direction: row;
  }
  .dropzone > div {
    min-width: 0;
  }
  .dropzone p {
    font-size: 8px;
  }
  .free-tag {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation-duration: .001ms !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}
.native-note {
  position: absolute;
  pointer-events: auto;
  background: #fff2b4;
  color: #8b702b;
  border: 1px solid #d8be70;
  border-radius: 3px;
  width: 24px;
  height: 24px;
  padding: 3px;
  display: grid;
  place-items: center;
}
.native-note .icon {
  width: 17px;
  height: 17px;
}
.native-note-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.document-options {
  display: grid;
  gap: 8px;
}
.document-options > button {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 13px;
  border: 1px solid var(--line);
  border-radius: 6px;
  text-align: left;
}
.document-options > button:hover {
  background: var(--hover);
}
.document-options > button > .icon:first-child {
  color: var(--accent);
  width: 20px;
  height: 20px;
}
.document-options > button > .icon:last-child {
  margin-left: auto;
  width: 16px;
  height: 16px;
  color: var(--muted);
}
.document-options > button > span {
  min-width: 0;
}
.document-options strong {
  display: block;
  font-size: 12px;
  font-weight: 550;
  overflow-wrap: anywhere;
}
.document-options small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.pdf-page {
  --scale-round-x: 1px;
  --scale-round-y: 1px;
}

/* Editor de conteúdo: páginas nativas, escaneadas e áreas manuais. */
.reader-menu-left .editor-entry { color: var(--accent); font-weight: 650; background: var(--accent-soft); }
dialog.content-editor-modal { width: min(1420px, calc(100vw - 24px)); max-height: 96dvh; }
.content-editor-modal #dialog-form { max-height: 96dvh; }
.content-editor-modal .modal-body { padding: 0; display: flex; flex-direction: column; overflow: hidden; }
.content-editor-modal .modal-header { padding: 16px 22px; }
.content-editor-modal .modal-header h2 { font-size: 18px; }
.content-editor-modal .modal-footer { padding: 13px 22px; }
.editor-intro { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); flex-shrink: 0; }
.editor-intro > div { flex: 1; min-width: 200px; }
.editor-intro strong { display: block; font-size: 11px; font-weight: 600; }
.editor-intro > div > span { display: block; font-size: 10px; color: var(--muted); margin-top: 5px; }
.editor-intro > label { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: 10px; }
.editor-intro select { font-size: 10px; padding: 6px; }
.editor-intro > button { font-size: 10px; padding: 8px 10px; gap: 6px; }
.editor-intro .icon { width: 14px; height: 14px; }
.editor-intro > button.active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) 292px; min-height: 250px; height: min(66dvh, 840px); }
.editor-viewport { background: var(--reader); overflow: auto; padding: 24px; overscroll-behavior: contain; }
.editor-paper { position: relative; margin: 0 auto; box-shadow: 0 1px 6px #00000020; background: white; width: 100%; min-width: 180px; }
#editor-preview { display: block; width: 100%; height: 100%; }
.editor-blocks { position: absolute; inset: 0; pointer-events: none; }
.editor-text-box { position: absolute; pointer-events: auto; border: 1px dashed #2e8b8570; color: #126257; border-radius: 2px; padding: 0; min-width: 5px; min-height: 5px; }
.editor-text-box:hover { border-color: #147a6b; background: #2c9b7310; }
.editor-text-box.selected { border: 2px solid #147a6b; box-shadow: 0 0 0 1px #ffffff80; }
.editor-text-box.modified { border-color: #598cc3; }
.editor-text-box.selected.modified { border-color: #147a6b; }
.editor-text-box > span { display: none; position: absolute; top: -17px; left: -1px; background: #147a6b; color: white; font: 9px sans-serif; padding: 2px 4px; line-height: 1.3; white-space: nowrap; border-radius: 2px 2px 0 0; }
.editor-text-box.selected > span, .editor-text-box:hover > span { display: block; }
.editor-area-layer { position: absolute; inset: 0; cursor: crosshair; touch-action: none; background: #00897b06; }
.editor-area-layer > div { position: absolute; border: 2px dashed #147a6b; background: #147a6b20; }
.editor-controls { overflow: auto; padding: 18px; border-left: 1px solid var(--line); background: var(--surface); min-height: 0; }
.editor-controls .field { margin-bottom: 14px; gap: 6px; font-size: 10px; }
.editor-controls .field input, .editor-controls .field select { padding: 7px 8px; font-size: 11px; }
.editor-controls .field-grid { gap: 0 12px; }
#editor-text { min-height: 105px; max-height: 230px; padding: 10px; font-size: 12px; }
#editor-block-select { width: 100%; font-size: 10px; }
.editor-style-row { display: flex; align-items: center; gap: 6px; margin-bottom: 15px; }
.editor-style-row > select { flex: 1; min-width: 0; padding: 7px 6px; font-size: 10px; }
.style-button { width: 28px; height: 29px; border: 1px solid var(--line); border-radius: 4px; padding: 4px; }
.style-button.active { color: var(--accent); background: var(--accent-soft); border-color: var(--accent); }
.editor-style-row input[type=color] { width: 29px; height: 29px; padding: 2px; cursor: pointer; border-radius: 4px; }
.editor-checks { display: grid; gap: 10px; font-size: 10px; margin: 0 0 18px; }
.editor-checks label { display: flex; gap: 8px; align-items: center; }
.editor-checks input { width: 15px; height: 15px; }
.editor-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 10px 0 16px; padding: 12px 0; }
.editor-details summary { cursor: pointer; font-size: 10px; color: var(--muted); }
.editor-details > .field-grid { margin-top: 17px; }
.editor-bg-label { display: flex; align-items: center; justify-content: space-between; font-size: 10px; gap: 12px; }
.editor-bg-label input { width: 40px; height: 28px; padding: 2px; }
.editor-block-actions { display: grid; gap: 8px; }
.editor-block-actions > button { font-size: 10px; padding: 8px; gap: 7px; }
.editor-block-actions .icon { width: 13px; height: 13px; }
.editor-block-actions .text-button { font-size: 9px; padding: 6px; }
.editor-original { font-size: 9px; color: var(--muted); line-height: 1.6; overflow-wrap: anywhere; margin: 14px 0; max-height: 95px; overflow: auto; }
.editor-no-block { padding: 25px 0; text-align: center; color: var(--muted); }
.editor-no-block > .icon { width: 25px; height: 25px; margin-bottom: 12px; }
.editor-no-block p { font-size: 11px; }
.editor-local-info { display: flex; gap: 7px; align-items: flex-start; margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 9px; line-height: 1.6; }
.editor-local-info .icon { width: 14px; height: 14px; color: var(--accent); flex-shrink: 0; }
.editor-bottom-note { display: flex; gap: 20px; justify-content: space-between; padding: 11px 20px; border-top: 1px solid var(--line); font-size: 9px; line-height: 1.6; color: var(--muted); }
#editor-edit-count { color: var(--accent); font-weight: 550; flex-shrink: 0; }
@media (max-width: 1000px) { .reader-menu-left > .text-button:nth-child(3) { display: none; } .editor-grid { grid-template-columns: minmax(0, 1fr) 260px; } .editor-controls { padding: 14px; } }
@media (max-width: 760px) { .editor-intro { padding: 12px; gap: 8px; } .editor-intro > div { width: 100%; flex-basis: 100%; } .editor-intro > button { font-size: 9px; } .editor-grid { grid-template-columns: minmax(0, 1fr) 230px; height: 60dvh; } .editor-controls { padding: 12px; } .editor-viewport { padding: 16px; } .editor-bottom-note { padding: 10px 12px; font-size: 8px; gap: 12px; } .reader-menu-left > .editor-entry:nth-child(1) { display: inline-flex; } .reader-menu-left > .text-button:nth-child(4) { display: none; } }
@media (max-width: 600px) { .editor-grid { display: flex; flex-direction: column; height: 62dvh; overflow: auto; } .editor-viewport { min-height: 40dvh; height: 40dvh; flex-shrink: 0; } .editor-controls { overflow: visible; border-left: 0; border-top: 1px solid var(--line); padding: 18px; } .editor-bottom-note { flex-direction: column; gap: 4px; } .content-editor-modal .modal-header { padding: 12px 16px; } .content-editor-modal .modal-header h2 { font-size: 15px; } .content-editor-modal .modal-footer { padding: 12px 16px; } .content-editor-modal .modal-footer button { font-size: 10px; padding: 10px; } .editor-style-row > select { flex: 0 1 180px; } }
