.memory-gallery-actions{flex-wrap:wrap;align-items:center;gap:10px;display:flex}.memory-gallery-actions>.button{min-height:44px}.add-memory-dialog{border:1px solid var(--line);width:min(640px,100% - 24px);max-height:calc(100dvh - 24px);color:var(--foreground);background:#fff;border-radius:6px;margin:auto;padding:0;overflow:hidden}.add-memory-dialog::backdrop{background:#14241bb3}.add-memory-frame{grid-template-rows:auto minmax(0,1fr) auto;height:min(800px,100dvh - 26px);display:grid}.add-memory-header,.add-memory-footer{align-items:center;gap:12px;padding:18px 24px;display:flex}.add-memory-header{border-bottom:1px solid var(--line);justify-content:space-between}.memorial-site .add-memory-header h2{font-size:24px}.add-memory-header .icon-button{flex:0 0 44px}.add-memory-footer{border-top:1px solid var(--line);justify-content:flex-end}.add-memory-footer .button{white-space:normal;min-height:44px}.add-memory-body{overscroll-behavior:contain;overflow-wrap:anywhere;min-height:0;padding:20px 24px;overflow-y:auto}.add-memory-body fieldset{border:0;min-width:0;margin:0;padding:0}.add-memory-body label{margin-block:16px 8px;font-size:14px;font-weight:600;display:block}.add-memory-body input:not([type=file]),.add-memory-body textarea{width:100%;min-height:44px;font:inherit;color:var(--foreground);background:#fff;border:1px solid #b9c6bf;border-radius:4px;padding:10px 12px;font-size:16px;display:block}.add-memory-body textarea{resize:vertical}.add-memory-body .add-memory-note{color:var(--muted);margin-block:10px;font-size:13px;line-height:1.7}.add-memory-modes{background:#edf1ee;border-radius:5px;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;margin-block:22px;padding:4px;display:grid}.add-memory-modes button{min-height:44px;font:inherit;background:0 0;border:1px solid #0000;border-radius:3px;justify-content:center;align-items:center;gap:8px;padding:8px;font-size:14px;display:flex}.add-memory-modes button[aria-pressed=true]{color:var(--green);background:#fff;border-color:#b9c6bf}.add-memory-modes svg{flex-shrink:0}.add-memory-picker{width:100%;min-height:90px;color:var(--green);font:inherit;background:#f6f9f7;border:1px dashed #84998c;border-radius:4px;justify-content:center;align-items:center;gap:12px;padding:16px;font-size:14px;display:flex}.add-memory-files{margin:16px 0 0;padding:0;list-style:none}.add-memory-files li{border-top:1px solid var(--line);padding-block:16px}.add-memory-files img,.add-memory-files video{aspect-ratio:16/9;object-fit:contain;background:#eef1ef;border-radius:4px;width:100%;height:auto;display:block}.add-memory-file-heading{justify-content:space-between;align-items:center;gap:12px;font-size:13px;display:flex}.add-memory-file-heading span{min-width:0}.add-memory-file-heading button{flex:0 0 44px}.add-memory-link-preview{margin-block:16px}.add-memory-link-preview iframe{aspect-ratio:16/9;border:0;width:100%;display:block}.add-memory-link-preview a{min-height:44px;color:var(--green);align-items:center;gap:8px;font-size:14px;text-decoration:underline;display:inline-flex}.add-memory-error{color:#a32929;margin-block:16px;font-size:14px;line-height:1.7}.add-memory-body progress{width:100%;accent-color:var(--green)}.add-memory-confirmation{gap:18px;padding-block:24px;line-height:1.8;display:grid}.add-memory-confirmation svg{color:var(--green)}.add-memory-confirmation h3{font-size:23px}@media (max-width:480px){.add-memory-header,.add-memory-footer{padding:12px}.add-memory-body{padding:16px}.add-memory-footer{gap:8px}.add-memory-footer .button{padding-inline:12px;font-size:14px}}
