.tm-guest-welcome,.tm-guest-history,.tm-memory-dialog,.tm-memory{
  color:#244638;font:400 15px/1.55 system-ui,sans-serif
}
.tm-guest-welcome{
  padding:clamp(18px,4vw,32px);margin:0 0 16px;border:1px solid #dce1d4;
  border-radius:18px;background:#fffefa
}
.tm-guest-welcome h1{
  margin:2px 0 8px;font:600 clamp(30px,6vw,48px)/1.1 Georgia,serif;overflow-wrap:anywhere
}
.tm-guest-welcome p{margin:4px 0;overflow-wrap:anywhere}
.tm-guest-welcome .tm-memory-connection{margin:10px 0 0;color:#52665a;font-size:13px}
.tm-guest-actions button:disabled{opacity:.55;cursor:default}
.tm-guest-actions button:disabled:hover{filter:none}
.tm-guest-actions{display:grid;gap:8px;margin:18px 0 0}
.tm-guest-actions :is(button,a),.tm-guest-history button,.tm-memory-dialog button,.tm-memory button{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;
  color:#244638;background:#fffefa;border:1px solid #ced9cb;border-radius:9px;
  font:650 14px/1.25 system-ui,sans-serif;text-decoration:none;text-align:center;cursor:pointer
}
.tm-guest-welcome .primary,.tm-memory-dialog .primary,.tm-memory .primary{background:#224739;border-color:#224739;color:#fffefa}
.tm-guest-actions :is(button,a):hover,.tm-guest-history button:hover,.tm-memory button:hover{filter:brightness(.96)}
.tm-guest-history{margin:18px 0 0;padding:16px 0 0;border-top:1px solid #e1e7dd;scroll-margin-top:10px}
.tm-guest-history h2,.tm-memory-heading h2{margin:0 0 12px;font:700 18px/1.3 system-ui,sans-serif}
.tm-guest-stories,.tm-guest-photos,.tm-memory-list{display:grid;gap:10px;margin-bottom:12px}
.tm-guest-stories article,.tm-memory .tm-memory-card{
  margin:0;padding:12px;border:1px solid #dce1d4;border-radius:12px;background:#fffefa
}
.tm-guest-stories h3,.tm-memory .tm-memory-card h3{margin:0 0 4px;font:700 16px/1.3 system-ui,sans-serif}
.tm-guest-stories p,.tm-memory-story{white-space:pre-wrap;overflow-wrap:anywhere}
.tm-guest-photos{grid-template-columns:repeat(auto-fit,minmax(min(125px,100%),1fr))}
.tm-guest-photos figure{margin:0}
.tm-guest-photos img{display:block;width:100%;height:140px;object-fit:cover;border-radius:10px}
.tm-guest-welcome :focus-visible,.tm-memory :focus-visible{outline:2px solid #26654b;outline-offset:3px}
.tm-memory-dialog{
  position:fixed;inset:0;width:min(520px,calc(100% - 24px));max-height:90dvh;
  padding:16px;margin:auto;border:1px solid #dce1d4;border-radius:16px;background:#fffefa
}
.tm-memory-dialog::backdrop{background:#142c24ad}
.tm-memory-heading{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.tm-memory-heading h2{margin:0}
.tm-memory-form{display:grid;gap:10px}
.tm-memory-form label{display:grid;gap:4px;font-size:14px}
.tm-memory-form .tm-memory-consent{display:flex;align-items:flex-start;gap:8px}
.tm-memory-form input:not([type=checkbox]),.tm-memory-form textarea{
  width:100%;min-width:0;padding:8px;border:1px solid #ced9cb;border-radius:8px;
  color:#244638;background:white;font:inherit
}
.tm-memory-dialog [hidden],.tm-guest-history[hidden]{display:none}
.tm-memory audio,.tm-memory-dialog audio{width:100%;max-width:420px;display:block;margin:8px 0}
.tm-memory-card img{display:block;max-width:min(100%,320px);max-height:270px;object-fit:contain;border-radius:8px}
.tm-memory-actions{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0}
.tm-memory-status:empty,.tm-memory-form small:empty{display:none}
@media(min-width:620px){.tm-guest-actions{grid-template-columns:repeat(auto-fit,minmax(178px,1fr))}}
.tm-memorial-memories{max-width:760px;margin:0 auto 18px}
.tm-memorial-memories h2{margin:0;font:700 19px/1.3 system-ui,sans-serif}

.tm-guest-entry{display:flex;flex-wrap:wrap;align-items:flex-start;gap:8px;margin-top:12px}
.tm-guest-entry > a,.tm-guest-entry .tm-app-install button{
  display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 12px;
  color:#244638;background:#fffefa;border:1px solid #ced9cb;border-radius:9px;
  font:650 14px/1.25 system-ui,sans-serif;text-decoration:none;text-align:center;cursor:pointer
}
html[data-tamyr-installed="true"] .tm-app-install,html[data-tamyr-installed="true"] #install-panel{display:none!important}
.tm-app-install-note:not([hidden]){max-width:36em;padding:8px 10px;margin:8px 0 0;background:#eef3ea;color:#244638;border-radius:8px;font:400 13px/1.5 system-ui,sans-serif}
