:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #252821; background: #f4f3ed; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.sheet { max-width: 780px; margin: clamp(24px, 9vh, 96px) auto 28px; padding: 0 24px; }
header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 22px; }
h1 { font: 400 clamp(42px, 8vw, 60px)/1.05 "PT Serif", Georgia, serif; letter-spacing: -.055em; margin: 0; }
a { color: #315640; text-underline-offset: 4px; }
form { background: #fffefa; border: 1px solid #ddded4; border-radius: 16px; overflow: hidden; box-shadow: 0 12px 38px #24281c0a; }
.editor-bar, .actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; }
.editor-bar { border-bottom: 1px solid #e9eae1; }
.editor-bar > label { font-weight: 600; }
.edit-actions { display: flex; gap: 8px; }
button, select, input { font: inherit; }
button, select { min-height: 42px; padding: 8px 12px; border: 1px solid #ddded4; border-radius: 7px; background: #f7f7f1; color: inherit; }
button { cursor: pointer; }
button:hover { background: #edf0e7; }
button:disabled { opacity: .58; cursor: wait; }
textarea { display: block; width: 100%; min-height: clamp(230px, 39vh, 430px); resize: vertical; border: 0; padding: 16px; background: #fffefa; color: inherit; font: 16px/1.6 "IBM Plex Mono", ui-monospace, Consolas, monospace; }
.meter { padding: 2px 16px 12px; text-align: right; color: #5b6255; font-size: .8rem; }
.meter[data-invalid] { color: #a02b25; }
.actions { background: #f9f9f4; border-top: 1px solid #e9eae1; }
.actions label { display: flex; align-items: center; gap: 8px; }
.primary { background: #254c37; border-color: #254c37; color: #fff; }
.primary:hover { background: #356044; }
#share span { margin-left: 7px; }
#result { border-top: 1px solid #e9eae1; padding: 14px 16px; }
.link-row { display: flex; gap: 8px; margin: 6px 0; }
input { min-width: 0; flex: 1; padding: 8px; border: 1px solid #ddded4; border-radius: 7px; color: #253e2d; background: #fff; }
#expiry, #status { margin: 8px 0 0; font-size: .85rem; color: #50594b; }
#status { margin: 0; padding: 10px 16px 14px; }
:focus-visible { outline: 2px solid #557c54; outline-offset: -2px; }
@media (max-width: 460px) {
  .sheet { padding: 0 14px; }
  header { margin-bottom: 16px; }
  .editor-bar, .actions { padding: 10px 12px; }
  .edit-actions { gap: 5px; }
  button, select { font-size: .875rem; }
  .link-row { flex-direction: column; }
  input { min-height: 44px; }
}
