:root {
  color-scheme:light;
  --paper:#f7f7f2;
  --surface:#fff;
  --ink:#263c34;
  --muted:#6d776f;
  --green:#1c5949;
  --line:#e4e8df;
  --soft:#eff3ed;
  font-family:Arial,Helvetica,sans-serif;
  font-size:16px;
  color:var(--ink);
  background:var(--paper)
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  height:100dvh;
  min-height:520px;
  display:flex;
  flex-direction:column
}
button,a,textarea {
  -webkit-tap-highlight-color:transparent
}
button {
  font:inherit;
  cursor:pointer
}
a {
  color:inherit
}
button:disabled {
  cursor:default
}
button:focus-visible,a:focus-visible,textarea:focus-visible,summary:focus-visible {
  outline:3px solid #9cbea8;
  outline-offset:4px
}
svg {
  width:20px;
  height:20px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex-shrink:0
}
.icon-definitions {
  position:absolute;
  width:0;
  height:0;
  overflow:hidden
}
.app-shell {
  max-width:1120px;
  width:100%;
  margin:0 auto;
  padding:0 20px 16px;
  flex:1;
  min-height:0;
  display:flex
}
main {
  display:flex;
  flex:1;
  min-width:0;
  min-height:0
}
.site-header {
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-shrink:0;
  min-height:60px;
  padding:10px 16px
}
.brand {
  display:inline-flex;
  gap:9px;
  align-items:center;
  font-size:21px;
  letter-spacing:-1px;
  font-weight:700;
  text-decoration:none
}
.brand-mark {
  display:grid;
  place-items:center;
  width:32px;
  height:32px;
  border-radius:9px;
  background:var(--green);
  color:#fffdf8;
  font:700 25px Georgia,serif;
  letter-spacing:-3px;
  padding-right:3px;
  padding-bottom:3px
}
.brand-mark span {
  display:none
}
.brand-period {
  color:#7b9e69
}
.status-dot {
  display:inline-block;
  width:6px;
  height:6px;
  flex-shrink:0;
  background:#81a879;
  border-radius:50%
}
.workspace {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  min-width:0;
  background:var(--surface);
  border:1px solid #dce3d8;
  border-radius:15px;
  box-shadow:0 6px 26px #34473205;
  overflow:hidden
}
.document-heading {
  display:flex;
  flex-shrink:0;
  align-items:center;
  justify-content:space-between;
  padding:10px 25px
}
.document-heading>div {
  display:flex;
  align-items:center;
  gap:9px
}
.document-dot {
  width:8px;
  height:8px;
  background:#91a482;
  border-radius:2px
}
h2 {
  font-size:.9375rem;
  font-weight:600;
  margin:0
}
.text-button {
  font-size:.875rem;
  border:0;
  background:transparent;
  color:var(--muted);
  padding:8px 2px
}
.text-button:hover {
  color:var(--green);
  text-decoration:underline
}
.toolbar {
  display:flex;
  flex-shrink:0;
  gap:12px;
  align-items:center;
  background:#fafbf8;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  padding:8px 19px;
  overflow-x:auto
}
.tool-group {
  display:flex;
  gap:4px
}
.tool {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:36px;
  height:36px;
  border:0;
  border-radius:6px;
  color:#536259;
  background:transparent;
  flex-shrink:0
}
.tool:hover {
  background:#eaf0e6;
  color:var(--green)
}
.tool[aria-pressed=true] {
  background:#e1ebdd;
  color:var(--green)
}
.text-tool {
  font-family:Georgia,serif;
  font-size:1.25rem
}
.bold-tool {
  font-weight:bold
}
.italic-tool {
  font-style:italic
}
.strike-tool {
  text-decoration:line-through
}
.tool-divider {
  height:20px;
  width:1px;
  background:#dde4d8;
  flex-shrink:0
}
.editor-wrap {
  position:relative;
  flex:1;
  min-height:0;
  display:flex;
  flex-direction:column
}
.editor {
  font-family:Consolas,'Courier New',monospace;
  font-size:11pt;
  line-height:1.8;
  min-height:0;
  padding:27px 30px;
  outline:0;
  overflow-wrap:anywhere;
  overflow-y:auto;
  overscroll-behavior-y:contain;
  scrollbar-gutter:stable;
  white-space:pre-wrap;
  flex:1;
  color:#34423b;
  caret-color:var(--green)
}
.editor:focus {
  box-shadow:inset 3px 0 0 #b7cbaa
}
.editor.is-empty:before {
  content:attr(data-placeholder);
  color:#9ba297;
  position:absolute;
  pointer-events:none;
  max-width:calc(100% - 60px)
}
.editor p {
  margin:0 0 .85em
}
.editor p:last-child {
  margin-bottom:0
}
.editor ul,.editor ol {
  margin:.5em 0;
  padding-left:1.6em
}
.editor li {
  padding-left:.25em
}
.editor li>p {
  margin:0
}
.editor li ul,.editor li ol {
  margin:0
}
.editor ul {
  list-style-type:disc
}
.editor ul ul {
  list-style-type:circle
}
.editor ul ul ul {
  list-style-type:square
}
.example-button {
  position:absolute;
  bottom:27px;
  left:30px;
  display:flex;
  align-items:center;
  gap:7px;
  border:0;
  padding:5px 0;
  background:transparent;
  font-size:.875rem;
  color:#7e8d70
}
.example-button:hover {
  color:var(--green)
}
.example-button svg {
  width:17px
}
.example-button[hidden] {
  display:none
}
.editor-status {
  display:flex;
  flex-shrink:0;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
  color:var(--muted);
  font-size:.875rem;
  padding:14px 25px;
  border-top:1px solid #f0f2ed
}
.editor-status>span:first-child {
  display:flex;
  align-items:center;
  gap:7px
}
#word-count>span {
  padding:0 6px;
  color:#a6afa1
}
.copy-bar {
  display:flex;
  flex-shrink:0;
  align-items:center;
  justify-content:flex-end;
  background:#f5f7f1;
  border-top:1px solid var(--line);
  padding:13px 25px
}
.copy-actions {
  display:flex;
  gap:10px
}
.button {
  display:inline-flex;
  justify-content:center;
  align-items:center;
  gap:9px;
  font-size:.875rem;
  font-weight:600;
  min-height:45px;
  padding:11px 18px;
  border-radius:7px;
  border:1px solid transparent;
  transition:background .15s,transform .15s
}
.button:active {
  transform:translateY(1px)
}
.button-primary {
  background:var(--green);
  color:white
}
.button-primary:hover {
  background:#164b3d
}
.button-secondary {
  border-color:#d5dfce;
  background:#fff;
  color:#405b40
}
.button-secondary:hover {
  background:#ecf1e8
}
.button:disabled {
  opacity:.52;
  transform:none
}
.tips {
  position:relative;
  font-size:.875rem;
  color:var(--muted)
}
.tips summary {
  cursor:pointer;
  padding:9px 10px;
  border-radius:6px
}
.tips summary:hover,.tips[open] summary {
  color:var(--green);
  background:var(--soft)
}
.tips-panel {
  position:absolute;
  top:calc(100% + 6px);
  right:0;
  width:360px;
  max-width:calc(100vw - 32px);
  max-height:calc(100dvh - 74px);
  overflow-y:auto;
  padding:18px 20px;
  border:1px solid var(--line);
  border-radius:10px;
  background:var(--surface);
  box-shadow:0 8px 28px #223b321c;
  line-height:1.9;
  z-index:2
}
.tips-panel p {
  margin:0 0 12px
}
.tips-panel p:last-child {
  margin-bottom:0
}
kbd {
  font:inherit;
  color:#57674f
}
.privacy {
  display:flex;
  align-items:center;
  gap:6px;
  flex-shrink:0
}
.privacy svg {
  width:14px;
  height:14px
}
.toast {
  position:fixed;
  bottom:26px;
  left:50%;
  transform:translate(-50%,12px);
  opacity:0;
  pointer-events:none;
  background:#243e32;
  color:#fff;
  padding:13px 21px;
  border-radius:9px;
  box-shadow:0 8px 28px #223b3220;
  font-size:.9375rem;
  line-height:1.5;
  text-align:center;
  max-width:calc(100vw - 32px);
  width:max-content;
  z-index:3;
  transition:opacity .18s,transform .18s
}
.toast.visible {
  opacity:1;
  transform:translate(-50%,0)
}
dialog {
  border:1px solid var(--line);
  border-radius:12px;
  padding:25px;
  width:min(520px,calc(100vw - 32px));
  color:var(--ink)
}
dialog::backdrop {
  background:#19302855
}
dialog h2 {
  font-size:1.25rem
}
dialog p {
  font-size:1rem;
  line-height:1.6;
  color:var(--muted)
}
dialog textarea {
  width:100%;
  height:240px;
  font:1rem/1.6 monospace;
  padding:12px;
  border:1px solid #bccbb3;
  border-radius:6px;
  margin:0 0 15px
}
@media(max-width:900px) {
  .app-shell {
    padding:0 16px 12px
  }
  .copy-actions {
    width:100%
  }
  .copy-actions .button {
    flex:1
  }
}
@media(max-width:600px) {
  .app-shell {
    padding:0 10px 10px
  }
  .site-header {
    min-height:56px;
    padding:8px 12px
  }
  .document-heading {
    padding:8px 17px
  }
  .toolbar {
    gap:7px;
    padding:7px 11px
  }
  .tool-group {
    gap:1px
  }
  .tool {
    width:31px;
    height:38px
  }
  .undo-tool {
    display:none
  }
  .tool-divider {
    height:19px
  }
  .editor {
    padding:22px 20px
  }
  .editor.is-empty:before {
    max-width:calc(100% - 40px)
  }
  .example-button {
    left:20px;
    bottom:23px
  }
  .editor-status {
    padding:13px 17px;
    gap:8px
  }
  .copy-bar {
    padding:12px 17px
  }
  .copy-actions {
    flex-direction:column;
    gap:9px
  }
  .copy-actions .button-primary {
    order:-1
  }
  .button {
    font-size:.9375rem;
    min-height:47px
  }
  .workspace {
    border-radius:11px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
