.share-studio {
  width: min(860px, calc(100vw - 48px)); max-width: none;
  max-height: calc(100dvh - 48px); padding: 0; border: 0; border-radius: 20px;
  background: #f6f7f4; color: #282d29;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
.share-studio *, .share-studio *::before, .share-studio *::after { box-sizing: border-box; }
.share-studio::backdrop { background: rgb(30 36 30 / 40%); backdrop-filter: blur(5px); }
.share-studio[open] { display: flex; flex-direction: column; overflow: hidden; }
.share-studio [hidden] { display: none !important; }
.share-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 24px 4px; flex-shrink: 0; }
.share-heading h2 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 500; }
.share-workspace { display: flex; flex-direction: column; overflow: auto; min-height: 0; overscroll-behavior: contain; }
.share-proof { display: flex; flex-direction: column; justify-content: center; align-items: center; min-width: 0; padding: 20px 32px 24px; }
.share-canvas-scroll { max-height: min(48dvh, 440px); width: 100%; overflow: auto; overscroll-behavior: contain; }
.share-proof canvas { display: block; max-width: 100%; width: auto; max-height: min(48dvh, 440px); height: auto; margin: 0 auto; box-shadow: 0 12px 32px -12px rgb(37 45 37 / 18%), 0 1px 3px rgb(37 45 37 / 4%); }
.share-proof.is-long .share-canvas-scroll { max-width: 460px; }
.share-proof.is-long canvas { width: 100%; max-height: none; }
.share-pages { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 10px; }
.share-pages output { font-size: 12px; font-variant-numeric: tabular-nums; color: #65705f; }
.share-settings { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 0 28px 12px; }
.share-settings fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.share-visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.share-styles { display: flex; justify-content: safe center; gap: 16px; overflow-x: auto; padding: 7px 5px 10px; scrollbar-width: none; scroll-snap-type: x proximity; }
.share-styles::-webkit-scrollbar { display: none; }
.share-style {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  flex: 0 0 72px; min-width: 0; padding: 0 3px; background: transparent; border: 0;
  color: #65705f; font: inherit; font-size: 11px; line-height: 1.3; cursor: pointer;
  scroll-snap-align: center;
}
.share-style-sample {
  display: grid; align-content: center; width: 64px; height: 64px; padding: 10px 8px;
  overflow: hidden; border: 1px solid rgb(45 52 43 / 7%); border-radius: 1px;
  background: var(--share-paper); color: var(--share-ink);
  font-family: var(--share-font, inherit); font-size: 5px; line-height: 1.55; text-align: left;
  box-shadow: 0 2px 4px rgb(30 40 30 / 3%);
}
.share-style-sample-text {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5;
  overflow: hidden; white-space: pre-wrap; overflow-wrap: anywhere;
}
[data-style="terracotta"] .share-style-sample { text-align: center; }
[data-style="botanical"] .share-style-sample-text { background: var(--share-marker); }
[data-style="journal"] .share-style-sample { border-block-start-color: var(--share-accent); }
.share-style[aria-pressed="true"] { color: #282d29; }
.share-style[aria-pressed="true"] .share-style-sample { outline: 1px solid #677661; outline-offset: 4px; }
.share-style[aria-pressed="true"] > span:last-child { font-weight: 500; }
.share-studio summary { list-style: none; cursor: pointer; }
.share-studio summary::-webkit-details-marker { display: none; }
.share-refinements > summary { width: fit-content; margin: 0 auto; min-height: 44px; display: flex; align-items: center; color: #65705f; font-size: 13px; }
.share-refinements[open] > summary { color: #282d29; }
.share-customize-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 18px 28px; max-width: 580px; margin: 4px auto 12px; padding: 22px 0 4px; border-top: 1px solid #dce1d9; font-size: 13px; }
.share-studio .share-settings select { display: block; width: 100%; min-height: 44px; margin-top: 6px; padding: 8px 10px; border: 1px solid #dce1d9; border-radius: 7px; background: #fff; color: #282d29; font: inherit; font-size: 14px; }
.share-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 13px; }
.share-toggle[hidden] { display: none; }
.share-toggle input { width: 17px; height: 17px; margin: 0; accent-color: #53694e; }
.share-size-label { display: block; color: #65705f; }
.share-settings input[type="range"] { display: block; width: 100%; min-height: 32px; margin-top: 6px; accent-color: #53694e; }
.share-details summary, .share-readable summary { display: flex; align-items: center; min-height: 44px; font-size: 13px; color: #65705f; }
.share-scope, .share-status { font-size: 12px; line-height: 1.55; color: #65705f; margin: 8px 0 0; }
.share-status { text-align: center; }
.share-status:empty { display: none; }
.share-readable { min-width: 0; }
.share-readable pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; font: inherit; font-size: 13px; line-height: 1.65; max-height: 220px; overflow: auto; }
.share-actions { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-shrink: 0; padding: 14px 28px; border-top: 1px solid #e4e7df; }
.share-actions .quiet-button[data-copy-image] { margin-inline-start: auto; white-space: nowrap; min-width: 108px; border: 1px solid #dde3d9; }
.share-export-options > summary { display: flex; align-items: center; min-height: 44px; color: #65705f; font-size: 13px; }
.share-export-menu { position: absolute; bottom: calc(100% - 6px); left: 20px; z-index: 2; display: flex; flex-direction: column; min-width: 190px; padding: 6px; border: 1px solid #e4e7df; border-radius: 10px; background: #fff; box-shadow: 0 8px 30px rgb(25 35 25 / 12%); }
.share-export-menu button { text-align: left; }
.share-export-menu .share-scope { margin: 4px 8px; }
.share-studio .quiet-button, .share-studio .solid-button { min-height: 44px; padding: 9px 14px; border: 0; border-radius: 8px; font: inherit; font-size: 13px; cursor: pointer; }
.share-studio .quiet-button { background: transparent; color: #64715f; }
.share-studio .solid-button { min-width: 176px; color: #fff; background: #3c5138; font-weight: 500; }
.share-studio button:disabled { opacity: .45; cursor: default; }
.share-studio button:active:not(:disabled) { opacity: .75; }
.share-studio :focus-visible { outline: 2px solid #53694e; outline-offset: 4px; }
.share-note-studio { width: min(940px, calc(100vw - 36px)); }
.share-note-studio .share-heading {
  min-height: 58px; padding: 8px 22px; border-bottom: 1px solid #e0e5dc;
}
.share-note-studio .share-heading h2 { font-size: 16px; font-weight: 650; letter-spacing: -.02em; }
.share-note-studio .share-workspace {
  display: grid; grid-template-columns: minmax(0, 1.32fr) minmax(310px, 1fr);
  background: #eef1eb;
}
.share-note-studio .share-proof { align-self: center; gap: 10px; padding: 22px 24px; }
.share-note-studio .share-canvas-scroll {
  max-height: min(60dvh, 540px); max-width: 490px;
  border-radius: 3px; box-shadow: 0 10px 30px -12px rgb(31 40 29 / 24%);
}
.share-note-studio canvas { max-height: min(60dvh, 540px); box-shadow: none; }
.share-note-studio .share-proof.is-long canvas { max-height: none; }
.share-note-studio .share-pages { margin: 0; }
.share-note-studio .share-settings {
  gap: 16px; padding: 20px 22px 12px;
  background: #f9faf7; border-inline-start: 1px solid #e0e5dc;
}
.share-note-studio .share-proof { --share-preview-height: min(60dvh, 540px); }
.share-note-studio .share-proof.is-long { align-self: start; }
.share-note-studio .share-proof.is-long .share-canvas-scroll { max-width: 100%; scrollbar-gutter: stable; }
.share-note-studio .share-canvas-scroll:focus-visible { outline-offset: 2px; }
.share-note-studio canvas { cursor: text; }
.share-photo-feedback { width: min(100%, 490px); }
.share-photo-feedback p { margin: 0; }
.share-photo-feedback p:empty, .share-photo-feedback ul:empty { display: none; }
.share-photo-feedback ul { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.share-photo-feedback li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px;
  padding: 5px 8px; border: 1px solid #c9d2c5; border-radius: 8px;
  background: #f9faf7; color: #435640; font-size: 12px;
}
.share-photo-feedback li > span { margin-inline-end: auto; }
.share-photo-feedback button { min-height: 32px; }
.share-photo-feedback [hidden], .share-photo-feedback[hidden] { display: none; }
.share-preview-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px; }
.share-preview-tools button:hover:not(:disabled) { background: #e2e9de; }
.share-paper-editor { width: min(100%, 490px); box-shadow: 0 10px 30px -12px rgb(31 40 29 / 24%); }
.share-paper-editor textarea {
  display: block; width: 100%; height: var(--share-preview-height); min-height: 180px; resize: none;
  padding: clamp(20px, 5vw, 52px); border: 0; border-radius: 3px;
  background: var(--share-paper, #fffdf8); color: var(--share-ink, #282d29);
  font-family: var(--share-paper-font, system-ui); font-size: clamp(16px, 2vw, 23px); line-height: 1.65;
  overscroll-behavior: contain;
}
.share-paper-editor textarea:focus-visible { outline-offset: -2px; }
.share-settings .share-theme-label { padding: 0; margin-bottom: 7px; font-size: 13px; font-weight: 650; }
.share-tag-options { display: flex; flex-wrap: wrap; gap: 6px; }
.share-tag-options label {
  display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%;
  padding: 5px 9px; border: 1px solid #dce1d9; border-radius: 18px;
  background: #fff; color: #465344; font-size: 12px; cursor: pointer;
}
.share-tag-options label:has(:checked) { background: #eaf0e5; border-color: #a6b39f; }
.share-tag-options input { margin: 0; accent-color: #53694e; }
.share-tag-options span { min-width: 0; overflow-wrap: anywhere; }
.share-note-studio .share-styles {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px;
  padding: 0; overflow: visible;
}
.share-note-studio .share-style {
  gap: 5px; padding: 6px 2px; border: 1px solid #e3e7de; border-radius: 9px;
  background: #fff; text-align: center;
}
.share-note-studio .share-style-sample {
  width: min(100%, 50px); height: 37px; padding: 3px 5px; border-radius: 2px;
}
.share-note-studio .share-style-sample-text { -webkit-line-clamp: 4; }
.share-note-studio .share-style:hover,
.share-note-studio .share-style[aria-pressed="true"] { background: #eaf0e5; border-color: #a6b39f; color: #282d29; }
.share-note-studio .share-style[aria-pressed="true"] .share-style-sample { outline: none; }
.share-note-studio .share-style:focus-visible { outline-offset: -2px; }
.share-note-studio .share-refinements { border-top: 1px solid #e0e5dc; }
.share-note-studio .share-refinements > summary { margin: 0; width: 100%; justify-content: space-between; }
.share-note-studio .share-refinements > summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); margin-right: 3px; }
.share-note-studio .share-refinements[open] > summary::after { transform: rotate(225deg); }
.share-note-studio .share-customize-grid { margin-top: 0; padding-top: 0; border: 0; gap: 12px; }
.share-note-studio .share-status { text-align: start; margin: 0; }
.share-message-actions { display: flex; justify-content: flex-end; gap: 6px; margin-top: 8px; }
.share-message-actions button { font-size: 12px; min-height: 36px; color: #52634f; }
.share-selection-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid #e3e8e3; cursor: pointer; }
.share-selection-row input { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; }
.share-selection-row span { min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.share-selection-row strong { display: block; font-size: 13px; margin-bottom: 5px; }
@media (pointer: coarse) { .share-message-actions button { min-height: 44px; } }
@media (max-width: 700px) {
  .share-studio { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 18px; }
  .share-heading { padding: 10px 16px 0; }
  .share-heading h2 { font-size: 14px; }
  .share-proof { padding: 12px 22px 20px; }
  .share-proof canvas, .share-canvas-scroll { max-height: 43dvh; }
  .share-proof.is-long canvas { max-height: none; }
  .share-settings { padding: 0 16px 4px; }
  .share-styles { justify-content: flex-start; gap: 12px; padding: 7px 6px 10px; }
  .share-style { flex-basis: 64px; }
  .share-style-sample { width: 56px; height: 56px; padding: 9px 7px; }
  .share-customize-grid { gap: 14px; }
  .share-actions { padding: 10px 18px; gap: 20px; }
  .share-actions:has([data-copy-image]) { column-gap: 8px; padding-inline: 12px; }
  .share-actions .quiet-button[data-copy-image] { min-width: 98px; padding-inline: 8px; }
  .share-actions [data-share] { flex: 1; min-width: 0; max-width: 230px; }
  .share-note-studio { width: calc(100vw - 16px); }
  .share-note-studio .share-heading { min-height: 52px; padding: 4px 16px; }
  .share-note-studio .share-workspace { display: flex; }
  .share-note-studio .share-proof, .share-note-studio .share-proof.is-long { align-self: stretch; padding: 14px 14px 18px; }
  .share-note-studio canvas, .share-note-studio .share-canvas-scroll { max-height: 43dvh; }
  .share-note-studio .share-settings { padding: 12px 16px 4px; border-inline-start: 0; border-block-start: 1px solid #e0e5dc; }
  .share-note-studio .share-proof { --share-preview-height: 43dvh; }
}
