:root {
  font-family: Inter, system-ui, sans-serif;
  color: #192a29;
  background: #f4f5ef;
  font-synthesis: none;
  --ink: #192a29;
  --muted: #536662;
  --accent: #245c48;
  --border: #dbe2da;
}
* {
  box-sizing: border-box;
}
[hidden] {
  display: none !important;
}
body {
  margin: 0;
}
button,
select,
input,
textarea {
  font: inherit;
}
button,
.button,
select {
  border: 1px solid #ccd8ce;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  padding: 0.65rem 0.85rem;
  cursor: pointer;
}
button:hover,
.button:hover,
select:hover {
  border-color: var(--accent);
}
:focus-visible {
  outline: 3px solid #487f66;
  outline-offset: 2px;
}
button:disabled {
  opacity: 0.42;
  cursor: default;
}
.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  font-weight: 650;
}
.primary:hover {
  background: #194938;
}
.top {
  background: #fcfdf8;
  border-bottom: 1px solid var(--border);
}
.top-inner,
main {
  max-width: 1240px;
  margin: auto;
  padding-inline: clamp(16px, 4vw, 52px);
}
.top-inner {
  height: 67px;
  display: flex;
  align-items: center;
  gap: 17px;
}
.brand {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.055em;
  text-decoration: none;
  color: inherit;
  display: flex;
  align-items: center;
  gap: 9px;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  color: white;
  background: #245c48;
  border-radius: 7px;
  font-family: Georgia, serif;
  font-size: 22px;
}
.tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.11em;
  color: var(--muted);
}
.credit {
  margin-left: auto;
  color: var(--accent);
  text-underline-offset: 3px;
  font-size: 14px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  padding: 44px 0 21px;
}
h1 {
  font-family: Georgia, serif;
  font-size: clamp(38px, 6vw, 70px);
  font-weight: 400;
  line-height: 0.99;
  letter-spacing: -0.055em;
  margin: 0;
  color: #173930;
}
.intro p {
  max-width: 540px;
  line-height: 1.55;
  color: var(--muted);
  margin: 16px 0 0;
}
.privacy {
  font-size: 14px;
  color: var(--accent);
  font-weight: 650;
  padding-bottom: 4px;
}
.privacy span {
  font-size: 11px;
  margin-right: 5px;
}
.source,
.controls,
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.upload {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
}
.upload:focus-within {
  outline: 3px solid #487f66;
  outline-offset: 2px;
}
#recent {
  max-width: 100%;
}
.notice {
  min-height: 24px;
  font-size: 14px;
  color: var(--accent);
  margin: 10px 0;
}
.notice.error {
  color: #a02b24;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
}
.panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 9px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.panel-head h2 {
  font-size: 17px;
  margin: 0;
}
.panel-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 4px 0 0;
  overflow-wrap: anywhere;
}
.controls {
  flex-wrap: nowrap;
  white-space: nowrap;
  font-size: 14px;
}
.controls button {
  padding: 3px 9px;
}
.surface {
  background: #e5ebe2;
  padding: clamp(9px, 2vw, 25px);
  min-height: 390px;
}
.empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 100px;
  color: var(--muted);
}
.empty h3 {
  margin: 12px 0 0;
  font-size: 16px;
  color: var(--ink);
}
.empty p,
.entry-body p {
  font-size: 14px;
  line-height: 1.55;
}
.paper-icon {
  background: #f8faf5;
  border: 1px solid #bacbbd;
  border-radius: 6px;
  width: 38px;
  height: 47px;
  padding: 11px 8px;
  display: grid;
  gap: 4px;
}
.paper-icon i {
  display: block;
  border-top: 2px solid #8eaa97;
}
#sheet {
  position: relative;
  background: white;
  margin: auto;
  box-shadow: 0 3px 16px #233d2b22;
}
canvas {
  display: block;
  width: 100%;
  height: auto;
}
#overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.marker {
  position: absolute;
  border: 1px solid #24725c;
  background: #49aa8233;
  pointer-events: auto;
  border-radius: 2px;
  padding: 0;
  min-width: 0;
}
.marker:hover,
.marker.active {
  background: #e4ac4666;
  border-color: #915a05;
}
#overlay.drawing {
  pointer-events: auto;
  cursor: crosshair;
  touch-action: none;
}
.drawing .marker {
  pointer-events: none;
}
.selection {
  position: absolute;
  border: 2px dashed #975f0f;
  background: #f1b85744;
}
.entry-body {
  padding: 16px 18px;
  max-height: 610px;
  overflow: auto;
}
#field-help {
  margin: 0 0 12px;
  color: var(--muted);
}
.field {
  border-bottom: 1px solid #e8eee7;
  padding: 12px 0;
}
.field:last-child {
  border: 0;
}
.row {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 7px;
}
.row label {
  font-weight: 650;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.row button {
  padding: 3px 7px;
  font-size: 13px;
}
input:not([type="file"], [type="radio"], [type="checkbox"]),
textarea,
.field select {
  width: 100%;
  border: 1px solid #cad6cd;
  border-radius: 6px;
  padding: 8px;
  color: var(--ink);
  background: #fcfdfb;
}
textarea {
  min-height: 70px;
  resize: vertical;
}
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--accent);
  width: 17px;
  height: 17px;
  vertical-align: middle;
}
.actions {
  padding: 14px 18px;
  border-top: 1px solid var(--border);
  justify-content: flex-end;
}
.editor {
  padding: 12px;
  background: #edf3eb;
  border-radius: 8px;
  margin-bottom: 10px;
  display: grid;
  gap: 8px;
}
.editor label {
  font-size: 14px;
  display: grid;
  gap: 4px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 21px 0 30px;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 740px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .intro {
    align-items: start;
    flex-direction: column;
    padding-top: 29px;
  }
  .surface {
    min-height: 260px;
  }
  .empty {
    padding-top: 55px;
  }
  .tag {
    display: none;
  }
  .entry-body {
    max-height: none;
  }
}
