button.tk-share[data-tk-share] {
  display: inline-flex; align-items: center; justify-content: center; gap: .45em;
  width: auto; min-width: 0; min-height: 40px; margin: 0;
  padding: .55em .9em; border: 1px solid #99aa92; border-radius: 8px;
  color: var(--tk-ink,#163b2a); background: var(--tk-label,#fff8eb); cursor: pointer;
  font: 650 .94rem/1.2 var(--tk-text,system-ui,sans-serif); white-space: nowrap;
}
button.tk-share[data-tk-share]::before {
  content: ""; display: inline-block; width: 1.1em; height: 1.1em; flex: none;
  background-color: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8.6 10.4 6.8-4.1M8.6 13.6l6.8 4.1'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='4.7' r='3'/%3E%3Ccircle cx='18' cy='19.3' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
}
button.tk-share[data-tk-share]:hover { background: #e9eedf; }
dialog.tk-share-dialog {
  box-sizing: border-box; position: fixed; inset: 0; width: min(27rem, calc(100% - 2rem));
  max-height: min(90vh, 50rem); max-height: min(90dvh, 50rem); overflow: auto;
  margin: auto; padding: clamp(1rem,4vw,1.5rem); border: 1px solid #a3ac97; border-radius: 14px;
  color: #173b29; background: #fffaf0; box-shadow: 0 20px 70px #10231745;
  font: 400 1rem/1.45 var(--tk-text,system-ui,sans-serif); text-align: start; z-index: 9999;
}
dialog.tk-share-dialog:not([open]) { display: none; }
dialog.tk-share-dialog::backdrop { background: #15241c78; }
.tk-share-dialog .tk-share-heading { display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.tk-share-dialog h2, .tk-share-dialog h3 { margin: 0; color: #173b29; letter-spacing: -.025em; }
.tk-share-dialog h2 { font: 750 1.45rem/1.2 var(--tk-text,system-ui,sans-serif); }
.tk-share-dialog h2:focus { outline: none; }
.tk-share-dialog h3 { font: 720 1.04rem/1.3 var(--tk-text,system-ui,sans-serif); }
.tk-share-dialog p { margin: .25rem 0 .7rem; font: inherit; color: #4e6153; }
.tk-share-dialog .tk-share-content > p { margin: .65rem 0 1rem; }
.tk-share-dialog .tk-share-section { margin: .85rem 0 0; padding: 1rem 0 0; border-top: 1px solid #d9ddcc; }
.tk-share-dialog .tk-share-controls { display: flex; flex-wrap: wrap; gap: .45rem; color: #4e6153; }
.tk-share-dialog button.tk-share-action, .tk-share-dialog .tk-share-image-link {
  display: inline-flex; align-items: center; justify-content: center; width: auto; margin: 0;
  min-height: 42px; padding: .45rem .85rem; border: 1px solid #a2ad98; border-radius: 7px;
  color: #173b29; background: #fffaf0; font: 650 .94rem/1.25 var(--tk-text,system-ui,sans-serif); cursor: pointer;
}
.tk-share-dialog button.tk-share-action:hover { background: #e9eedf; }
.tk-share-dialog button.tk-share-primary { color: #fffaf0; background: #1b4b31; border-color: #1b4b31; }
.tk-share-dialog button.tk-share-primary:hover { background: #295b3d; }
.tk-share-dialog button.tk-share-action:disabled { opacity: .55; cursor: wait; }
.tk-share-dialog button[data-tk-action="close"] { width: 42px; padding: 0; font-size: 1.6rem; line-height: 1; border-color: transparent; }
.tk-share-dialog .tk-share-link { display: block; box-sizing: border-box; width: 100%; margin: .7rem 0 0; padding: .5rem; border: 1px solid #9aaa91; border-radius: 5px; background: #fff; color: #173b29; font: inherit; }
.tk-share-dialog .tk-share-preview { display: block; width: auto; max-width: 100%; max-height: 32vh; margin: .75rem auto; object-fit: contain; }
.tk-share-dialog .tk-share-image-link { min-height: 35px; font-size: .88rem; }
.tk-share-dialog .tk-share-status { margin: .8rem 0 0; font-size: .93rem; color: #264c38; }
.tk-share-dialog .tk-share-status:empty { margin: 0; }
button.tk-share[data-tk-share]:focus-visible, .tk-share-dialog :is(button,a,input):focus-visible { outline: 3px solid #326e4d; outline-offset: 2px; }
@media print { button.tk-share[data-tk-share], dialog.tk-share-dialog, dialog.tk-share-dialog::backdrop { display: none !important; } }
