/* com_dedsafe — front-end styles. Uses the template's brand tokens where present,
   with safe fallbacks so it still looks right under any template. */
.dedsafe-home {
	--c-teal:  var(--ds-teal, #0e4251);
	--c-peach: var(--ds-peach, #e8aa6f);
	--c-mist:  var(--ds-mist, #cbd1c5);
	--c-cream: var(--ds-cream-100, #fbf7f2);
	--c-ink:   var(--ds-ink, #14313a);
	--c-soft:  var(--ds-ink-soft, #4c5f66);
	--c-line:  var(--ds-line, #e4dccf);
}

.dedsafe-hero { text-align: center; padding: clamp(1.5rem, 5vw, 3rem) 0 clamp(2rem, 5vw, 3rem); }
.dedsafe-hero__eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--c-peach);
	margin-bottom: 0.75rem;
}
.dedsafe-hero__title { font-size: clamp(2rem, 4.5vw, 3rem); margin: 0 0 0.5rem; color: var(--c-teal); }
.dedsafe-hero__intro { font-size: 1.2rem; color: var(--c-soft); max-width: 60ch; margin: 0 auto 1.75rem; }
.dedsafe-hero__actions { display: flex; gap: 0.9rem; justify-content: center; flex-wrap: wrap; }

.dedsafe-pillars {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 1.5rem;
	margin: 2.5rem 0 3rem;
}
.dedsafe-pillar {
	background: var(--c-cream);
	border: 1px solid var(--c-line);
	border-radius: 18px;
	padding: 2rem 1.5rem;
	text-align: center;
	transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.dedsafe-pillar:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 34px rgba(14, 66, 81, 0.12);
	border-color: var(--c-peach);
}
.dedsafe-pillar__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	margin-bottom: 1.1rem;
	border-radius: 50%;
	background: var(--ds-white, #fff);
	border: 1px solid var(--c-line);
	box-shadow: 0 6px 16px rgba(14, 66, 81, 0.06);
}
.dedsafe-pillar__icon svg { width: 46px; height: 46px; display: block; }
.dedsafe-pillar__title { font-size: 1.35rem; margin: 0 0 0.6rem; color: var(--c-teal); }
.dedsafe-pillar p { margin: 0; color: var(--c-soft); line-height: 1.6; }

.dedsafe-reassure {
	text-align: center;
	border-top: 2px solid var(--c-mist);
	padding-top: 1.75rem;
}
.dedsafe-reassure__line { font-size: 1.15rem; color: var(--c-ink); max-width: 55ch; margin: 0 auto; }

.dedsafe-admin__lead { font-size: 1.05rem; color: #4c5f66; margin-bottom: 1rem; }

/* ===== 0.2.0 Safe & Drawers ===== */
.dedsafe-wizard, .dedsafe-formwrap { max-width: 720px; margin: 0 auto; padding: 1rem 0 2rem; }
.dedsafe-wizard__title, .dedsafe-wizard__lead { text-align: center; }
.dedsafe-wizard__title { font-size: clamp(1.9rem, 4vw, 2.6rem); color: var(--ds-teal, #0e4251); margin: 0 0 0.5rem; }
.dedsafe-wizard__lead { font-size: 1.2rem; color: var(--ds-ink-soft, #4c5f66); margin: 0 auto 1.5rem; max-width: 56ch; }
.dedsafe-wizard__panel {
	background: var(--ds-white, #fff);
	border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 16px;
	box-shadow: 0 10px 34px rgba(14,66,81,0.10);
	padding: clamp(1.5rem, 4vw, 2.5rem);
	text-align: left;
}
.dedsafe-wizard__hint { font-weight: 600; color: var(--ds-teal, #0e4251); margin-top: 0; }
.dedsafe-wizard__list { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.dedsafe-wizard__list li { margin-bottom: 0.5rem; color: var(--ds-ink, #14313a); }
.dedsafe-wizard__reassure { color: var(--ds-ink-soft, #4c5f66); font-style: italic; margin-bottom: 1.5rem; }

.dedsafe-form { display: block; }
.dedsafe-form label { display: block; text-align: left; font-size: 1.1rem; margin-bottom: 0.4rem; }
.dedsafe-form input[type="text"] { font-size: 1.15rem; }
.dedsafe-form__big { font-size: 1.2rem; padding: 0.9rem 2rem; width: 100%; }
.dedsafe-form__actions { display: flex; gap: 0.75rem; margin-top: 1.25rem; flex-wrap: wrap; }

.dedsafe-safe__head {
	display: flex; align-items: flex-end; justify-content: space-between;
	gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.dedsafe-safe__title { margin: 0; color: var(--ds-teal, #0e4251); font-size: clamp(1.8rem, 4vw, 2.4rem); }
.dedsafe-safe__sub { margin: 0.25rem 0 0; color: var(--ds-ink-soft, #4c5f66); }
.dedsafe-empty { color: var(--ds-ink-soft, #4c5f66); font-size: 1.1rem; }

.dedsafe-drawers {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 1.25rem;
}
.dedsafe-drawer-card {
	display: flex; flex-direction: column; gap: 0.4rem;
	background: var(--ds-white, #fff);
	border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 16px;
	padding: 1.5rem;
	text-decoration: none;
	color: var(--ds-ink, #14313a);
	box-shadow: 0 6px 20px rgba(14,66,81,0.07);
	transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
	min-height: 150px;
}
.dedsafe-drawer-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 32px rgba(14,66,81,0.14);
	border-color: var(--ds-peach, #e8aa6f);
	color: var(--ds-ink, #14313a);
}
.dedsafe-drawer-card__icon { font-size: 2rem; line-height: 1; }
.dedsafe-drawer-card__title { font-size: 1.3rem; font-weight: 700; color: var(--ds-teal, #0e4251); }
.dedsafe-drawer-card__blurb { font-size: 0.95rem; color: var(--ds-ink-soft, #4c5f66); flex-grow: 1; }
.dedsafe-drawer-card__count {
	font-size: 0.85rem; font-weight: 600; color: var(--ds-slate-text, #3f5b67);
	border-top: 1px solid var(--ds-line, #e4dccf); padding-top: 0.5rem;
}

.dedsafe-crumb { margin: 0 0 1rem; }
.dedsafe-crumb a { font-weight: 600; text-decoration: none; }
.dedsafe-drawer__tools { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.dedsafe-inline-form { display: inline; margin: 0; }
.dedsafe-danger { border-color: #b4472f !important; color: #b4472f !important; background: transparent !important; }
.dedsafe-danger:hover { background: #fbece7 !important; color: #b4472f !important; }

.dedsafe-empty-panel {
	text-align: center;
	background: var(--ds-cream-100, #fbf7f2);
	border: 2px dashed var(--ds-mist, #cbd1c5);
	border-radius: 16px;
	padding: clamp(2rem, 6vw, 3.5rem);
	margin-top: 1.5rem;
}
.dedsafe-empty-panel__icon { font-size: 3rem; display: block; margin-bottom: 0.75rem; }
.dedsafe-empty-panel h2 { color: var(--ds-teal, #0e4251); margin: 0 0 0.5rem; }
.dedsafe-empty-panel p { color: var(--ds-ink-soft, #4c5f66); max-width: 46ch; margin: 0 auto; }

.dedsafe-items { list-style: none; padding: 0; margin: 1.5rem 0; }
.dedsafe-item {
	padding: 0.9rem 1rem; border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 10px; margin-bottom: 0.6rem; background: var(--ds-white, #fff);
}

/* ===== 0.3.0 App nav, Notes, Diary ===== */
.dedsafe-app { --c-teal: var(--ds-teal, #0e4251); --c-peach: var(--ds-peach, #e8aa6f); --c-mist: var(--ds-mist, #cbd1c5); --c-line: var(--ds-line, #e4dccf); --c-soft: var(--ds-ink-soft, #4c5f66); }

.dedsafe-appnav { margin: 0 0 2rem; border-bottom: 2px solid var(--ds-mist, #cbd1c5); }
.dedsafe-appnav ul { list-style: none; display: flex; gap: 0.5rem; margin: 0; padding: 0; flex-wrap: wrap; }
.dedsafe-appnav a {
	display: block; padding: 0.7rem 1.15rem; text-decoration: none; font-weight: 600;
	color: var(--ds-teal, #0e4251); border-radius: 10px 10px 0 0; border-bottom: 3px solid transparent;
}
.dedsafe-appnav a:hover { background: var(--ds-cream-100, #fbf7f2); }
.dedsafe-appnav .is-active a { border-bottom-color: var(--ds-peach, #e8aa6f); background: var(--ds-cream-100, #fbf7f2); }

.dedsafe-section-h { font-size: 1.2rem; color: var(--ds-slate-text, #3f5b67); margin: 2rem 0 1rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Notes board */
.dedsafe-notes-board { columns: 3 260px; column-gap: 1.25rem; }
.dedsafe-note {
	break-inside: avoid; margin: 0 0 1.25rem; padding: 1.25rem; border-radius: 14px;
	border: 1px solid rgba(0,0,0,0.05); box-shadow: 0 6px 18px rgba(14,66,81,0.08); position: relative;
}
.dedsafe-note--butter { background: #fdf3cf; }
.dedsafe-note--sage   { background: #dfe8dd; }
.dedsafe-note--peach  { background: #f9ddc6; }
.dedsafe-note--sky    { background: #d9e6ec; }
.dedsafe-note--blush  { background: #f6dde1; }
.dedsafe-note.is-pinned { box-shadow: 0 8px 22px rgba(14,66,81,0.16); outline: 2px solid var(--ds-peach, #e8aa6f); }
.dedsafe-note__pin { position: absolute; top: -10px; right: 10px; font-size: 1.4rem; }
.dedsafe-note__title { margin: 0 0 0.5rem; font-size: 1.2rem; color: var(--ds-teal, #0e4251); }
.dedsafe-note__body { color: #33403b; line-height: 1.55; white-space: normal; }
.dedsafe-note__tools { display: flex; gap: 0.5rem; margin-top: 1rem; flex-wrap: wrap; }
.dedsafe-note__btn {
	background: rgba(255,255,255,0.6); border: 1px solid rgba(0,0,0,0.08); border-radius: 8px;
	padding: 0.35rem 0.7rem; font-size: 0.85rem; font-weight: 600; cursor: pointer; text-decoration: none;
	color: var(--ds-teal, #0e4251); font-family: inherit;
}
.dedsafe-note__btn:hover { background: #fff; }
.dedsafe-note__btn--danger { color: #b4472f; }

/* Colour picker */
.dedsafe-colours { border: 0; padding: 0; margin: 1.25rem 0; }
.dedsafe-colours legend { font-weight: 600; color: var(--ds-teal, #0e4251); margin-bottom: 0.5rem; padding: 0; }
.dedsafe-colour { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0 0.75rem 0.5rem 0; cursor: pointer; }
.dedsafe-colour span { padding: 0.3rem 0.6rem; border-radius: 8px; border: 2px solid transparent; }
.dedsafe-colour--butter span { background: #fdf3cf; }
.dedsafe-colour--sage span   { background: #dfe8dd; }
.dedsafe-colour--peach span  { background: #f9ddc6; }
.dedsafe-colour--sky span    { background: #d9e6ec; }
.dedsafe-colour--blush span  { background: #f6dde1; }
.dedsafe-colour input:checked + span { border-color: var(--ds-teal, #0e4251); }

/* Form row (date + time) */
.dedsafe-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 520px) { .dedsafe-form__row { grid-template-columns: 1fr; } }

/* Diary / events */
.dedsafe-events { display: flex; flex-direction: column; gap: 1rem; }
.dedsafe-events--past { opacity: 0.75; }
.dedsafe-event {
	display: flex; gap: 1.25rem; align-items: flex-start; background: var(--ds-white, #fff);
	border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px; padding: 1.15rem 1.25rem;
	box-shadow: 0 4px 14px rgba(14,66,81,0.05);
}
.dedsafe-event__date {
	flex: 0 0 auto; width: 66px; text-align: center; background: var(--ds-teal, #0e4251);
	color: #fff; border-radius: 12px; padding: 0.6rem 0; line-height: 1.1;
}
.dedsafe-event__day { display: block; font-size: 1.7rem; font-weight: 700; }
.dedsafe-event__mon { display: block; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.dedsafe-event__main { flex: 1 1 auto; }
.dedsafe-event__title { margin: 0 0 0.25rem; font-size: 1.2rem; color: var(--ds-teal, #0e4251); }
.dedsafe-event__meta { margin: 0 0 0.4rem; color: var(--ds-slate-text, #3f5b67); font-weight: 600; font-size: 0.95rem; }
.dedsafe-event__body { margin: 0; color: var(--ds-ink-soft, #4c5f66); }
.dedsafe-event__tools { flex: 0 0 auto; display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* Quick-access cards on the My Safe dashboard */
.dedsafe-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0 0 2rem; }
@media (max-width: 560px) { .dedsafe-quick { grid-template-columns: 1fr; } }
.dedsafe-quick-card {
	display: flex; align-items: center; gap: 1rem; text-decoration: none;
	background: var(--ds-teal, #0e4251); color: #fff; border-radius: 16px; padding: 1.25rem 1.5rem;
	box-shadow: 0 8px 22px rgba(14,66,81,0.14); transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dedsafe-quick-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(14,66,81,0.22); color: #fff; }
.dedsafe-quick-card__icon { font-size: 2rem; line-height: 1; }
.dedsafe-quick-card__text { display: flex; flex-direction: column; }
.dedsafe-quick-card__title { font-size: 1.3rem; font-weight: 700; }
.dedsafe-quick-card__sub { color: var(--ds-mist, #cbd1c5); font-size: 0.95rem; }

/* ===== 0.4.0 Files: upload, list, viewer ===== */
.dedsafe-upload {
	background: var(--ds-cream-100, #fbf7f2); border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 14px; padding: 1.25rem 1.5rem; margin: 0 0 1.75rem;
}
.dedsafe-upload__row { display: flex; gap: 0.9rem; align-items: center; flex-wrap: wrap; }
.dedsafe-upload__file { display: flex; flex-direction: column; gap: 0.3rem; flex: 1 1 260px; }
.dedsafe-upload__label { font-weight: 600; color: var(--ds-teal, #0e4251); }
.dedsafe-upload input[type="text"] { flex: 1 1 200px; }
.dedsafe-upload input[type="file"] { font-size: 1rem; }
.dedsafe-upload__hint { margin: 0.75rem 0 0; color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; }

.dedsafe-filelist { list-style: none; margin: 0; padding: 0; }
.dedsafe-file {
	display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem;
	background: var(--ds-white, #fff); border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 12px; margin-bottom: 0.75rem;
}
.dedsafe-file__icon { font-size: 1.9rem; line-height: 1; flex: 0 0 auto; }
.dedsafe-file__meta { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dedsafe-file__name { font-weight: 700; color: var(--ds-teal, #0e4251); text-decoration: none; font-size: 1.1rem; }
.dedsafe-file__name:hover { text-decoration: underline; }
.dedsafe-file__sub { color: var(--ds-ink-soft, #4c5f66); font-size: 0.9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dedsafe-file__actions { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; flex: 0 0 auto; }
.dedsafe-move select {
	min-height: 0; padding: 0.35rem 0.6rem; font-size: 0.85rem; border-radius: 8px;
	border: 1px solid var(--ds-slate, #597885); background: #fff; color: var(--ds-teal, #0e4251); width: auto;
}
@media (max-width: 640px) {
	.dedsafe-file { flex-wrap: wrap; }
	.dedsafe-file__actions { width: 100%; }
}

/* Viewer */
.dedsafe-viewer__stage {
	background: var(--ds-cream-100, #fbf7f2); border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 14px; padding: 1rem; text-align: center; min-height: 200px;
	display: flex; align-items: center; justify-content: center;
}
.dedsafe-viewer__image { max-width: 100%; max-height: 78vh; border-radius: 8px; }
.dedsafe-viewer__frame { width: 100%; height: 80vh; border: 0; background: #fff; border-radius: 8px; }
.dedsafe-viewer__frame--text { height: 60vh; }
.dedsafe-viewer__audio { width: 100%; }
.dedsafe-viewer__video { max-width: 100%; max-height: 78vh; border-radius: 8px; }

/* ===== 0.4.3 Bigger, obvious "Choose file" button ===== */
.dedsafe-upload__pick { margin-bottom: 1rem; }
.dedsafe-upload__label {
	display: block; font-weight: 700; color: var(--ds-teal, #0e4251);
	margin-bottom: 0.5rem; font-size: 1.15rem;
}
.dedsafe-upload__input {
	font-size: 1.05rem; width: 100%; cursor: pointer;
	border: 2px dashed var(--ds-slate, #597885); border-radius: 12px;
	padding: 0.85rem; background: #fff; color: var(--ds-ink-soft, #4c5f66);
}
.dedsafe-upload__input:hover { border-color: var(--ds-teal, #0e4251); }
.dedsafe-upload__input::file-selector-button {
	min-height: 50px; padding: 0.7rem 1.6rem; margin-right: 1rem;
	border: 0; border-radius: 10px; background: var(--ds-teal, #0e4251); color: #fff;
	font-family: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer;
	transition: background 0.15s ease;
}
.dedsafe-upload__input::-webkit-file-upload-button {
	min-height: 50px; padding: 0.7rem 1.6rem; margin-right: 1rem;
	border: 0; border-radius: 10px; background: var(--ds-teal, #0e4251); color: #fff;
	font-family: inherit; font-size: 1.1rem; font-weight: 700; cursor: pointer;
}
.dedsafe-upload__input:hover::file-selector-button { background: var(--ds-teal-700, #0a3441); }
.dedsafe-upload__go { flex: 0 0 auto; font-size: 1.1rem; }

/* ===== 0.4.4 Move file — compact click-to-reveal chooser ===== */
.dedsafe-move { position: relative; display: inline-block; }
.dedsafe-move > summary { list-style: none; cursor: pointer; }
.dedsafe-move > summary::-webkit-details-marker { display: none; }
.dedsafe-move[open] > summary { background: var(--ds-mist, #cbd1c5); }
.dedsafe-move__form {
	position: absolute; z-index: 30; top: calc(100% + 6px); right: 0;
	background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px;
	box-shadow: 0 12px 30px rgba(14,66,81,0.18); padding: 1rem; width: 280px; text-align: left;
}
.dedsafe-move__label { display: block; font-weight: 600; color: var(--ds-teal, #0e4251); margin-bottom: 0.5rem; font-size: 0.95rem; }
.dedsafe-move__controls { display: flex; gap: 0.5rem; align-items: stretch; }
.dedsafe-move__form select {
	flex: 1 1 auto; width: auto; min-height: 44px; padding: 0.4rem 0.6rem; font-size: 0.95rem;
	border: 1px solid var(--ds-slate, #597885); border-radius: 8px; background: #fff; color: var(--ds-ink, #14313a);
}
.dedsafe-move__go { min-height: 44px; padding: 0.4rem 1rem; font-size: 0.95rem; flex: 0 0 auto; }
@media (max-width: 640px) {
	.dedsafe-move__form { right: auto; left: 0; width: min(88vw, 280px); }
}

/* ===== 0.4.5 Tidy file row — all actions on one line ===== */
.dedsafe-file { list-style: none; }
.dedsafe-file__name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dedsafe-file__actions { flex-wrap: nowrap; gap: 0.45rem; }
.dedsafe-file__actions .dedsafe-note__btn,
.dedsafe-file__actions summary { white-space: nowrap; }
@media (max-width: 720px) {
	.dedsafe-file { flex-wrap: wrap; }
	.dedsafe-file__meta { flex: 1 1 100%; }
	.dedsafe-file__actions { width: 100%; flex-wrap: wrap; margin-top: 0.4rem; }
}

/* ===== 0.5.0 Storage usage bar ===== */
.dedsafe-usage { margin: 0 0 2rem; }
.dedsafe-usage__head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.4rem; flex-wrap: wrap; gap: 0.5rem; }
.dedsafe-usage__label { font-weight: 600; color: var(--ds-teal, #0e4251); }
.dedsafe-usage__plan { font-size: 0.85rem; color: var(--ds-slate-text, #3f5b67); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; }
.dedsafe-usage__bar { height: 12px; background: var(--ds-mist, #cbd1c5); border-radius: 999px; overflow: hidden; }
.dedsafe-usage__fill { display: block; height: 100%; background: var(--ds-sage, #92a493); border-radius: 999px; transition: width 0.3s ease; }
.dedsafe-usage__fill.is-full { background: #b4472f; }

/* ===== 0.6.0 Passphrase gate ===== */
.dedsafe-gate { display: grid; place-items: center; padding: clamp(1.5rem, 6vw, 4rem) 1rem; }
.dedsafe-gate__card {
	max-width: 460px; width: 100%; text-align: center;
	background: var(--ds-white, #fff); border: 1px solid var(--ds-line, #e4dccf);
	border-radius: 18px; box-shadow: 0 16px 44px rgba(14,66,81,0.14);
	padding: clamp(1.75rem, 5vw, 2.75rem);
}
.dedsafe-gate__icon { font-size: 3rem; display: block; margin-bottom: 0.5rem; }
.dedsafe-gate__title { color: var(--ds-teal, #0e4251); margin: 0 0 0.5rem; }
.dedsafe-gate__lead { color: var(--ds-ink-soft, #4c5f66); font-size: 1.1rem; margin: 0 0 1.5rem; }
.dedsafe-gate .dedsafe-form { text-align: left; }
.dedsafe-gate label { display: block; font-weight: 600; color: var(--ds-teal, #0e4251); margin: 0.75rem 0 0.35rem; }
.dedsafe-gate input[type="password"] { font-size: 1.15rem; }
.dedsafe-gate__hint { color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; margin: 0.75rem 0 0; }
.dedsafe-gate__go { width: 100%; font-size: 1.15rem; margin-top: 1.25rem; }
.dedsafe-gate__forgot { margin: 1.5rem 0 0; font-size: 0.95rem; color: var(--ds-ink-soft, #4c5f66); }

/* ===== 0.7.0 field hint ===== */
.dedsafe-field-hint { color: var(--ds-ink-soft, #4c5f66); font-size: 0.9rem; margin: 0.25rem 0 0.5rem; }

/* ===== 0.8.0 Trusted people ===== */
.dedsafe-explain {
	background: var(--ds-cream-100, #fbf7f2); border: 1px solid var(--ds-line, #e4dccf);
	border-left: 5px solid var(--ds-sage, #92a493); border-radius: 12px;
	padding: 1.25rem 1.5rem; margin: 0 0 1.5rem;
}
.dedsafe-explain__title { color: var(--ds-teal, #0e4251); margin: 0 0 0.5rem; font-size: 1.25rem; }
.dedsafe-explain p { margin: 0 0 0.6rem; color: var(--ds-ink, #14313a); }
.dedsafe-explain p:last-child { margin-bottom: 0; }

.dedsafe-release {
	background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px;
	padding: 1.25rem 1.5rem; margin: 0 0 2rem;
}
.dedsafe-release label { display: block; font-weight: 600; color: var(--ds-teal, #0e4251); margin-bottom: 0.6rem; }
.dedsafe-release__row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.dedsafe-release select { width: auto; min-width: 160px; }

.dedsafe-trustees { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.dedsafe-trustee {
	background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px;
	padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.75rem;
	box-shadow: 0 4px 14px rgba(14,66,81,0.05);
}
.dedsafe-trustee__name { margin: 0; color: var(--ds-teal, #0e4251); font-size: 1.2rem; }
.dedsafe-trustee__rel { margin: 0.15rem 0 0; color: var(--ds-slate-text, #3f5b67); font-weight: 600; font-size: 0.95rem; }
.dedsafe-trustee__email { margin: 0.15rem 0 0; color: var(--ds-ink-soft, #4c5f66); }
.dedsafe-trustee__actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ===== 0.8.1 reminder checkbox reveal ===== */
.dedsafe-remind-group {
	margin: 1.25rem 0; padding: 1rem 1.25rem;
	background: var(--ds-cream-100, #fbf7f2); border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px;
}
.dedsafe-remind-toggle {
	display: flex; align-items: center; gap: 0.6rem; cursor: pointer; margin: 0;
	font-weight: 600; color: var(--ds-teal, #0e4251); font-size: 1.1rem;
}
.dedsafe-remind-check {
	width: 22px; height: 22px; min-height: 0; flex: 0 0 auto; cursor: pointer;
	accent-color: var(--ds-teal, #0e4251);
}
.dedsafe-remind-fields { margin-top: 1rem; }
/* With :has() (modern browsers) hide the fields until the box is ticked.
   Older browsers simply show them — never unreachable. */
.dedsafe-remind-group:has(.dedsafe-remind-check:not(:checked)) .dedsafe-remind-fields { display: none; }
.dedsafe-remind-input {
	width: 100%; max-width: 360px; min-height: 50px; font-size: 1.1rem; padding: 0.6rem 0.85rem;
}

/* ===== 0.8.2 Colour swatch picker ===== */
.dedsafe-colours { border: 0; padding: 0; margin: 1.5rem 0; }
.dedsafe-colours legend { font-weight: 700; color: var(--ds-teal, #0e4251); font-size: 1.15rem; padding: 0; }
.dedsafe-colours__grid { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 0.85rem; }
.dedsafe-swatch { display: inline-flex; flex-direction: column; align-items: center; gap: 0.45rem; cursor: pointer; }
.dedsafe-swatch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dedsafe-swatch__chip {
	width: 58px; height: 58px; border-radius: 16px; border: 2px solid rgba(0,0,0,0.08);
	display: grid; place-items: center; transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.dedsafe-swatch__chip::after { content: "\2713"; color: var(--ds-teal, #0e4251); font-size: 1.5rem; font-weight: 800; opacity: 0; }
.dedsafe-swatch__name { font-size: 0.95rem; color: var(--ds-ink-soft, #4c5f66); font-weight: 600; }
.dedsafe-swatch--butter .dedsafe-swatch__chip { background: #fdf3cf; }
.dedsafe-swatch--sage   .dedsafe-swatch__chip { background: #dfe8dd; }
.dedsafe-swatch--peach  .dedsafe-swatch__chip { background: #f9ddc6; }
.dedsafe-swatch--sky    .dedsafe-swatch__chip { background: #d9e6ec; }
.dedsafe-swatch--blush  .dedsafe-swatch__chip { background: #f6dde1; }
.dedsafe-swatch input:checked ~ .dedsafe-swatch__chip { box-shadow: 0 0 0 3px var(--ds-teal, #0e4251); transform: translateY(-2px); }
.dedsafe-swatch input:checked ~ .dedsafe-swatch__chip::after { opacity: 1; }
.dedsafe-swatch input:checked ~ .dedsafe-swatch__name { color: var(--ds-teal, #0e4251); font-weight: 700; }
.dedsafe-swatch input:focus-visible ~ .dedsafe-swatch__chip { outline: 3px solid var(--ds-peach, #e8aa6f); outline-offset: 2px; }

/* ===== 0.9.0 Trustee vault page ===== */
.dedsafe-vaultpage { max-width: 900px; margin: 0 auto; }
.dedsafe-vault-intro {
	text-align: center; background: var(--ds-cream-100, #fbf7f2);
	border: 1px solid var(--ds-line, #e4dccf); border-radius: 16px;
	padding: clamp(1.5rem, 4vw, 2.5rem); margin: 1rem 0 2rem;
}
.dedsafe-vault-intro__icon { font-size: 2.5rem; display: block; margin-bottom: 0.5rem; }
.dedsafe-vault-intro__title { color: var(--ds-teal, #0e4251); margin: 0 0 0.5rem; }
.dedsafe-vault-intro__lead { color: var(--ds-ink-soft, #4c5f66); font-size: 1.1rem; max-width: 60ch; margin: 0 auto; }
.dedsafe-vault-message {
	margin: 1.5rem auto 0; max-width: 55ch; padding: 1rem 1.5rem; text-align: left;
	background: #fff; border-left: 4px solid var(--ds-peach, #e8aa6f); border-radius: 8px;
	color: var(--ds-ink, #14313a); font-style: italic;
}
.dedsafe-vault-drawer { margin-bottom: 2rem; }

/* ===== 0.10.0 Boxes share ===== */
.dedsafe-share {
	background: var(--ds-cream-100, #fbf7f2); border: 1px solid var(--ds-line, #e4dccf);
	border-left: 5px solid var(--ds-peach, #e8aa6f); border-radius: 12px;
	padding: 1.25rem 1.5rem; margin: 0 0 1.75rem;
}
.dedsafe-share__title { color: var(--ds-teal, #0e4251); margin: 0 0 0.5rem; font-size: 1.25rem; }
.dedsafe-share label { display: block; font-weight: 600; color: var(--ds-teal, #0e4251); margin: 0.75rem 0 0.35rem; }
.dedsafe-share__url { width: 100%; font-family: monospace; font-size: 0.95rem; background: #fff; }

/* ===== 0.11.0 box QR + release ===== */
.dedsafe-share__grid { display: flex; gap: 1.5rem; align-items: flex-start; flex-wrap: wrap; }
.dedsafe-share__main { flex: 1 1 300px; }
.dedsafe-share__qr { flex: 0 0 auto; text-align: center; }
.dedsafe-share__qr #ds-qr { display: inline-block; padding: 8px; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 10px; }
.dedsafe-share__qr #ds-qr img, .dedsafe-share__qr #ds-qr canvas { display: block; }
.dedsafe-share__qrlabel { display: block; margin-top: 0.4rem; font-size: 0.9rem; color: var(--ds-ink-soft, #4c5f66); font-weight: 600; }
.dedsafe-share__release { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--ds-line, #e4dccf); color: var(--ds-teal, #0e4251); font-weight: 600; }

/* ===== 0.13.0 per-drawer lock manager ===== */
.dedsafe-lockmgr { margin-top: 2rem; border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px; background: #fff; }
.dedsafe-lockmgr__summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 700; color: var(--ds-teal, #0e4251); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.dedsafe-lockmgr__summary::-webkit-details-marker { display: none; }
.dedsafe-lockmgr[open] .dedsafe-lockmgr__summary { border-bottom: 1px solid var(--ds-line, #e4dccf); }
.dedsafe-lockmgr__body { padding: 1.25rem; }
.dedsafe-lockmgr__body .dedsafe-field-hint { margin-top: 0; }
.dedsafe-lockmgr__form { margin: 0.5rem 0 0.75rem; }

/* ===== 0.14.0 contacts enrichment ===== */
.dedsafe-form-intro { color: var(--ds-ink-soft, #4c5f66); margin: 0 0 1.25rem; }
.dedsafe-fieldgroup { font-family: var(--ds-serif, Georgia, serif); font-size: 1.25rem; color: var(--ds-teal, #0e4251); margin: 1.75rem 0 0.75rem; padding-bottom: 0.35rem; border-bottom: 2px solid var(--ds-sand, #e8e0d4); }
.dedsafe-datepick { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dedsafe-datepick select { flex: 1 1 auto; min-width: 90px; padding: 0.6rem 0.5rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 8px; background: #fff; font-size: 1rem; }
.dedsafe-check { display: flex; align-items: flex-start; gap: 0.6rem; margin: 0.75rem 0 0; font-weight: 500; cursor: pointer; }
.dedsafe-check input { margin-top: 0.2rem; width: 1.15rem; height: 1.15rem; flex: 0 0 auto; }
.dedsafe-spacer-top { margin-top: 1.5rem; display: block; }
.dedsafe-tag { display: inline-block; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ds-slate-text, #3f5b67); background: var(--ds-mist, #eef1ea); border-radius: 20px; padding: 0.1rem 0.55rem; vertical-align: middle; }
.dedsafe-trustee__rel-badge { display: inline-block; font-size: 0.8rem; font-weight: 600; color: #fff; background: var(--ds-sage-strong, #5f7461); border-radius: 20px; padding: 0.1rem 0.6rem; margin-left: 0.5rem; vertical-align: middle; }

/* ===== 0.15.0 repeatable phones / dates ===== */
.ds-repeat { margin: 0.25rem 0 0.5rem; }
.ds-repeat__rows { display: flex; flex-direction: column; gap: 0.6rem; }
.ds-repeat__row { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; background: var(--ds-mist, #eef1ea); border-radius: 10px; padding: 0.6rem; }
.ds-phonerow__label { flex: 0 0 140px; }
.ds-phonerow__value { flex: 1 1 180px; }
.ds-daterow { align-items: flex-start; }
.ds-daterow__label { flex: 1 1 100%; }
.ds-daterow .dedsafe-datepick { flex: 1 1 auto; }
.ds-daterow__remind { flex: 1 1 100%; margin: 0.25rem 0 0; }
.ds-repeat__row input, .ds-repeat__row select { padding: 0.55rem 0.6rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 8px; background: #fff; font-size: 1rem; }
.ds-repeat__remove { flex: 0 0 auto; margin-left: auto; width: 2.2rem; height: 2.2rem; border-radius: 50%; border: 1px solid var(--ds-line, #c9cbb8); background: #fff; color: var(--ds-slate-text, #3f5b67); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.ds-repeat__remove:hover { background: #f7d9d0; color: #a23; border-color: #e6b3a6; }
.ds-repeat__add { margin-top: 0.75rem; background: none; border: 2px dashed var(--ds-sage, #92a493); color: var(--ds-teal, #0e4251); border-radius: 10px; padding: 0.6rem 1rem; font-weight: 700; cursor: pointer; }
.ds-repeat__add:hover { background: var(--ds-mist, #eef1ea); }

/* ===== 0.16.0 My Medicines ===== */
.dedsafe-callout { border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; font-size: 0.95rem; line-height: 1.5; }
.dedsafe-callout--soft { background: #fbf3ea; border: 1px solid #f0d9c2; color: #6b4e33; }
.dedsafe-meds { display: flex; flex-direction: column; gap: 1rem; }
.dedsafe-med { display: flex; gap: 1.1rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px; padding: 1.1rem; align-items: flex-start; }
.dedsafe-med__photo { flex: 0 0 auto; display: block; }
.dedsafe-med__photo img { width: 96px; height: 96px; object-fit: cover; border-radius: 10px; border: 1px solid var(--ds-line, #e4dccf); background: #f6efe9; }
.dedsafe-med__photo--edit img { width: 160px; height: auto; max-height: 200px; object-fit: contain; }
.dedsafe-med__main { flex: 1 1 auto; min-width: 0; }
.dedsafe-med__name { margin: 0 0 0.4rem; font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.3rem; }
.dedsafe-med__strength { display: inline-block; margin-left: 0.5rem; font-family: var(--ds-sans, sans-serif); font-size: 0.85rem; font-weight: 700; color: var(--ds-slate-text, #3f5b67); background: var(--ds-mist, #eef1ea); border-radius: 20px; padding: 0.15rem 0.6rem; vertical-align: middle; }
.dedsafe-med__line { margin: 0.25rem 0; color: var(--ds-ink, #2c3a40); }
.dedsafe-med__reorder { font-weight: 600; color: var(--ds-teal, #0e4251); }
.dedsafe-med__notes { margin: 0.5rem 0 0; padding-top: 0.5rem; border-top: 1px dashed var(--ds-line, #e4dccf); color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; }
.dedsafe-med__actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; align-items: center; }
.dedsafe-file { display: block; margin: 0.5rem 0; }
@media (max-width: 560px) { .dedsafe-med { flex-direction: column; } .dedsafe-med__photo img { width: 100%; height: auto; max-height: 220px; } }

/* ===== 0.18.0 Emergency (SOS) Card ===== */
.dedsafe-callout--warn { background: #fdeceb; border: 1px solid #f2b8b3; color: #8a2b22; }
.dedsafe-quick-card--sos { border-color: #e6b3a6; }
.dedsafe-quick-card--sos .dedsafe-quick-card__icon { filter: none; }
.dedsafe-tworow { display: flex; gap: 1rem; flex-wrap: wrap; }
.dedsafe-tworow > div { flex: 1 1 200px; }
.dedsafe-check--big { font-size: 1.15rem; font-weight: 700; background: var(--ds-mist, #eef1ea); padding: 0.9rem 1rem; border-radius: 10px; }
.dedsafe-fieldgroup--alert { color: #a8321f; border-bottom-color: #f2b8b3; }
.dedsafe-sos-share { border-color: #e6b3a6; }
.dedsafe-sos-meta { margin: 0.75rem 0; font-weight: 600; color: var(--ds-slate-text, #3f5b67); }

/* Public responder card */
.sos-card { max-width: 640px; margin: 0 auto; border-radius: 14px; overflow: hidden; box-shadow: 0 6px 24px rgba(0,0,0,0.12); background: #fff; }
.sos-card__banner { background: #c62d1f; color: #fff; padding: 1rem 1.25rem; font-size: 1.35rem; font-weight: 800; letter-spacing: 0.02em; display: flex; align-items: center; gap: 0.6rem; text-align: center; justify-content: center; }
.sos-card__banner--muted { background: var(--ds-slate, #597885); }
.sos-card__cross { font-size: 1.6rem; }
.sos-card__body { padding: 1.25rem 1.5rem 1.75rem; }
.sos-card__name { font-size: 1.9rem; margin: 0 0 0.25rem; color: #1a1a1a; }
.sos-card__meta { display: flex; gap: 1.5rem; flex-wrap: wrap; margin: 0 0 1rem; color: #333; }
.sos-block { margin: 1rem 0; padding: 0.9rem 1rem; border: 1px solid #e6e6e6; border-radius: 10px; }
.sos-block h2 { margin: 0 0 0.4rem; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; color: #666; font-family: var(--ds-sans, sans-serif); }
.sos-block p { margin: 0; font-size: 1.15rem; color: #1a1a1a; }
.sos-block--allergy { border: 2px solid #c62d1f; background: #fdeceb; }
.sos-block--allergy h2 { color: #c62d1f; }
.sos-block--allergy p { font-weight: 800; font-size: 1.3rem; color: #a8231a; }
.sos-block--resus { border: 2px solid #b8860b; background: #fdf6e3; }
.sos-block--resus h2 { color: #8a6508; }
.sos-block--contacts a { color: #0a58ca; font-weight: 700; text-decoration: none; }
.sos-meds { margin: 0; padding-left: 1.1rem; }
.sos-meds li { margin-bottom: 0.5rem; font-size: 1.1rem; }
.sos-meds__instr { color: #444; font-size: 0.98rem; }
.sos-card__foot { margin: 1.25rem 0 0; padding-top: 0.9rem; border-top: 1px solid #e6e6e6; font-size: 0.9rem; color: #777; }

/* Print sheet */
.sos-print { max-width: 800px; margin: 0 auto; padding: 1rem; }
.sos-print__toolbar { text-align: center; margin-bottom: 1.5rem; }
.sos-print__toolbar p { color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; margin-top: 0.5rem; }
.sos-wallet { width: 86mm; margin: 0 auto 2rem; }
.sos-wallet__front { border: 2px solid #c62d1f; border-radius: 3mm; padding: 4mm; height: 54mm; box-sizing: border-box; display: flex; flex-direction: column; }
.sos-wallet__head { display: flex; align-items: center; gap: 2mm; color: #c62d1f; font-weight: 800; font-size: 3.4mm; }
.sos-wallet__cross { font-size: 5mm; }
.sos-wallet__name { font-size: 5mm; font-weight: 800; margin: 1.5mm 0; }
.sos-wallet__allergy { font-size: 3mm; color: #a8231a; font-weight: 700; margin-bottom: 1mm; }
.sos-wallet__scan { margin-top: auto; display: flex; align-items: center; gap: 2mm; }
.sos-wallet__scan .ds-qr { line-height: 0; }
.sos-wallet__scan span { font-size: 2.8mm; color: #333; }
.sos-fridge { border: 3px solid #c62d1f; border-radius: 5mm; padding: 8mm; max-width: 148mm; margin: 0 auto; }
.sos-fridge__banner { background: #c62d1f; color: #fff; text-align: center; font-weight: 800; padding: 3mm; border-radius: 2mm; font-size: 5mm; margin: -2mm -2mm 4mm; }
.sos-fridge__name { font-size: 9mm; margin: 0 0 1mm; }
.sos-fridge__meta { margin: 0 0 3mm; font-size: 4mm; color: #333; }
.sos-fridge__grid { display: flex; gap: 5mm; align-items: flex-start; }
.sos-fridge__facts { flex: 1 1 auto; font-size: 4mm; line-height: 1.5; }
.sos-fridge__facts p { margin: 0 0 2mm; }
.sos-fridge__allergy { color: #a8231a; }
.sos-fridge__qr { flex: 0 0 auto; text-align: center; }
.sos-fridge__qr span { display: block; font-size: 3mm; margin-top: 1mm; color: #333; }
.sos-fridge__foot { margin: 4mm 0 0; font-size: 3mm; color: #777; }
@media print {
	.sos-print__toolbar { display: none !important; }
	.sos-print { padding: 0; }
	.sos-wallet, .sos-fridge { page-break-inside: avoid; }
	.sos-fridge { page-break-before: always; }
}

/* ===== 0.19.0 In Safe Hands card ===== */
.dedsafe-safehands { background: linear-gradient(180deg, #f6efe9 0%, #eef1ea 100%); border: 1px solid var(--ds-sage, #92a493); }
.dedsafe-safehands__note { max-width: 520px; margin: 0.75rem auto 0; color: var(--ds-slate-text, #3f5b67); font-size: 0.98rem; }
.ish-card { width: 100mm; margin: 0 auto 1.5rem; }
.ish-card__inner { border: 2px solid var(--ds-teal, #0e4251); border-radius: 5mm; padding: 8mm 7mm; text-align: center; background: #fff; }
.ish-card__head { display: flex; align-items: center; justify-content: center; gap: 2mm; color: var(--ds-teal, #0e4251); }
.ish-card__mark { font-size: 8mm; }
.ish-card__brand { font-family: var(--ds-serif, Georgia, serif); font-size: 7mm; font-weight: 700; letter-spacing: 0.02em; }
.ish-card__for { font-size: 5mm; font-weight: 700; margin: 3mm 0 0; color: #1a1a1a; }
.ish-card__from { font-size: 3.6mm; color: var(--ds-slate-text, #3f5b67); margin: 1mm 0 3mm; }
.ish-card__qr { display: flex; justify-content: center; margin: 2mm 0; }
.ish-card__qr .ds-qr { line-height: 0; padding: 2mm; background: #fff; }
.ish-card__explain { font-size: 3.4mm; line-height: 1.5; color: #333; margin: 3mm 0 0; }
.ish-card__foot { font-size: 2.8mm; color: var(--ds-slate-text, #3f5b67); margin: 4mm 0 0; }
.ish-note { max-width: 100mm; margin: 0 auto; padding: 1rem 1.25rem; background: var(--ds-mist, #eef1ea); border-radius: 12px; }
.ish-note h2 { margin: 0 0 0.4rem; font-size: 1.05rem; color: var(--ds-teal, #0e4251); }
.ish-note p { margin: 0; font-size: 0.92rem; color: var(--ds-ink-soft, #4c5f66); line-height: 1.5; }
@media print { .ish-note { display: none !important; } .ish-card { margin-top: 10mm; } }

/* ===== 0.20.0 passphrase recovery ===== */
.dedsafe-gate__warn { background: #fbf3ea; border: 1px solid #f0d9c2; color: #6b4e33; border-radius: 10px; padding: 0.8rem 1rem; margin: 0 0 1rem; font-size: 0.9rem; line-height: 1.5; text-align: left; }
.dedsafe-linkbtn { background: none; border: 0; color: var(--ds-slate-text, #3f5b67); text-decoration: underline; cursor: pointer; font: inherit; padding: 0; }
.dedsafe-linkbtn:hover { color: var(--ds-teal, #0e4251); }
#ds-code { letter-spacing: 0.3em; font-size: 1.3rem; text-align: center; }

/* ===== 0.22.0 per-file locks ===== */
.dedsafe-file--locked { background: repeating-linear-gradient(45deg, #f6efe9, #f6efe9 10px, #f1e8de 10px, #f1e8de 20px); border-radius: 10px; }
.dedsafe-file--locked .dedsafe-file__name { color: var(--ds-slate-text, #3f5b67); }
.dedsafe-note__btn--accent { background: var(--ds-teal, #0e4251); color: #fff; }
.dedsafe-note__btn--accent:hover { background: var(--ds-teal-700, #0a3441); color: #fff; }

/* ===== 0.23.0 dose times repeater ===== */
.ds-timerow { max-width: 320px; }
.ds-timerow input[type="time"] { flex: 1 1 auto; }

/* ===== 0.24.0 medicines OCR ===== */
.dedsafe-ocr { margin: 0.75rem 0 0; }
.dedsafe-ocr__status { margin: 0.5rem 0; font-weight: 600; color: var(--ds-slate-text, #3f5b67); min-height: 1.2em; }
.dedsafe-ocr__out { width: 100%; font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9rem; background: var(--ds-mist, #eef1ea); border: 1px solid var(--ds-line, #c9cbb8); border-radius: 8px; padding: 0.6rem; }

/* ===== 0.25.0 Help foundation & Help Centre ===== */
.dedsafe-help { margin: 0 0 1.5rem; border: 1px solid var(--ds-sage, #92a493); border-radius: 12px; background: #f3f6f1; }
.dedsafe-help__summary { cursor: pointer; padding: 0.8rem 1.1rem; font-weight: 700; color: var(--ds-teal, #0e4251); list-style: none; display: flex; align-items: center; gap: 0.5rem; }
.dedsafe-help__summary::-webkit-details-marker { display: none; }
.dedsafe-help[open] .dedsafe-help__summary { border-bottom: 1px solid #d9e4d6; }
.dedsafe-help__body { padding: 0.9rem 1.1rem; }
.dedsafe-help__body p { margin: 0 0 0.6rem; color: var(--ds-ink, #2c3a40); line-height: 1.55; }
.dedsafe-help__more { font-weight: 700; color: var(--ds-teal, #0e4251); text-decoration: none; }
.dedsafe-help__more:hover { text-decoration: underline; }

.dedsafe-helpsearch { margin: 0 0 1.5rem; }
.dedsafe-helpsearch__label { display: block; font-weight: 700; color: var(--ds-teal, #0e4251); margin-bottom: 0.4rem; }
.dedsafe-helpsearch__input { width: 100%; max-width: 480px; font-size: 1.1rem; padding: 0.7rem 0.9rem; border: 2px solid var(--ds-line, #c9cbb8); border-radius: 10px; }
.dedsafe-helpsearch__none { margin: 0.75rem 0 0; color: var(--ds-slate-text, #3f5b67); font-weight: 600; }

.dedsafe-helpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.dedsafe-helpcard { display: flex; gap: 0.9rem; align-items: flex-start; padding: 1.1rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px; text-decoration: none; transition: box-shadow 0.15s ease, transform 0.15s ease; }
.dedsafe-helpcard:hover { box-shadow: 0 8px 22px rgba(14,66,81,0.12); transform: translateY(-2px); }
.dedsafe-helpcard__icon { font-size: 1.8rem; line-height: 1; flex: 0 0 auto; }
.dedsafe-helpcard__title { display: block; font-weight: 700; color: var(--ds-teal, #0e4251); font-size: 1.1rem; margin-bottom: 0.2rem; }
.dedsafe-helpcard__sub { display: block; color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; line-height: 1.45; }

.dedsafe-help__back { margin: 0 0 1rem; }
.dedsafe-help__back a, .dedsafe-article__foot a { color: var(--ds-slate-text, #3f5b67); text-decoration: none; font-weight: 600; }
.dedsafe-article { max-width: 720px; }
.dedsafe-article__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 2rem; margin: 0 0 0.5rem; }
.dedsafe-article__lead { font-size: 1.15rem; color: var(--ds-ink-soft, #4c5f66); margin: 0 0 1.5rem; }
.dedsafe-article__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.35rem; margin: 1.75rem 0 0.5rem; }
.dedsafe-article p { line-height: 1.65; color: var(--ds-ink, #2c3a40); margin: 0 0 0.8rem; }
.dedsafe-article__steps { line-height: 1.6; color: var(--ds-ink, #2c3a40); padding-left: 1.4rem; }
.dedsafe-article__steps li { margin-bottom: 0.5rem; }
.dedsafe-article__foot { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--ds-line, #e4dccf); }

/* ===== 0.26.0 guided wizards ===== */
.ds-wizard__toggle { display: block; width: -moz-fit-content; width: fit-content; margin: 0 0 1rem auto; font: inherit; font-size: 0.9rem; font-weight: 600; color: var(--ds-slate-text, #3f5b67); background: var(--ds-mist, #eef1ea); border: 1px solid var(--ds-line, #c9cbb8); border-radius: 22px; padding: 0.45rem 1rem; cursor: pointer; }
.ds-wizard__toggle:hover { background: #fff; color: var(--ds-teal, #0e4251); border-color: var(--ds-sage, #92a493); }
.ds-wizard__progress { margin: 0 0 1.5rem; }
.ds-wizard__count { display: block; font-weight: 700; color: var(--ds-teal, #0e4251); font-size: 1.05rem; margin-bottom: 0.5rem; }
.ds-wizard__track { height: 10px; background: var(--ds-mist, #eef1ea); border-radius: 20px; overflow: hidden; }
.ds-wizard__bar { height: 100%; background: var(--ds-peach, #e8aa6f); border-radius: 20px; transition: width 0.25s ease; min-width: 10px; }
.ds-step__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.4rem; margin: 0 0 0.4rem; }
.ds-step__help { color: var(--ds-ink-soft, #4c5f66); line-height: 1.55; margin: 0 0 1rem; background: #f3f6f1; border-left: 3px solid var(--ds-sage, #92a493); padding: 0.6rem 0.9rem; border-radius: 0 8px 8px 0; }
.ds-wizard__nav { display: flex; gap: 0.75rem; justify-content: space-between; align-items: center; margin: 1.75rem 0 0; }
.ds-wizard__nav .ds-btn { min-height: 54px; padding: 0.85rem 2rem; font-size: 1.1rem; border-radius: 12px; }
.ds-wizard__nav .ds-btn--accent { margin-left: auto; min-width: 160px; }
.dedsafe-form__actions .ds-btn { min-height: 54px; padding: 0.85rem 2rem; font-size: 1.1rem; }
@media (max-width: 520px) {
	.ds-wizard__nav { flex-direction: column-reverse; align-items: stretch; }
	.ds-wizard__nav .ds-btn { width: 100%; margin-left: 0; }
}

/* ===== 0.28.0 dashboard actions ===== */
.dedsafe-safe__actions { display: flex; gap: 0.6rem; flex-wrap: wrap; align-items: center; }

/* ===== 0.29.0 request a document ===== */
.dedsafe-req-share { border-color: #cfe0d6; margin: 0.75rem 0; }

/* ===== 0.30.0 search + sorting ===== */
.dedsafe-searchbar { display: flex; gap: 0.6rem; margin: 0 0 1.5rem; flex-wrap: wrap; }
.dedsafe-searchbar__input { flex: 1 1 240px; font-size: 1.1rem; padding: 0.7rem 0.9rem; border: 2px solid var(--ds-line, #c9cbb8); border-radius: 10px; }
.dedsafe-searchbar--dash { margin: 0 0 1.25rem; }
.dedsafe-searchcount { color: var(--ds-slate-text, #3f5b67); font-weight: 600; margin: 0 0 0.75rem; }
.dedsafe-sortbar { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1rem; }
.dedsafe-sortbar__label { color: var(--ds-slate-text, #3f5b67); font-weight: 600; }
.dedsafe-sortbar__opt { text-decoration: none; color: var(--ds-teal, #0e4251); padding: 0.3rem 0.75rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 20px; font-size: 0.9rem; }
.dedsafe-sortbar__opt:hover { background: var(--ds-mist, #eef1ea); }
.dedsafe-sortbar__opt.is-active { background: var(--ds-teal, #0e4251); color: #fff; border-color: var(--ds-teal, #0e4251); }

/* ===== 0.31.0 downloadable guides ===== */
.dedsafe-guides-dl { margin: 2rem 0 0; padding: 1.5rem; background: #f3f6f1; border: 1px solid var(--ds-sage, #92a493); border-radius: 14px; }
.dedsafe-guides-dl__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.35rem; margin: 0 0 0.3rem; }
.dedsafe-guides-dl__sub { color: var(--ds-ink-soft, #4c5f66); margin: 0 0 1rem; }
.dedsafe-guides-dl__row { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* ===== 0.32.0 folders ===== */
.dedsafe-crumb__sep { color: var(--ds-slate-text, #3f5b67); margin: 0 0.35rem; }
.dedsafe-crumb__here { color: var(--ds-teal, #0e4251); font-weight: 700; }
.dedsafe-movebar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; background: #fdf3e7; border: 1px solid var(--ds-peach, #e8aa6f); border-radius: 12px; padding: 0.75rem 1rem; margin: 0 0 1.25rem; }
.dedsafe-movebar__txt { font-weight: 700; color: var(--ds-teal, #0e4251); flex: 1 1 auto; }
.dedsafe-drawer__actions { margin: 0 0 1rem; }
.dedsafe-newfolder > summary { display: inline-block; list-style: none; cursor: pointer; }
.dedsafe-newfolder > summary::-webkit-details-marker { display: none; }
.dedsafe-newfolder__form { margin: 0.75rem 0 0; padding: 1rem; background: var(--ds-mist, #eef1ea); border-radius: 12px; max-width: 480px; }
.dedsafe-newfolder__row { display: flex; gap: 0.5rem; margin-top: 0.35rem; }
.dedsafe-newfolder__row input { flex: 1 1 auto; }
.dedsafe-folderrow { background: #f7f4ee; }
.dedsafe-folderrow .dedsafe-file__name { color: var(--ds-teal, #0e4251); font-weight: 700; }
.dedsafe-renameform { display: flex; gap: 0.4rem; align-items: center; margin: 0.35rem 0; }
.dedsafe-renameform input { flex: 1 1 auto; min-width: 120px; padding: 0.4rem 0.5rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 8px; }
.dedsafe-move__form form { display: block; margin-bottom: 0.4rem; }

/* ============================================================
   0.34.0 — Design polish: readability & tap targets for older users
   Systematic improvements that lift every screen at once.
   ============================================================ */

/* Comfortable base reading size across the whole app */
.dedsafe-app { font-size: 1.06rem; line-height: 1.6; color: var(--ds-ink, #14313a); }
.dedsafe-app p { line-height: 1.6; }

/* Every form control large, consistent and clearly outlined
   (previously only text inputs were enlarged; email/phone/date/
   password/textarea/select rendered small and inconsistent). */
.dedsafe-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
.dedsafe-form textarea,
.dedsafe-form select {
	width: 100%;
	box-sizing: border-box;
	font-size: 1.1rem;
	line-height: 1.4;
	padding: 0.75rem 0.9rem;
	min-height: 52px;
	border: 1.5px solid var(--ds-line, #c9cbb8);
	border-radius: 10px;
	background: #fff;
	color: var(--ds-ink, #14313a);
}
.dedsafe-form textarea { min-height: 100px; line-height: 1.5; }
.dedsafe-form label { font-size: 1.1rem; font-weight: 600; color: var(--ds-teal, #0e4251); margin-bottom: 0.35rem; }
.dedsafe-form input:focus, .dedsafe-form textarea:focus, .dedsafe-form select:focus {
	border-color: var(--ds-teal, #0e4251);
	outline: 3px solid rgba(232, 170, 111, 0.5);
	outline-offset: 1px;
}

/* Clear, tappable secondary buttons (file / note / list actions) */
.dedsafe-note__btn {
	display: inline-flex; align-items: center; gap: 0.35rem;
	min-height: 44px; padding: 0.5rem 1rem; font-size: 0.98rem; border-radius: 10px;
}

/* Roomier navigation tabs */
.dedsafe-appnav a { padding: 0.55rem 1rem; font-size: 1.05rem; }

/* Readable hints & helper text */
.dedsafe-field-hint { font-size: 0.98rem; color: var(--ds-ink-soft, #4c5f66); line-height: 1.5; }

/* Visible focus everywhere — keyboard and low-vision users */
.dedsafe-app a:focus-visible,
.dedsafe-app button:focus-visible,
.dedsafe-app summary:focus-visible,
.dedsafe-app .ds-btn:focus-visible {
	outline: 3px solid var(--ds-peach, #e8aa6f); outline-offset: 2px; border-radius: 8px;
}

/* Comfortable spacing in file / item lists, and wrap actions neatly */
.dedsafe-filelist { display: flex; flex-direction: column; gap: 0.6rem; }
.dedsafe-file { padding: 0.85rem 1rem; align-items: center; }
.dedsafe-file__actions { gap: 0.4rem; flex-wrap: wrap; align-items: center; }
.dedsafe-file__name { font-size: 1.08rem; }

/* Primary buttons a touch larger inside the app for confident tapping */
.dedsafe-app .ds-btn { min-height: 52px; font-size: 1.05rem; }

/* Quick-access dashboard cards: clearer, bigger touch area */
.dedsafe-quick-card { padding: 1.1rem 1.25rem; }
.dedsafe-quick-card__title { font-size: 1.15rem; }

/* Section headings a hair larger and consistent */
.dedsafe-safe__title { font-size: clamp(1.6rem, 3.5vw, 2.1rem); }
.dedsafe-safe__sub { font-size: 1.08rem; }

/* ===== 0.35.0 comfort mode control + confirmation recap ===== */
.dedsafe-textsize { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; margin: -1rem 0 1.5rem; padding: 0.5rem 0; }
.dedsafe-textsize__lbl { font-size: 0.95rem; color: var(--ds-slate-text, #3f5b67); font-weight: 600; margin-right: 0.2rem; }
.dedsafe-textsize__opt { background: #fff; border: 1.5px solid var(--ds-line, #c9cbb8); color: var(--ds-teal, #0e4251); border-radius: 20px; padding: 0.35rem 0.85rem; cursor: pointer; font: inherit; font-weight: 600; }
.dedsafe-textsize__opt:nth-of-type(1) { font-size: 0.9rem; }
.dedsafe-textsize__opt:nth-of-type(2) { font-size: 1.05rem; }
.dedsafe-textsize__opt:nth-of-type(3) { font-size: 1.2rem; }
.dedsafe-textsize__opt:hover { background: var(--ds-mist, #eef1ea); }
.dedsafe-textsize__opt.is-active { background: var(--ds-teal, #0e4251); color: #fff; border-color: var(--ds-teal, #0e4251); }

.dedsafe-recap { background: #eef6ec; border: 1px solid #bcd9b6; border-left: 5px solid #5c9a4f; border-radius: 12px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.dedsafe-recap__head { font-weight: 800; font-size: 1.2rem; color: #2f6a27; display: flex; align-items: center; gap: 0.5rem; }
.dedsafe-recap__list { margin: 0.5rem 0 0; padding-left: 1.5rem; color: var(--ds-ink, #14313a); line-height: 1.6; }
.dedsafe-recap__list li { margin-bottom: 0.25rem; }

/* ===== 0.36.0 welcome tour ===== */
.dedsafe-welcome .dedsafe-formwrap { max-width: 640px; }
.ds-welcome__card { text-align: center; padding: 1.5rem 0.5rem; }
.ds-welcome__icon { font-size: 3.5rem; line-height: 1; display: block; margin: 0 auto 1rem; }
.ds-welcome__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.7rem; margin: 0 0 0.75rem; }
.ds-welcome__body { font-size: 1.15rem; line-height: 1.6; color: var(--ds-ink, #14313a); max-width: 30rem; margin: 0 auto; }
.dedsafe-welcome .dedsafe-form__actions { justify-content: center; }
.dedsafe-welcome .dedsafe-form__actions .ds-btn { min-width: 200px; }
.ds-welcome__skip { text-align: center; margin: 1.25rem 0 0; }
.dedsafe-help-tour { margin: 0 0 1.25rem; }

/* ===== 0.37.0 diary month calendar + to-do ===== */
.ds-ico { vertical-align: -3px; }
.dedsafe-cal { margin: 0 0 2rem; overflow-x: auto; }
.dedsafe-cal__nav { display: flex; align-items: center; gap: 0.6rem; margin: 0 0 0.75rem; }
.dedsafe-cal__arrow { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1.5px solid var(--ds-line, #c9cbb8); border-radius: 10px; text-decoration: none; color: var(--ds-teal, #0e4251); font-size: 1.5rem; line-height: 1; }
.dedsafe-cal__arrow:hover { background: var(--ds-mist, #eef1ea); }
.dedsafe-cal__month { font-family: var(--ds-serif, Georgia, serif); font-size: 1.4rem; color: var(--ds-teal, #0e4251); font-weight: 700; min-width: 11rem; text-align: center; }
.dedsafe-cal__today { margin-left: auto; text-decoration: none; color: var(--ds-teal, #0e4251); border: 1.5px solid var(--ds-line, #c9cbb8); border-radius: 20px; padding: 0.45rem 1rem; font-weight: 600; }
.dedsafe-cal__today:hover { background: var(--ds-mist, #eef1ea); }
.dedsafe-cal__grid { width: 100%; min-width: 580px; border-collapse: collapse; table-layout: fixed; }
.dedsafe-cal__grid th { padding: 0.5rem 0.3rem; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ds-slate-text, #3f5b67); text-align: left; border-bottom: 2px solid var(--ds-mist, #cbd1c5); }
.dedsafe-cal__grid td { height: 88px; vertical-align: top; border: 1px solid var(--ds-line, #e4dccf); padding: 3px; background: #fff; }
.dedsafe-cal__grid td.is-empty { background: transparent; border: 0; }
.dedsafe-cal__grid td.is-today { background: #fdf3e7; border-color: var(--ds-peach, #e8aa6f); box-shadow: inset 0 0 0 1px var(--ds-peach, #e8aa6f); }
.dedsafe-cal__daynum { display: inline-block; min-width: 1.7rem; height: 1.7rem; line-height: 1.7rem; text-align: center; text-decoration: none; color: var(--ds-teal, #0e4251); font-weight: 700; border-radius: 8px; }
.dedsafe-cal__daynum:hover { background: var(--ds-mist, #eef1ea); }
.is-today .dedsafe-cal__daynum { background: var(--ds-peach, #e8aa6f); color: #3a2a15; }
.dedsafe-cal__ev { display: block; font-size: 0.78rem; line-height: 1.25; margin-top: 2px; padding: 2px 5px; border-radius: 6px; background: var(--ds-teal, #0e4251); color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dedsafe-cal__ev:hover { background: var(--ds-teal-700, #0a3441); color: #fff; }
.dedsafe-cal__ev.is-done { background: var(--ds-sage-strong, #5f7461); text-decoration: line-through; }
.dedsafe-cal__more { display: block; font-size: 0.72rem; color: var(--ds-slate-text, #3f5b67); margin-top: 2px; padding-left: 5px; }
.dedsafe-event--done { opacity: 0.7; }
.dedsafe-event--done .dedsafe-event__title { text-decoration: line-through; }
.dedsafe-diary-fold > summary { cursor: pointer; list-style: none; }
.dedsafe-diary-fold > summary::-webkit-details-marker { display: none; }
.dedsafe-diary-fold > summary::before { content: '▸ '; color: var(--ds-slate-text, #3f5b67); }
.dedsafe-diary-fold[open] > summary::before { content: '▾ '; }

/* ===== 0.38.0 account & plans ===== */
.dedsafe-acct-link { margin: 0 0 1rem; }
.dedsafe-acct-link a { color: var(--ds-teal, #0e4251); font-weight: 600; text-decoration: none; }
.dedsafe-acct-usage { font-size: 1.1rem; margin: 0 0 0.5rem; }
.dedsafe-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.9rem; margin: 1rem 0; }
.dedsafe-tier { border: 1.5px solid var(--ds-line, #e4dccf); border-radius: 14px; padding: 1.1rem; text-align: center; background: #fff; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; }
.dedsafe-tier.is-current { border-color: var(--ds-peach, #e8aa6f); box-shadow: 0 0 0 1px var(--ds-peach, #e8aa6f); background: #fdf3e7; }
.dedsafe-tier__name { font-family: var(--ds-serif, Georgia, serif); font-size: 1.3rem; color: var(--ds-teal, #0e4251); font-weight: 700; }
.dedsafe-tier__size { font-size: 1.1rem; color: var(--ds-ink, #14313a); }
.dedsafe-tier__badge { font-size: 0.8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #3a2a15; background: var(--ds-peach, #e8aa6f); border-radius: 20px; padding: 0.2rem 0.7rem; }

/* ===== 0.39.0 label chooser + contact search ===== */
.ds-labelfield { display: flex; flex-direction: column; gap: 0.4rem; }
.ds-phonerow .ds-labelfield { flex: 0 0 180px; }
.ds-daterow .ds-labelfield { flex: 1 1 100%; }
.ds-labelsel, .ds-labelcustom { width: 100%; }

/* ===== 0.40.0 anniversary years + gift themes ===== */
.dedsafe-tag--gift { background: #f6ecd8; color: #7a5a1e; }
.dedsafe-tag--special { background: var(--ds-peach, #e8aa6f); color: #3a2a15; font-weight: 700; }
.dedsafe-anniv-special { display: inline-block; font-size: 0.82rem; font-weight: 700; color: #b06a12; margin-left: 0.15rem; }

/* ===== 0.41.0 anniversary gift table ===== */
.dedsafe-annivtable { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; }
.dedsafe-annivtable th { background: var(--ds-teal, #0e4251); color: #fff; text-align: left; padding: 0.6rem 0.8rem; }
.dedsafe-annivtable td { padding: 0.55rem 0.8rem; border-bottom: 1px solid var(--ds-line, #e4dccf); }
.dedsafe-annivtable tr.is-milestone td { background: #fdf3e7; font-weight: 600; }
a.dedsafe-tag--gift { text-decoration: none; }
a.dedsafe-tag--gift:hover { background: #efe0c4; }

/* ===== 0.42.0 organ donation + SMS ===== */
.dedsafe-organ-status { display: flex; flex-direction: column; gap: 0.3rem; margin: 0.5rem 0; }
.dedsafe-organ-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0.3rem 1rem; margin: 0.4rem 0 0.5rem; }
.dedsafe-field-label { font-weight: 700; color: var(--ds-teal, #0e4251); margin: 0.5rem 0 0.2rem; }
.dedsafe-share__sms { margin-top: 0.75rem; }
.sos-block--organ { border-top: 2px solid #d9b3c9; }
.sos-block--organ h2 { color: #8a3d6b; }

/* ===== 0.43.0 help article links ===== */
.dedsafe-article__links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.25rem 0; }

/* ===== 0.44.0 print callout ===== */
.dedsafe-print-callout { display: flex; gap: 1rem; align-items: center; background: #fdf3e7; border: 1px solid var(--ds-peach, #e8aa6f); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.dedsafe-print-callout__icon { font-size: 2.4rem; line-height: 1; flex: 0 0 auto; }
.dedsafe-print-callout__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.3rem; margin: 0 0 0.25rem; }
.dedsafe-print-callout__text { color: var(--ds-ink, #14313a); margin: 0 0 0.75rem; line-height: 1.5; }
@media (max-width: 520px) { .dedsafe-print-callout { flex-direction: column; text-align: center; } }

/* ===== 0.45.0 "?" tooltips for tricky fields ===== */
.ds-tip { position: relative; display: inline-block; vertical-align: middle; margin-left: 0.35rem; }
.ds-tip__btn { width: 24px; height: 24px; border-radius: 50%; border: 1.5px solid var(--ds-sage, #92a493); background: #fff; color: var(--ds-teal, #0e4251); font-weight: 700; font-size: 0.9rem; line-height: 1; padding: 0; cursor: pointer; }
.ds-tip__btn:hover { background: var(--ds-mist, #eef1ea); }
.ds-tip__btn:focus-visible { outline: 3px solid var(--ds-peach, #e8aa6f); outline-offset: 2px; }
.ds-tip__bubble { display: none; position: absolute; z-index: 40; left: 0; top: 135%; width: 260px; max-width: 78vw; background: var(--ds-teal, #0e4251); color: #fff; padding: 0.7rem 0.85rem; border-radius: 10px; font-size: 0.92rem; font-weight: 400; line-height: 1.45; box-shadow: 0 8px 24px rgba(0,0,0,0.2); }
.ds-tip__bubble::before { content: ''; position: absolute; top: -6px; left: 9px; border: 6px solid transparent; border-top: 0; border-bottom-color: var(--ds-teal, #0e4251); }
.ds-tip:hover .ds-tip__bubble, .ds-tip:focus-within .ds-tip__bubble { display: block; }

/* ===== 0.46.0 journal + diary tabs ===== */
.dedsafe-diarytabs { display: flex; gap: 0.5rem; margin: 0 0 1.25rem; border-bottom: 2px solid var(--ds-mist, #cbd1c5); }
.dedsafe-diarytab { display: inline-block; padding: 0.6rem 1.1rem; text-decoration: none; color: var(--ds-slate-text, #3f5b67); font-weight: 600; border-bottom: 3px solid transparent; margin-bottom: -2px; }
.dedsafe-diarytab:hover { color: var(--ds-teal, #0e4251); }
.dedsafe-diarytab.is-active { color: var(--ds-teal, #0e4251); border-bottom-color: var(--ds-peach, #e8aa6f); }
.dedsafe-journal { display: flex; flex-direction: column; gap: 1rem; }
.dedsafe-journal__entry { display: flex; gap: 1rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px; padding: 1.1rem 1.25rem; }
.dedsafe-journal__date { flex: 0 0 64px; text-align: center; background: var(--ds-teal, #0e4251); color: #fff; border-radius: 12px; padding: 0.5rem 0; height: -moz-fit-content; height: fit-content; }
.dedsafe-journal__day { display: block; font-size: 1.6rem; font-weight: 800; line-height: 1; }
.dedsafe-journal__mon { display: block; text-transform: uppercase; font-size: 0.8rem; letter-spacing: 0.05em; }
.dedsafe-journal__yr { display: block; font-size: 0.72rem; opacity: 0.8; }
.dedsafe-journal__body { flex: 1 1 auto; min-width: 0; }
.dedsafe-journal__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.25rem; margin: 0 0 0.4rem; }
.dedsafe-journal__mood { font-size: 1.2rem; }
.dedsafe-journal__text { color: var(--ds-ink, #14313a); line-height: 1.6; margin: 0 0 0.6rem; white-space: pre-line; }
.dedsafe-journal__tools { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.dedsafe-moodpick { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.2rem 0 0.5rem; }
.dedsafe-mood { cursor: pointer; border: 1.5px solid var(--ds-line, #c9cbb8); border-radius: 12px; padding: 0.45rem 0.7rem; font-size: 1.4rem; line-height: 1; background: #fff; }
.dedsafe-mood span { font-size: 1.4rem; }
.dedsafe-mood input { position: absolute; opacity: 0; width: 0; height: 0; }
.dedsafe-mood.is-active, .dedsafe-mood:has(input:checked) { border-color: var(--ds-peach, #e8aa6f); background: #fdf3e7; }
.dedsafe-mood span:only-child { font-size: 0.95rem; }

/* ===== 0.47.0 Today panel + shopping list ===== */
.dedsafe-today { background: #fdf6ec; border: 1px solid var(--ds-peach, #e8aa6f); border-radius: 16px; padding: 1.1rem 1.35rem; margin: 0 0 1.5rem; }
.dedsafe-today--clear { background: #eef6ec; border-color: #bcd9b6; }
.dedsafe-today__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.4rem; margin: 0 0 0.6rem; }
.dedsafe-today__none { margin: 0; color: #2f6a27; font-size: 1.1rem; }
.dedsafe-today__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.dedsafe-today__item { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px; padding: 0.6rem 0.85rem; }
.dedsafe-today__item.is-overdue { border-left: 5px solid #b4472f; }
.dedsafe-today__item.is-today { border-left: 5px solid var(--ds-peach, #e8aa6f); }
.dedsafe-today__tick { flex: 0 0 auto; margin: 0; }
.dedsafe-today__check { font-size: 1.6rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ds-slate-text, #3f5b67); padding: 0; }
.dedsafe-today__check:hover { color: var(--ds-teal, #0e4251); }
.dedsafe-today__when { flex: 0 0 auto; font-weight: 700; color: var(--ds-slate-text, #3f5b67); font-size: 0.9rem; min-width: 5.5rem; }
.is-overdue .dedsafe-today__when { color: #b4472f; }
.is-today .dedsafe-today__when { color: #b06a12; }
.dedsafe-today__what { flex: 1 1 auto; font-size: 1.08rem; color: var(--ds-ink, #14313a); }
.dedsafe-today__more { display: inline-block; margin-top: 0.75rem; color: var(--ds-teal, #0e4251); font-weight: 600; text-decoration: none; }

.dedsafe-shop-add { display: flex; gap: 0.5rem; flex-wrap: wrap; margin: 0 0 1.25rem; }
.dedsafe-shop-add input[type="text"] { flex: 1 1 auto; min-width: 160px; }
.dedsafe-shop-add__qty { flex: 0 0 140px !important; min-width: 0 !important; }
.dedsafe-shop { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.dedsafe-shop__item { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px; padding: 0.6rem 0.9rem; }
.dedsafe-shop__item.is-got { opacity: 0.55; }
.dedsafe-shop__item.is-got .dedsafe-shop__name { text-decoration: line-through; }
.dedsafe-shop__tick { margin: 0; flex: 0 0 auto; }
.dedsafe-shop__check { font-size: 1.7rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--ds-teal, #0e4251); padding: 0; }
.dedsafe-shop__name { flex: 1 1 auto; font-size: 1.15rem; color: var(--ds-ink, #14313a); }
.dedsafe-shop__qty { color: var(--ds-slate-text, #3f5b67); font-size: 0.95rem; }
.dedsafe-shop__del { flex: 0 0 auto; }

/* ===== 0.48.0 on this day + quick shopping ===== */
.dedsafe-onthisday { background: #f3f0f8; border: 1px solid #cbbfe0; border-left: 5px solid #8a6fb0; border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.dedsafe-onthisday__title { font-family: var(--ds-serif, Georgia, serif); color: #5b3f86; font-size: 1.25rem; margin: 0 0 0.6rem; }
.dedsafe-onthisday__item { display: flex; gap: 0.85rem; align-items: baseline; padding: 0.35rem 0; }
.dedsafe-onthisday__year { flex: 0 0 auto; font-weight: 800; color: #8a6fb0; min-width: 3rem; }
.dedsafe-onthisday__name { color: var(--ds-teal, #0e4251); font-weight: 700; text-decoration: none; }
.dedsafe-onthisday__name:hover { text-decoration: underline; }
.dedsafe-onthisday__snip { margin: 0.15rem 0 0; color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; }

.dedsafe-quickshop { background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 1.5rem; }
.dedsafe-quickshop__form label { font-weight: 700; color: var(--ds-teal, #0e4251); display: block; margin-bottom: 0.4rem; }
.dedsafe-quickshop__row { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.dedsafe-quickshop__row input { flex: 1 1 auto; min-width: 160px; }
.dedsafe-quickshop__link { display: inline-block; margin-top: 0.6rem; color: var(--ds-teal, #0e4251); font-weight: 600; text-decoration: none; }

/* ===== 0.48.1 shopping print (fragment) ===== */
.shop-print { max-width: 640px; margin: 1rem auto; }
.shop-print__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.8rem; border-bottom: 2px solid var(--ds-teal, #0e4251); padding-bottom: 0.4rem; }
.shop-print__list { list-style: none; padding: 0; font-size: 1.25rem; }
.shop-print__item { padding: 0.55rem 0; border-bottom: 1px dashed var(--ds-sage, #92a493); display: flex; align-items: center; gap: 0.75rem; }
.shop-print__box { display: inline-block; width: 22px; height: 22px; border: 2px solid var(--ds-teal, #0e4251); border-radius: 4px; flex: 0 0 auto; }
.shop-print__qty { color: var(--ds-slate-text, #3f5b67); font-size: 1rem; }
.shop-print__done { text-decoration: line-through; color: #8a978c; }
.shop-print__toolbar { margin: 0 0 1rem; }
@media print { .shop-print__toolbar { display: none; } .dedsafe-appnav, .dedsafe-textsize { display: none; } }

/* ===== 0.49.0 diary views + event search ===== */
.dedsafe-calbar { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; justify-content: space-between; margin: 0 0 1.25rem; }
.dedsafe-calviews { display: inline-flex; gap: 0.3rem; background: var(--ds-mist, #eef1ea); border-radius: 24px; padding: 0.25rem; }
.dedsafe-calview { padding: 0.4rem 1rem; border-radius: 20px; text-decoration: none; color: var(--ds-slate-text, #3f5b67); font-weight: 600; }
.dedsafe-calview:hover { color: var(--ds-teal, #0e4251); }
.dedsafe-calview.is-active { background: var(--ds-teal, #0e4251); color: #fff; }
.dedsafe-calsearch { display: flex; gap: 0.4rem; }
.dedsafe-calsearch input[type="search"] { min-width: 180px; }
.dedsafe-weekgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem; }
.dedsafe-weekday { border: 1px solid var(--ds-line, #e4dccf); border-radius: 10px; padding: 0.5rem; min-height: 110px; background: #fff; display: flex; flex-direction: column; gap: 0.3rem; }
.dedsafe-weekday.is-today { border-color: var(--ds-peach, #e8aa6f); box-shadow: inset 0 0 0 1px var(--ds-peach, #e8aa6f); }
.dedsafe-weekday__head { font-weight: 700; color: var(--ds-teal, #0e4251); text-decoration: none; font-size: 0.9rem; }
.dedsafe-weekday__ev { display: block; font-size: 0.8rem; background: var(--ds-teal, #0e4251); color: #fff; border-radius: 6px; padding: 2px 5px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dedsafe-weekday__ev.is-done { background: var(--ds-sage-strong, #5f7461); text-decoration: line-through; }
.dedsafe-weekday__add { color: var(--ds-slate-text, #3f5b67); text-decoration: none; font-size: 1.2rem; align-self: flex-start; }
.dedsafe-yeargrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.8rem; }
.dedsafe-yearmonth { border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px; padding: 0.75rem; background: #fff; }
.dedsafe-yearmonth__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--ds-serif, Georgia, serif); font-weight: 700; color: var(--ds-teal, #0e4251); text-decoration: none; font-size: 1.1rem; margin-bottom: 0.4rem; }
.dedsafe-yearmonth__count { background: var(--ds-peach, #e8aa6f); color: #3a2a15; border-radius: 20px; font-size: 0.75rem; padding: 0.1rem 0.5rem; font-family: var(--ds-sans, sans-serif); }
.dedsafe-yearmonth__ev { display: block; font-size: 0.82rem; color: var(--ds-ink, #14313a); text-decoration: none; padding: 1px 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dedsafe-yearmonth__ev:hover { color: var(--ds-teal, #0e4251); }
.dedsafe-yearmonth__more { font-size: 0.75rem; color: var(--ds-slate-text, #3f5b67); }
@media (max-width: 700px) { .dedsafe-weekgrid { grid-template-columns: 1fr; } .dedsafe-weekday { min-height: 0; } }

/* ===== 0.50.0 passwords vault ===== */
.dedsafe-callout { border-radius: 12px; padding: 0.9rem 1.1rem; margin: 0 0 1.25rem; }
.dedsafe-callout--warn { background: #fdf3e7; border: 1px solid var(--ds-peach, #e8aa6f); color: #7a4a12; }
.dedsafe-form-error { color: #b4472f; font-weight: 600; margin: 0.4rem 0; }
.dedsafe-vaultbar { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; margin: 0 0 1.25rem; }
.dedsafe-vaultbar input[type="search"] { flex: 1 1 auto; min-width: 160px; }
.dedsafe-vaultform { max-width: 520px; background: var(--ds-mist, #eef1ea); border-radius: 14px; padding: 1.1rem 1.25rem; margin: 0 0 1.25rem; }
.dedsafe-vaultform__pw { display: flex; gap: 0.5rem; }
.dedsafe-vaultform__pw input { flex: 1 1 auto; }
.dedsafe-vaultitem { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 12px; padding: 0.75rem 1rem; margin-bottom: 0.5rem; }
.dedsafe-vaultitem__main { flex: 1 1 180px; min-width: 0; }
.dedsafe-vaultitem__label { display: block; font-weight: 700; color: var(--ds-teal, #0e4251); font-size: 1.1rem; }
.dedsafe-vaultitem__user { display: block; color: var(--ds-ink-soft, #4c5f66); font-size: 0.95rem; }
.dedsafe-vaultitem__pw { flex: 0 0 auto; }
.dedsafe-vaultitem__dots { font-family: monospace; font-size: 1.05rem; color: var(--ds-ink, #14313a); }
.dedsafe-vaultitem__act { display: flex; gap: 0.35rem; flex-wrap: wrap; }

/* ===== 0.51.0 print & keep hub ===== */
.dedsafe-printgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.dedsafe-printcard { background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 16px; padding: 1.3rem; display: flex; flex-direction: column; gap: 0.5rem; }
.dedsafe-printcard__icon { font-size: 2.6rem; line-height: 1; }
.dedsafe-printcard__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.35rem; margin: 0; }
.dedsafe-printcard__text { color: var(--ds-ink-soft, #4c5f66); line-height: 1.5; margin: 0 0 0.5rem; flex: 1 1 auto; }
.dedsafe-printcard .ds-btn { margin-top: 0.25rem; }

/* ===== 0.53.0 customisable home ===== */
.dedsafe-customise { margin: 2rem 0 0; border-top: 1px solid var(--ds-mist, #cbd1c5); padding-top: 1rem; }
.dedsafe-customise__summary { cursor: pointer; font-weight: 700; color: var(--ds-teal, #0e4251); font-size: 1.05rem; list-style: none; }
.dedsafe-customise__summary::-webkit-details-marker { display: none; }
.dedsafe-customise__sub { display: block; font-weight: 400; font-size: .95rem; color: var(--ds-slate-text, #3f5b67); margin-top: 2px; }
.dedsafe-customise__body { margin-top: 0.9rem; background: var(--ds-mist, #eef1ea); border-radius: 12px; padding: 1.1rem 1.25rem; }
.dedsafe-customise__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.5rem 1rem; margin-bottom: 0.75rem; }
.dedsafe-customise__grid .dedsafe-check { display: flex; align-items: center; gap: 0.5rem; }

/* ===== 0.54.0 emergency card — presentation polish ===== */
.dedsafe-app .sos-card, .sos-card { margin: 1.5rem auto; }
.sos-card__header { background: linear-gradient(135deg, #0e4251, #14313a); color: #fff; padding: 1.25rem 1.5rem 1.4rem; }
.sos-card__header .sos-card__name { color: #fff; font-size: 2rem; margin: 0 0 0.75rem; line-height: 1.1; }
.sos-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.sos-chip { display: inline-flex; flex-direction: column; background: rgba(255,255,255,0.14); border: 1px solid rgba(255,255,255,0.25); border-radius: 10px; padding: 0.4rem 0.75rem; min-width: 70px; }
.sos-chip__k { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em; opacity: 0.85; }
.sos-chip__v { font-size: 1.15rem; font-weight: 800; }
.sos-chip--blood { background: #c62d1f; border-color: #e0685c; }
.sos-card__999 { background: #b8860b; background: #f3d98a; color: #5a4302; font-weight: 800; text-align: center; padding: 0.7rem 1rem; font-size: 1.1rem; letter-spacing: 0.01em; }
.sos-block h2 { display: flex; align-items: center; gap: 0.45rem; }
.sos-contact { display: flex; flex-direction: column; gap: 0.1rem; text-decoration: none; border: 1.5px solid var(--ds-sage, #92a493); border-radius: 12px; padding: 0.7rem 0.9rem; margin-bottom: 0.6rem; background: #f7faf6; color: #14313a; }
.sos-contact:last-child { margin-bottom: 0; }
a.sos-contact:hover { border-color: var(--ds-teal, #0e4251); background: #eef4ee; }
.sos-contact__role { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ds-slate-text, #3f5b67); }
.sos-contact__name { font-size: 1.2rem; font-weight: 700; }
.sos-contact__phone { font-size: 1.15rem; font-weight: 800; color: #0a58ca; margin-top: 0.15rem; }

/* ===== 0.55.0 reorder + rename + pin ===== */
.dedsafe-customise__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.15rem; margin: 1rem 0 0.4rem; }
.dedsafe-reorder { list-style: none; margin: 0.4rem 0 0.5rem; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.dedsafe-reorder__row { display: flex; align-items: center; gap: 0.5rem; background: #fff; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 10px; padding: 0.5rem 0.7rem; }
.dedsafe-reorder__row.is-dragging { opacity: 0.5; border-color: var(--ds-peach, #e8aa6f); }
.dedsafe-reorder__handle { cursor: grab; color: var(--ds-slate-text, #3f5b67); font-size: 1.3rem; line-height: 1; }
.dedsafe-reorder__show { margin: 0; }
.dedsafe-reorder__label { flex: 1 1 auto; min-width: 100px; padding: 0.35rem 0.5rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 8px; }
.dedsafe-reorder__moves { display: inline-flex; flex-direction: column; }
.dedsafe-reorder__moves button { background: none; border: 0; cursor: pointer; color: var(--ds-slate-text, #3f5b67); font-size: 0.75rem; line-height: 1.1; padding: 0 0.3rem; }
.dedsafe-reorder__moves button:hover { color: var(--ds-teal, #0e4251); }
.dedsafe-drawer-wrap { position: relative; }
.dedsafe-pin { position: absolute; top: 6px; right: 6px; z-index: 2; margin: 0; }
.dedsafe-pin__btn { background: rgba(255,255,255,0.9); border: 1px solid var(--ds-line, #c9cbb8); border-radius: 50%; width: 34px; height: 34px; cursor: pointer; font-size: 1rem; line-height: 1; }
.dedsafe-pin__btn:hover { background: #fff; border-color: var(--ds-peach, #e8aa6f); }
.dedsafe-drawer-wrap.is-pinned .dedsafe-drawer-card { border-color: var(--ds-peach, #e8aa6f); box-shadow: inset 0 0 0 1px var(--ds-peach, #e8aa6f); }

/* ===== 0.56.0 welcome line + medicine due + soft callout ===== */
.dedsafe-callout--soft { background: #eef6ec; border: 1px solid #bcd9b6; color: #2f6a27; }
.dedsafe-doctor-nudge a { color: var(--ds-teal, #0e4251); font-weight: 700; text-decoration: none; margin-left: 0.3rem; }
.dedsafe-hello { margin: 0 0 1.25rem; }
.dedsafe-hello__greet { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.7rem; margin: 0; }
.dedsafe-hello__date { color: var(--ds-slate-text, #3f5b67); margin: 0.15rem 0 0; font-size: 1.02rem; }
.dedsafe-med__reorder.is-due { color: #b4472f; font-weight: 700; }

/* ===== 0.57.0 journal photo ===== */
.dedsafe-journal__photo { display: inline-block; margin: 0.3rem 0 0.6rem; }
.dedsafe-journal__photo img { max-width: 220px; max-height: 180px; border-radius: 10px; border: 1px solid var(--ds-line, #e4dccf); object-fit: cover; }
.dedsafe-journal-photo-edit { margin: 0.4rem 0; }
.dedsafe-journal-photo-edit img { max-width: 200px; max-height: 160px; border-radius: 10px; border: 1px solid var(--ds-line, #e4dccf); display: block; margin-bottom: 0.4rem; }

/* ===== 0.58.0 living helper portal ===== */
.dedsafe-helperbar { background: var(--ds-teal, #0e4251); color: #fff; border-radius: 12px; padding: 0.8rem 1.1rem; margin: 1rem 0 1.5rem; font-size: 1.05rem; }
.dedsafe-helper-drawer { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.15rem; margin: 1rem 0 0.4rem; }

/* ===== 0.59.0 gentle nudge banner ===== */
.dedsafe-nudge { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; background: #f3f6f1; border: 1px solid var(--ds-sage, #92a493); border-left: 5px solid var(--ds-peach, #e8aa6f); border-radius: 12px; padding: 0.85rem 1.1rem; margin: 0 0 1.25rem; }
.dedsafe-nudge__icon { font-size: 1.6rem; line-height: 1; flex: 0 0 auto; }
.dedsafe-nudge__msg { flex: 1 1 220px; color: var(--ds-ink, #14313a); font-size: 1.05rem; }
.dedsafe-nudge__cta { flex: 0 0 auto; }
.dedsafe-nudge__dismiss { margin: 0; flex: 0 0 auto; }
.dedsafe-nudge__x { background: none; border: 0; cursor: pointer; color: var(--ds-slate-text, #3f5b67); font-size: 1.1rem; line-height: 1; padding: 0.3rem 0.5rem; }
.dedsafe-nudge__x:hover { color: var(--ds-teal, #0e4251); }

/* ===== 0.60.0 comfort controls row ===== */

/* ===== 0.61.0 activity trail ===== */
.dedsafe-activity { list-style: none; margin: 0.5rem 0; padding: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.dedsafe-activity__row { display: flex; align-items: center; gap: 0.75rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 10px; padding: 0.6rem 0.9rem; }
.dedsafe-activity__icon { font-size: 1.4rem; line-height: 1; flex: 0 0 auto; }
.dedsafe-activity__msg { flex: 1 1 auto; color: var(--ds-ink, #14313a); }
.dedsafe-activity__when { flex: 0 0 auto; color: var(--ds-slate-text, #3f5b67); font-size: 0.85rem; }

/* ===== 0.63.0 doc note + getting-started checklist ===== */
.dedsafe-file__note { display: block; font-size: 0.92rem; color: #6a5a2e; background: #fbf3e2; border-radius: 6px; padding: 2px 7px; margin-top: 3px; }
.dedsafe-checklist { background: #eef6ec; border: 1px solid #bcd9b6; border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.dedsafe-checklist__head { display: flex; align-items: center; gap: 0.6rem; }
.dedsafe-checklist__title { font-family: var(--ds-serif, Georgia, serif); color: #2f6a27; font-size: 1.25rem; margin: 0; flex: 1 1 auto; }
.dedsafe-checklist__count { color: #2f6a27; font-weight: 700; font-size: 0.9rem; }
.dedsafe-checklist__dismiss { margin: 0; }
.dedsafe-checklist__bar { height: 8px; background: #d3e6cd; border-radius: 20px; margin: 0.6rem 0; overflow: hidden; }
.dedsafe-checklist__fill { height: 100%; background: #5c9a4f; border-radius: 20px; }
.dedsafe-checklist__list { list-style: none; margin: 0; padding: 0; }
.dedsafe-checklist__step { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0; font-size: 1.05rem; }
.dedsafe-checklist__step a { color: var(--ds-teal, #0e4251); font-weight: 600; text-decoration: none; }
.dedsafe-checklist__step.is-done { color: #6a7d68; }
.dedsafe-checklist__tick { font-weight: 800; color: #5c9a4f; width: 1.2rem; text-align: center; }

/* ===== 0.64.0 trash ===== */
.dedsafe-file__actions .dedsafe-note__btn--accent { border-color: var(--ds-sage, #92a493); }

/* ===== 0.66.0 drawer drag reorder ===== */
.dedsafe-drawers__hint { color: var(--ds-slate-text, #3f5b67); font-size: 0.95rem; margin: 0 0 0.75rem; }
.dedsafe-hidden-form { display: none; }
.dedsafe-drawer-wrap.is-dragging { opacity: 0.5; }
.dedsafe-drawer-handle { position: absolute; top: 8px; left: 8px; z-index: 3; cursor: grab; color: var(--ds-slate-text, #3f5b67); font-size: 1.3rem; line-height: 1; background: rgba(255,255,255,0.9); border: 1px solid var(--ds-line, #e4dccf); border-radius: 8px; padding: 1px 6px; }
.dedsafe-drawer-handle:active { cursor: grabbing; }
.dedsafe-drawer-arrows { position: absolute; bottom: 8px; right: 8px; z-index: 3; display: inline-flex; flex-direction: column; gap: 2px; }
.dedsafe-drawer-arrows form { margin: 0; }
.dedsafe-drawer-arrow { background: rgba(255,255,255,0.92); border: 1px solid var(--ds-line, #e4dccf); border-radius: 6px; width: 30px; height: 22px; cursor: pointer; color: var(--ds-slate-text, #3f5b67); font-size: 0.7rem; line-height: 1; }
.dedsafe-drawer-arrow:hover { color: var(--ds-teal, #0e4251); border-color: var(--ds-peach, #e8aa6f); }
.dedsafe-drawer-card { padding-top: 2.4rem; }

/* ===== 0.67.0 drawer search + sort ===== */
.dedsafe-drawers-tools { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; align-items: center; margin: 0 0 0.9rem; }
.dedsafe-drawers-search { flex: 1 1 220px; max-width: 340px; min-height: 44px; padding: 0.5rem 0.8rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 10px; font-size: 1rem; }
.dedsafe-drawers-sort { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
.dedsafe-drawers-sort__lbl { color: var(--ds-slate-text, #3f5b67); font-size: 0.9rem; margin-right: 0.15rem; }
.dedsafe-drawers-sort .dedsafe-inline-form { margin: 0; }
.dedsafe-sort-pill { background: #fff; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 20px; padding: 0.35rem 0.8rem; cursor: pointer; color: var(--ds-teal, #0e4251); font-size: 0.92rem; }
.dedsafe-sort-pill:hover { border-color: var(--ds-peach, #e8aa6f); }
.dedsafe-sort-pill.is-active { background: var(--ds-teal, #0e4251); color: #fff; border-color: var(--ds-teal, #0e4251); }
.dedsafe-drawers-noresults { color: var(--ds-slate-text, #3f5b67); font-style: italic; }

/* ===== 0.68.0 trimmed nav + More panel ===== */
.dedsafe-appnav ul { overflow: visible; }
.dedsafe-appnav__ico { font-size: 1.05em; }
.dedsafe-appnav__more-li { position: relative; }
.dedsafe-nav-more { display: inline-block; }
.dedsafe-nav-more__btn { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.35rem; }
.dedsafe-nav-more__btn::-webkit-details-marker { display: none; }
.dedsafe-nav-more__btn::after { content: '▾'; font-size: 0.8em; margin-left: 0.1rem; color: var(--ds-slate-text, #3f5b67); }
.dedsafe-nav-more[open] .dedsafe-nav-more__btn::after { content: '▴'; }
.dedsafe-nav-more__btn.is-active { color: var(--ds-teal, #0e4251); font-weight: 700; }
.dedsafe-nav-more__panel { position: absolute; top: 100%; left: 0; margin-top: 0.4rem; min-width: 260px; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-radius: 14px; box-shadow: 0 10px 30px rgba(14,66,81,0.15); padding: 0.75rem; z-index: 60; }
.dedsafe-nav-more__group + .dedsafe-nav-more__group { margin-top: 0.6rem; border-top: 1px solid #efe9dd; padding-top: 0.6rem; }
.dedsafe-nav-more__head { display: block; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ds-slate-text, #3f5b67); padding: 0 0.4rem 0.25rem; }
.dedsafe-nav-more__panel ul { list-style: none; margin: 0; padding: 0; display: block; }
.dedsafe-nav-more__panel li { display: block; }
.dedsafe-nav-more__panel li a { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.5rem; border-radius: 10px; text-decoration: none; color: var(--ds-ink, #14313a); font-size: 1.05rem; min-height: 44px; }
.dedsafe-nav-more__panel li a:hover { background: #f3f6f1; }
.dedsafe-nav-more__panel li.is-active a { background: #eef4ee; color: var(--ds-teal, #0e4251); font-weight: 700; }
@media (max-width: 560px) { .dedsafe-nav-more__panel { left: auto; right: 0; min-width: 220px; } }

/* ===== 0.69.2 pointer-drag drawers (touch-friendly handle, no arrows) ===== */
.dedsafe-drawer-handle { touch-action: none; -webkit-user-select: none; user-select: none; font-size: 1.5rem; padding: 3px 9px; }
.dedsafe-drawer-handle:hover { border-color: var(--ds-peach, #e8aa6f); color: var(--ds-teal, #0e4251); }
.dedsafe-drawer-wrap.is-dragging { opacity: 0.9; transform: scale(1.02); box-shadow: 0 12px 28px rgba(14,66,81,0.22); z-index: 5; position: relative; }
.dedsafe-drawer-wrap.is-dragging .dedsafe-drawer-card { border-color: var(--ds-peach, #e8aa6f); }

/* ===== 0.69.3 coloured pin (green = not pinned, peach = pinned) ===== */
.dedsafe-pin__btn { color: #2e9b57; display: inline-flex; align-items: center; justify-content: center; }
.dedsafe-pin__btn:hover { color: #23814a; border-color: #2e9b57; }
.dedsafe-drawer-wrap.is-pinned .dedsafe-pin__btn { color: var(--ds-peach, #e8aa6f); }
.dedsafe-drawer-wrap.is-pinned .dedsafe-pin__btn:hover { color: #d8944f; border-color: var(--ds-peach, #e8aa6f); }
.dedsafe-pin__ico { display: block; }

/* ===== 0.69.6 emergency-card QR fit ===== */
.sos-wallet__scan .ds-qr { flex: 0 0 auto; }
.sos-wallet__scan .ds-qr img, .sos-wallet__scan .ds-qr canvas { width: 24mm; height: 24mm; display: block; }
.sos-fridge__qr .ds-qr img, .sos-fridge__qr .ds-qr canvas { width: 34mm; height: 34mm; display: block; }
.sos-wallet__front { overflow: hidden; }

/* ===== 0.70.0 when I'm gone pack ===== */
.dedsafe-radio-row { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0.2rem 0 0.6rem; }
.dedsafe-radio { display: inline-flex; align-items: center; gap: 0.4rem; font-size: 1.05rem; }
.dedsafe-estate textarea { min-height: 3rem; }
.est-print { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem; }
.est-print__toolbar { text-align: center; margin-bottom: 1.5rem; }
.est-print__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.9rem; margin: 0 0 0.3rem; }
.est-print__lead { color: var(--ds-slate-text, #3f5b67); margin: 0 0 0.5rem; }
.est-print__date { font-size: 0.9rem; }
.est-print__intro { font-style: italic; color: var(--ds-ink, #14313a); border-left: 3px solid var(--ds-peach, #e8aa6f); padding-left: 0.9rem; margin: 0 0 1.5rem; }
.est-row { margin: 0 0 1.1rem; padding-bottom: 0.9rem; border-bottom: 1px solid #ece5d8; }
.est-row h3 { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.1rem; margin: 0 0 0.25rem; }
.est-row p { margin: 0; font-size: 1.05rem; line-height: 1.55; }
.est-print__foot { margin-top: 1.5rem; font-size: 0.85rem; color: var(--ds-slate-text, #3f5b67); }
@media print { .est-print__toolbar { display: none; } }

/* ===== 0.71.0 "For my family" — professional document ===== */
.est-doc { max-width: 720px; margin: 0 auto; padding: 2rem 1.6rem 3rem; color: #14313a; }
.est-doc__toolbar { text-align: center; margin-bottom: 1.75rem; }
.est-doc__head { border-bottom: 2px solid var(--ds-teal, #0e4251); padding-bottom: 1rem; margin-bottom: 1.6rem; }
.est-doc__brand { font-family: var(--ds-serif, Georgia, serif); font-weight: 800; font-size: 1.05rem; color: var(--ds-teal, #0e4251); letter-spacing: 0.01em; }
.est-doc__brand span { color: var(--ds-peach, #e8aa6f); }
.est-doc__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 2.1rem; margin: 0.35rem 0 0.25rem; line-height: 1.1; }
.est-doc__by { color: var(--ds-slate-text, #3f5b67); font-size: 0.95rem; margin: 0; }
.est-doc__dot { margin: 0 0.5rem; opacity: 0.6; }
.est-doc__intro { font-style: italic; color: #2a3d44; border-left: 3px solid var(--ds-peach, #e8aa6f); padding: 0.2rem 0 0.2rem 1rem; margin: 0 0 2rem; font-size: 1.05rem; line-height: 1.6; }
.est-doc__empty { font-style: italic; color: var(--ds-slate-text, #3f5b67); }
.est-sec { margin: 0 0 1.6rem; page-break-inside: avoid; }
.est-sec__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.3rem; border-bottom: 1px solid #e4dccf; padding-bottom: 0.35rem; margin: 0 0 0.9rem; }
.est-item { margin: 0 0 1rem; page-break-inside: avoid; }
.est-item__label { font-weight: 700; color: var(--ds-slate-text, #3f5b67); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.15rem; }
.est-item__value { font-size: 1.05rem; line-height: 1.55; }
.est-doc__foot { margin-top: 2.2rem; border-top: 1px solid #e4dccf; padding-top: 1.1rem; }
.est-doc__note { font-size: 0.85rem; color: var(--ds-slate-text, #3f5b67); font-style: italic; margin: 0 0 1.6rem; }
.est-doc__sign { display: flex; gap: 2.5rem; }
.est-doc__signline { flex: 1; border-top: 1px solid #9aa4a0; padding-top: 0.3rem; }
.est-doc__signline span { font-size: 0.78rem; color: var(--ds-slate-text, #3f5b67); }
@media print {
	.est-doc__toolbar { display: none; }
	.est-doc { max-width: 100%; padding: 0; }
	.est-doc__head { border-bottom-color: #0e4251; }
}

/* ===== 0.71.0 estate wizard step intros ===== */
.est-step-intro { background: #f3f6f1; border-left: 4px solid var(--ds-sage, #92a493); border-radius: 8px; padding: 0.7rem 1rem; margin: 0 0 1rem; font-size: 1.02rem; line-height: 1.55; color: #2a3d44; }
.est-suggest { background: #fdf3e7; border: 1px solid #f0d9b8; border-radius: 8px; padding: 0.6rem 0.9rem; margin: 0.2rem 0 0.9rem; font-size: 0.95rem; color: #6a5323; }
.est-suggest strong { color: #5a4302; }

/* ===== 0.72.0 scam safety ===== */
.dedsafe-scp { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 0 0 1.5rem; }
.dedsafe-scp__item { flex: 1 1 200px; background: #fbeeec; border: 1px solid #e6b7ad; border-radius: 12px; padding: 0.8rem 1rem; }
.dedsafe-scp__word { display: block; font-weight: 800; color: #b4472f; letter-spacing: 0.06em; font-size: 1.05rem; margin-bottom: 0.2rem; }
.dedsafe-scp__item span:last-child { color: #14313a; font-size: 0.95rem; line-height: 1.4; }
/* printable scam card */
.scam-print { max-width: 620px; margin: 0 auto; padding: 1.5rem 1rem; }
.scam-print__toolbar { text-align: center; margin-bottom: 1.5rem; }
.scam-card { border: 3px solid #b4472f; border-radius: 5mm; overflow: hidden; }
.scam-card__banner { background: #b4472f; color: #fff; text-align: center; font-weight: 800; padding: 3mm; font-size: 4.6mm; letter-spacing: 0.01em; }
.scam-card__scp { padding: 4mm 5mm 2mm; }
.scam-card__scp > div { margin-bottom: 2mm; font-size: 3.6mm; line-height: 1.35; color: #14313a; }
.scam-card__w { display: inline-block; min-width: 26mm; font-weight: 800; color: #b4472f; }
.scam-card__codeword { margin: 1mm 5mm 3mm; padding: 3mm; background: #fdf3e7; border: 1px solid #e8aa6f; border-radius: 2mm; font-size: 3.5mm; line-height: 1.4; color: #5a4302; }
.scam-card__numbers { padding: 0 5mm 3mm; }
.scam-card__numbers h3 { font-size: 3.4mm; color: #0e4251; margin: 0 0 1.5mm; text-transform: uppercase; letter-spacing: 0.04em; }
.scam-card__numbers ul { list-style: none; margin: 0; padding: 0; }
.scam-card__numbers li { font-size: 3.8mm; padding: 1mm 0; border-bottom: 0.3mm solid #eee; color: #14313a; }
.scam-card__notes { font-size: 3.3mm; color: #555; margin: 1.5mm 0 0; }
.scam-card__foot { font-size: 3mm; color: #777; padding: 2mm 5mm 4mm; margin: 0; line-height: 1.4; }
@media print { .scam-print__toolbar { display: none; } .scam-print { max-width: 100%; padding: 0; } }

/* ===== 0.73.0 I'm okay check-in ===== */
.dedsafe-checkin-panel { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; background: linear-gradient(135deg, #fdf3e7, #f3f6f1); border: 1px solid var(--ds-peach, #e8aa6f); border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 1.25rem; }
.dedsafe-checkin-panel__ask { flex: 1 1 240px; font-size: 1.1rem; color: var(--ds-ink, #14313a); font-weight: 600; }
.dedsafe-checkin-panel__btn { font-size: 1.15rem; padding: 0.7rem 1.4rem; }
.dedsafe-checkin-panel.is-done { background: #eef6ec; border-color: #bcd9b6; color: #2f6a27; font-size: 1.05rem; font-weight: 600; }
.dedsafe-check--big { font-size: 1.2rem; font-weight: 600; }
.dedsafe-check--big input { transform: scale(1.3); margin-right: 0.4rem; }

/* ===== 0.74.0 check-in day picker ===== */
.ci-days, .ci-weekly { margin: 0.2rem 0 0.6rem; }
.ci-daypick { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ci-daypick__day { display: inline-flex; align-items: center; gap: 0.35rem; background: #fff; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 20px; padding: 0.4rem 0.8rem; cursor: pointer; }
.ci-daypick__day input:checked + span { font-weight: 700; color: var(--ds-teal, #0e4251); }
.ci-weekly select { min-height: 48px; padding: 0.4rem 0.6rem; border: 1px solid var(--ds-line, #c9cbb8); border-radius: 10px; font-size: 1.05rem; }

/* ===== 0.76.0 my life story keepsake ===== */
.ls-doc__head { text-align: center; border-bottom: 2px solid var(--ds-peach, #e8aa6f); }
.ls-doc .est-doc__title { font-size: 2.4rem; }
.ls-chapter { margin: 0 0 2rem; page-break-inside: auto; }
.ls-chapter__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.5rem; text-align: center; margin: 1.5rem 0 1rem; padding-bottom: 0.4rem; border-bottom: 1px solid #e4dccf; }
.ls-qa { margin: 0 0 1.3rem; page-break-inside: avoid; }
.ls-qa__q { font-weight: 700; color: var(--ds-slate-text, #3f5b67); margin: 0 0 0.2rem; font-size: 1.02rem; }
.ls-qa__a { margin: 0; font-size: 1.08rem; line-height: 1.65; }

/* ===== 0.77.0 journal voice memories ===== */
.ds-recorder { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.3rem 0 0.4rem; }
.ds-rec__time { font-variant-numeric: tabular-nums; font-weight: 700; color: #b4472f; min-width: 3.5rem; }
.ds-rec__preview { max-width: 100%; height: 40px; }
.dedsafe-journal-audio-edit { margin: 0.4rem 0; }
.dedsafe-journal-audio-edit audio { display: block; max-width: 320px; margin-bottom: 0.4rem; height: 40px; }
.dedsafe-journal__audio { display: block; max-width: 320px; margin: 0.3rem 0 0.6rem; height: 40px; }

/* ===== 0.78.0 life story photos ===== */
.ls-photo { margin: 0.3rem 0 0.5rem; }
.ls-photo__cur { margin-bottom: 0.4rem; }
.ls-photo__cur img { max-width: 220px; max-height: 180px; border-radius: 10px; border: 1px solid var(--ds-line, #e4dccf); object-fit: cover; display: block; margin-bottom: 0.3rem; }
.ls-photo__add { display: inline-block; cursor: pointer; color: var(--ds-teal, #0e4251); font-weight: 600; border: 1px dashed var(--ds-sage, #92a493); border-radius: 10px; padding: 0.4rem 0.9rem; }
.ls-photo__add:hover { border-color: var(--ds-peach, #e8aa6f); background: #fdf3e7; }
.ls-qa__img { max-width: 260px; max-height: 220px; border-radius: 8px; border: 1px solid #e4dccf; display: block; margin: 0.3rem 0 0.5rem; object-fit: cover; }
@media print { .ls-qa__img { max-width: 60mm; max-height: 55mm; } }

/* ===== 0.80.0 branded sign-up / verify ===== */
.dedsafe-authcard { max-width: 480px; margin: 3rem auto; background: #fff; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 20px; padding: 2rem 2rem 1.5rem; box-shadow: 0 14px 40px rgba(14,66,81,0.08); }
.dedsafe-authcard--narrow { max-width: 420px; text-align: center; }
.dedsafe-authcard__head { text-align: center; margin-bottom: 1.25rem; }
.dedsafe-authcard__brand { font-family: var(--ds-serif, Georgia, serif); font-weight: 800; font-size: 1.5rem; color: var(--ds-teal, #0e4251); }
.dedsafe-authcard__brand span { color: var(--ds-peach, #e8aa6f); }
.dedsafe-authcard__icon { font-size: 2.4rem; display: block; }
.dedsafe-authcard__title { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.7rem; margin: 0.4rem 0 0.3rem; }
.dedsafe-authcard__sub { color: var(--ds-slate-text, #3f5b67); margin: 0; }
.dedsafe-authcard__foot { text-align: center; margin: 1rem 0 0; color: var(--ds-slate-text, #3f5b67); }
.dedsafe-authcard__resend { text-align: center; margin-top: 0.75rem; }
.dedsafe-code-input { text-align: center; font-size: 1.8rem; letter-spacing: 0.5rem; font-weight: 700; }
.dedsafe-linkbtn { background: none; border: 0; color: var(--ds-teal, #0e4251); text-decoration: underline; cursor: pointer; font-size: 0.98rem; }

/* ===== 0.82.0 lifecycle banner + plan picker ===== */
.dedsafe-lc-banner { border-radius: 10px; padding: 0.7rem 1.1rem; margin: 0 0 1rem; font-size: 1rem; }
.dedsafe-lc-banner a { font-weight: 700; text-decoration: none; margin-left: 0.3rem; white-space: nowrap; }
.dedsafe-lc-banner--soft { background: #eef6ec; border: 1px solid #bcd9b6; color: #2f6a27; }
.dedsafe-lc-banner--warn { background: #fbeeec; border: 1px solid #e6b7ad; color: #8a3b2e; }
.dedsafe-lc-banner--warn a { color: #8a3b2e; }
.dedsafe-plan { max-width: 1000px; margin: 2rem auto; }
.dedsafe-plan__cycle { display: flex; justify-content: center; gap: 1.5rem; margin: 0 0 1.5rem; }
.dedsafe-plan__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.dedsafe-plan__tier { background: #fff; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 16px; padding: 1.3rem 1.1rem; display: flex; flex-direction: column; position: relative; }
.dedsafe-plan__tier.is-feat { border: 2px solid var(--ds-peach, #e8aa6f); box-shadow: 0 12px 30px rgba(232,170,111,0.16); }
.dedsafe-plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ds-peach, #e8aa6f); color: #4a3204; font-weight: 700; font-size: 0.75rem; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.dedsafe-plan__name { font-family: var(--ds-serif, Georgia, serif); font-size: 1.3rem; color: var(--ds-teal, #0e4251); font-weight: 700; }
.dedsafe-plan__price { font-family: var(--ds-serif, Georgia, serif); font-size: 2rem; color: var(--ds-teal, #0e4251); line-height: 1; }
.dedsafe-plan__price span { font-size: 0.95rem; color: var(--ds-slate-text, #3f5b67); font-family: inherit; }
.dedsafe-plan__year { color: var(--ds-slate-text, #3f5b67); font-size: 0.88rem; margin-bottom: 0.6rem; }
.dedsafe-plan__tier ul { list-style: none; padding: 0; margin: 0 0 1rem; flex: 1; }
.dedsafe-plan__tier li { padding: 5px 0 5px 22px; position: relative; font-size: 0.92rem; color: var(--ds-ink, #14313a); line-height: 1.35; }
.dedsafe-plan__tier li::before { content: "✓"; position: absolute; left: 0; color: var(--ds-peach, #e8aa6f); font-weight: 800; }
.dedsafe-plan__family { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; justify-content: space-between; background: #eef4ee; border: 1px solid var(--ds-sage, #92a493); border-radius: 14px; padding: 1rem 1.25rem; margin: 1.25rem 0 1rem; }
.dedsafe-plan__famtext strong { display: block; color: var(--ds-teal, #0e4251); font-size: 1.1rem; }
.dedsafe-plan__famtext span { color: var(--ds-slate-text, #3f5b67); font-size: 0.95rem; }
@media (max-width: 900px) { .dedsafe-plan__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .dedsafe-plan__grid { grid-template-columns: 1fr; } }

/* ===== 0.84.0 family tree embed ===== */
.ds-tree-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; margin: 0 0 0.6rem; }
.ds-tree-bar__title { font-family: var(--ds-serif, Georgia, serif); font-size: 1.4rem; color: var(--ds-teal, #0e4251); font-weight: 700; margin-right: 0.6rem; }
.ds-tree-bar__hint { font-size: 0.9rem; color: var(--ds-slate-text, #3f5b67); }
.ds-tree-frame { width: 100%; height: calc(100vh - 190px); min-height: 560px; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 14px; overflow: hidden; background: #f6efe9; }
.ds-tree-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ===== 0.87.0 recommend a friend ===== */
.ds-refer-card { background: #fff; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 16px; padding: 1.4rem 1.5rem; margin: 0 0 1.5rem; max-width: 640px; }
.ds-refer-lead { color: var(--ds-slate-text, #3f5b67); margin: 0 0 1rem; }
.ds-refer-label { display: block; font-weight: 600; color: var(--ds-teal, #0e4251); margin: 0.6rem 0 0.3rem; font-size: 0.92rem; }
.ds-refer-code { font-family: var(--ds-serif, Georgia, serif); font-size: 2rem; letter-spacing: 0.35rem; font-weight: 700; color: var(--ds-teal, #0e4251); background: #f6efe9; border: 1px dashed var(--ds-peach, #e8aa6f); border-radius: 10px; padding: 0.6rem 1rem; text-align: center; }
.ds-refer-linkrow { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.ds-refer-linkrow input { flex: 1; min-width: 220px; min-height: 46px; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 10px; padding: 0.5rem 0.8rem; font-size: 0.95rem; background: #fbfaf7; }
.ds-refer-share { margin-top: 0.8rem; }
.ds-refer-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 1.5rem; }
.ds-refer-step { background: var(--ds-cream-2, #efe9e1); border: 1px solid var(--ds-line, #cbd1c5); border-radius: 12px; padding: 1rem 1.1rem; }
.ds-refer-step .n { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; background: var(--ds-peach, #e8aa6f); color: #4a3204; font-weight: 800; font-family: var(--ds-serif, Georgia, serif); margin-bottom: 0.5rem; }
.ds-refer-step p { margin: 0; color: var(--ds-ink, #14313a); }
@media (max-width: 700px) { .ds-refer-how { grid-template-columns: 1fr; } }

/* ===== 0.87.5 "When I'm gone" pack in the trustee release portal ===== */
.dedsafe-vault-estate { background: linear-gradient(150deg, #fff, #fbf5ec); border: 1px solid var(--ds-line, #cbd1c5); border-left: 4px solid var(--ds-peach, #e8aa6f); border-radius: 16px; padding: 1.5rem 1.7rem; margin: 0 0 1.8rem; }
.dedsafe-vault-estate__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.5rem; margin: 0 0 0.3rem; }
.dedsafe-vault-estate__lead { color: var(--ds-slate-text, #3f5b67); margin: 0 0 1.2rem; }
.dedsafe-vault-estate__group { margin: 0 0 1.1rem; }
.dedsafe-vault-estate__group h3 { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.1rem; margin: 0 0 0.5rem; padding-bottom: 0.3rem; border-bottom: 1px solid #eadfce; }
.dedsafe-vault-estate__item { display: flex; flex-wrap: wrap; gap: 0.2rem 1rem; padding: 0.35rem 0; }
.dedsafe-vault-estate__item .lbl { flex: 0 0 190px; font-weight: 600; color: var(--ds-slate-text, #3f5b67); font-size: 0.95rem; }
.dedsafe-vault-estate__item .val { flex: 1; min-width: 200px; color: var(--ds-ink, #14313a); }
.dedsafe-vault-estate__final { margin-top: 1rem; }
.dedsafe-vault-estate__final h3 { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.1rem; margin: 0 0 0.5rem; }
.dedsafe-vault-estate__final blockquote { font-family: var(--ds-serif, Georgia, serif); font-style: italic; color: var(--ds-teal, #0e4251); font-size: 1.15rem; border-left: 3px solid var(--ds-peach, #e8aa6f); padding-left: 1rem; margin: 0; }
@media (max-width: 560px) { .dedsafe-vault-estate__item .lbl { flex: 0 0 100%; } }

/* ===== 0.88.0 annual review ===== */
.ds-review-nudge { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.25rem; background: #fdf3e7; border: 1px solid var(--ds-peach, #e8aa6f); border-radius: 14px; padding: 1rem 1.25rem; margin: 0 0 1.2rem; }
.ds-review-nudge__txt strong { display: block; color: var(--ds-teal, #0e4251); font-size: 1.1rem; }
.ds-review-nudge__txt span { color: var(--ds-slate-text, #3f5b67); }
.ds-review { max-width: 680px; margin: 1.2rem 0; display: flex; flex-direction: column; gap: 0.6rem; }
.ds-review__item { display: flex; align-items: center; gap: 0.9rem; background: #fff; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 12px; padding: 0.9rem 1.1rem; text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.ds-review__item:hover { border-color: var(--ds-peach, #e8aa6f); transform: translateY(-1px); }
.ds-review__i { font-size: 1.6rem; flex: 0 0 auto; }
.ds-review__txt { flex: 1; }
.ds-review__h { display: block; font-weight: 700; color: var(--ds-teal, #0e4251); }
.ds-review__p { display: block; color: var(--ds-slate-text, #3f5b67); font-size: 0.95rem; }
.ds-review__go { font-size: 1.5rem; color: var(--ds-sage, #92a493); flex: 0 0 auto; }
.ds-review__actions { margin: 1.4rem 0 0.4rem; }
.ds-review__later { margin-bottom: 1rem; }

/* ===== 0.89.0 design pass: uniform drawers, colours, aligned nav ===== */
/* Uniform drawer cards — every card the same height, blurb clamped */
.dedsafe-drawers { grid-auto-rows: 1fr; align-items: stretch; }
.dedsafe-drawer-wrap { display: flex; }
.dedsafe-drawer-card { flex: 1 1 auto; width: 100%; min-height: 180px; }
.dedsafe-drawer-card__blurb { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
/* Coloured drawers — a soft band + tinted icon, set per drawer */
.dedsafe-drawer-card { position: relative; overflow: hidden; --dcol: var(--ds-teal, #0e4251); }
.dedsafe-drawer-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--dcol); }
.dedsafe-drawer-card__icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; background: color-mix(in srgb, var(--dcol) 14%, #fff); font-size: 1.7rem; }
@supports not (background: color-mix(in srgb, red, blue)) { .dedsafe-drawer-card__icon { background: #eef2ee; } }
.dedsafe-drawer-wrap.is-pinned .dedsafe-drawer-card { border-color: var(--ds-peach, #e8aa6f); }

/* Aligned top nav — tabs, More and Help all consistent */
.dedsafe-appnav ul { align-items: stretch; }
.dedsafe-appnav li, .dedsafe-appnav__more-li { display: flex; }
.dedsafe-appnav a, .dedsafe-nav-more__btn {
	display: flex; align-items: center; gap: 0.35rem; padding: 0.7rem 1.05rem; font-weight: 600; font-size: 1.02rem;
	color: var(--ds-teal, #0e4251); text-decoration: none; border-radius: 10px 10px 0 0;
	border-bottom: 3px solid transparent; cursor: pointer; white-space: nowrap; line-height: 1.2;
}
.dedsafe-nav-more__btn { list-style: none; }
.dedsafe-nav-more__btn::-webkit-details-marker { display: none; }
.dedsafe-nav-more__btn:hover { background: var(--ds-cream-100, #fbf7f2); }
.dedsafe-nav-more__btn.is-active { border-bottom-color: var(--ds-peach, #e8aa6f); background: var(--ds-cream-100, #fbf7f2); }
.dedsafe-appnav__ico { font-size: 1.05em; line-height: 1; }

/* Drawer colour picker (edit form) */
.ds-colourpick { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.3rem 0 0.4rem; }
.ds-colourpick label { cursor: pointer; }
.ds-colourpick input { position: absolute; opacity: 0; width: 0; height: 0; }
.ds-colourpick__sw { display: inline-block; width: 40px; height: 40px; border-radius: 12px; border: 2px solid transparent; box-shadow: inset 0 0 0 2px #fff; transition: transform .1s; }
.ds-colourpick input:checked + .ds-colourpick__sw { border-color: var(--ds-teal, #0e4251); transform: scale(1.08); }
.ds-colourpick input:focus-visible + .ds-colourpick__sw { outline: 2px solid var(--ds-teal, #0e4251); outline-offset: 2px; }

/* ===== 0.91.0 drawer cover images + full colour picker ===== */
.dedsafe-drawer-card__cover { display: block; margin: -1.5rem -1.5rem 0.6rem; height: 132px; background-size: cover; background-position: center; background-color: #eef2ee; }
.dedsafe-drawer-card { overflow: hidden; }
/* full colour picker */
.ds-colourpick { display: flex; flex-direction: column; align-items: flex-start; gap: 0.7rem; margin: 0.3rem 0 0.4rem; }
.ds-colourpick__custom { display: inline-flex; align-items: center; gap: 0.6rem; color: var(--ds-slate-text, #3f5b67); font-weight: 600; font-size: 0.95rem; cursor: pointer; }
.ds-colourpick__input { width: 56px; height: 44px; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }
.ds-colourpick__presets { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.ds-colourpick__sw { width: 34px; height: 34px; border-radius: 9px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ds-line, #cbd1c5); cursor: pointer; padding: 0; transition: transform .1s; }
.ds-colourpick__sw:hover { transform: scale(1.1); }
/* cover image on the edit form */
.ds-cover-edit { margin: 0.3rem 0 0.5rem; }
.ds-cover-edit img { display: block; max-width: 260px; max-height: 150px; border-radius: 10px; border: 1px solid var(--ds-line, #cbd1c5); object-fit: cover; margin-bottom: 0.4rem; }
.ds-cover-add { display: inline-block; cursor: pointer; color: var(--ds-teal, #0e4251); font-weight: 600; border: 1px dashed var(--ds-sage, #92a493); border-radius: 10px; padding: 0.5rem 0.9rem; }
.ds-cover-add:hover { border-color: var(--ds-peach, #e8aa6f); background: #fdf3e7; }

/* ===== 0.92.0 drawer icons + cover in header ===== */
.ds-iconpick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.3rem 0; }
.ds-iconpick__opt { cursor: pointer; }
.ds-iconpick__opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.ds-iconpick__opt span { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; font-size: 1.5rem; border-radius: 12px; border: 2px solid var(--ds-line, #cbd1c5); background: #fff; transition: border-color .1s, transform .1s; }
.ds-iconpick__opt input:checked + span { border-color: var(--ds-teal, #0e4251); background: #f6efe9; transform: scale(1.06); }
.ds-iconpick__opt input:focus-visible + span { outline: 2px solid var(--ds-teal, #0e4251); outline-offset: 2px; }
.dedsafe-drawer-hero { height: 180px; border-radius: 18px; background-size: cover; background-position: center; background-color: #eef2ee; border: 1px solid var(--ds-line, #cbd1c5); border-top: 6px solid var(--dcol, #0e4251); margin: 0 0 1.2rem; box-shadow: 0 10px 30px rgba(14,66,81,.10); }
.dedsafe-drawer-titleicon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; font-size: 1.45rem; background: color-mix(in srgb, var(--dcol, #0e4251) 14%, #fff); vertical-align: middle; margin-right: 0.45rem; }
@supports not (background: color-mix(in srgb, red, blue)) { .dedsafe-drawer-titleicon { background: #eef2ee; } }

/* ===== 0.92.1 colour preview + selected preset ===== */
.ds-colourpick__current { display: flex; align-items: center; gap: 0.7rem; margin-bottom: 0.2rem; }
.ds-colourpick__preview { display: inline-block; width: 52px; height: 38px; border-radius: 10px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--ds-line, #cbd1c5), 0 4px 10px rgba(14,66,81,.12); transition: background .1s; }
.ds-colourpick__label { color: var(--ds-slate-text, #3f5b67); font-weight: 600; font-size: 0.95rem; }
.ds-colourpick__sw.is-selected { box-shadow: 0 0 0 3px var(--ds-teal, #0e4251); transform: scale(1.12); }

/* ===== 0.92.2 richer colour palette ===== */
.ds-colourpick__presets { max-width: 520px; }
.ds-colourpick__sw { width: 38px; height: 38px; }
.ds-colourpick__custom { margin-top: 0.4rem; }

/* ===== 0.93.0 DedSafe Store ===== */
.ds-store { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 1.2rem 0; }
.ds-store__card { background: #fff; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 16px; padding: 1.5rem; display: flex; flex-direction: column; box-shadow: 0 6px 20px rgba(14,66,81,.07); }
.ds-store__i { font-size: 2.4rem; line-height: 1; }
.ds-store__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.3rem; margin: 0.6rem 0 0.3rem; }
.ds-store__p { color: var(--ds-slate-text, #3f5b67); margin: 0 0 0.8rem; flex: 1; }
.ds-store__soon { align-self: flex-start; background: var(--ds-sage-strong, #5f7461); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; margin-bottom: 0.9rem; }
.ds-store__done { color: #2f6a27; font-weight: 600; }
@media (max-width: 900px) { .ds-store { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .ds-store { grid-template-columns: 1fr; } }

/* ===== 0.94.0 whole-safe themes ===== */
.dedsafe-theme { align-items: center; }
.dedsafe-theme__opt { border: 2px solid transparent; background: none; border-radius: 50%; padding: 2px; cursor: pointer; line-height: 0; }
.dedsafe-theme__opt.is-active { border-color: var(--ds-teal, #0e4251); }
.dedsafe-theme__sw { display: inline-block; width: 26px; height: 26px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(0,0,0,.1); }

/* ===== 0.94.0 eulogies ===== */
.dedsafe-trustee--link { text-decoration: none; color: inherit; display: block; transition: transform .1s, box-shadow .1s; }
.dedsafe-trustee--link:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(14,66,81,.12); }
.dedsafe-eul-delete { margin-top: 1.5rem; text-align: center; }

/* ===== 0.95.0 journal video memories ===== */
.ds-vrecorder { margin: 0.4rem 0; }
.ds-vrec__controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.5rem; }
.ds-vrec__live, .ds-vrec__preview { display: block; width: 100%; max-width: 420px; border-radius: 14px; background: #000; margin-bottom: 0.5rem; box-shadow: 0 6px 20px rgba(14,66,81,.12); }
.ds-vrec__time { color: var(--ds-slate-text, #3f5b67); font-variant-numeric: tabular-nums; font-weight: 600; }
.dedsafe-journal__video { display: block; width: 100%; max-width: 420px; border-radius: 14px; margin-top: 0.6rem; background: #000; }

/* ===== 0.96.0 advanced keyholder permissions ===== */
.ds-advanced { margin: 0.8rem 0; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 12px; padding: 0.4rem 1rem; background: #fbf9f5; }
.ds-advanced > summary { cursor: pointer; font-weight: 600; color: var(--ds-teal, #0e4251); padding: 0.5rem 0; list-style-position: inside; }
.ds-advanced[open] > summary { border-bottom: 1px solid var(--ds-line, #cbd1c5); margin-bottom: 0.6rem; }

/* ===== 0.97.0 eulogy wizard ===== */
.ds-ewiz-launch { margin: 0.6rem 0 1rem; padding: 1rem 1.2rem; background: #eef4ee; border: 1px solid #bcd9b6; border-radius: 14px; }
.ds-ewiz-launch .dedsafe-field-hint { margin: 0.5rem 0 0; }
.ds-ewiz { margin: 0.6rem 0 1.2rem; padding: 1.4rem; border: 2px solid var(--ds-peach, #e8aa6f); border-radius: 16px; background: #fffdfa; box-shadow: 0 8px 26px rgba(14,66,81,.08); }
.ds-ewiz__bar { text-align: right; color: var(--ds-slate-text, #3f5b67); font-weight: 700; font-variant-numeric: tabular-nums; margin-bottom: 0.6rem; }
.ds-ewiz__h { font-family: var(--ds-serif, Georgia, serif); color: var(--ds-teal, #0e4251); font-size: 1.4rem; margin: 0 0 0.4rem; }
.ds-ewiz__hint { color: var(--ds-teal-2, #14313a); font-size: 1.05rem; margin: 0 0 0.5rem; }
.ds-ewiz__eg { color: var(--ds-slate-text, #3f5b67); font-style: italic; background: #f6efe9; border-radius: 10px; padding: 0.6rem 0.9rem; margin: 0 0 0.8rem; }
.ds-ewiz__a { width: 100%; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 10px; padding: 0.7rem; font: inherit; }
.ds-ewiz__nav { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1rem; }
.ds-ewiz__nav .ds-ewiz__next, .ds-ewiz__nav .ds-ewiz__done { margin-left: auto; }
.ds-ewiz__skip { text-align: center; margin: 0.8rem 0 0; }

/* Lasting Power of Attorney */
.dedsafe-lpa { display: grid; gap: 18px; margin: 1.2rem 0; }
.dedsafe-lpa__card { background: #fff; border: 1px solid var(--ds-line, #cbd1c5); border-radius: 16px; padding: 20px 22px; }
.dedsafe-lpa__item + .dedsafe-lpa__item { border-top: 1px dashed var(--ds-line, #cbd1c5); margin-top: 14px; padding-top: 14px; }
.dedsafe-lpa__status { display: inline-block; font-weight: 700; border-radius: 999px; padding: 3px 12px; font-size: .95rem; background: #eef1ec; color: #33443a; }
.dedsafe-lpa__status.is-ok { background: #e3efe5; color: #1e5b2e; }
.dedsafe-lpa__status.is-wait { background: #fbeedd; color: #7a4a0e; }
.dedsafe-radio-row--stack { flex-direction: column; align-items: flex-start; gap: 8px; }
.dedsafe-fieldset { border: 0; padding: 0; margin: 1rem 0 .4rem; }
.dedsafe-fieldset legend { font-weight: 700; margin-bottom: .4rem; }
.dedsafe-scope { background: #f6efe9; border-radius: 12px; padding: 14px 16px; margin: 1rem 0; }
.dedsafe-scope__choose { margin: .6rem 0 0 1.6rem; display: grid; gap: 6px; }
.dedsafe-scope__choose[hidden] { display: none; }

/* Ask for help */
.ds-ask { display: flex; justify-content: flex-end; margin: .4rem 0 .6rem; }
.ds-ask__btn { font: inherit; font-weight: 700; font-size: 1rem; border: 2px solid var(--ds-teal, #0e4251); background: #fff; color: var(--ds-teal, #0e4251); border-radius: 999px; padding: 9px 18px; cursor: pointer; }
.ds-ask__btn:hover, .ds-ask__btn:focus { background: var(--ds-teal, #0e4251); color: #fff; }
.ds-ask__dlg { border: 0; border-radius: 16px; padding: 22px 24px; width: min(560px, calc(100% - 24px)); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.ds-ask__dlg::backdrop { background: rgba(14,66,81,.45); }
.ds-ask__dlg { max-height: 92vh; overflow: auto; }
.ds-ask__dlg input[type=radio], .ds-ask__dlg input[type=checkbox] { width: 1.35em; height: 1.35em; vertical-align: middle; }

/* Gift voucher box */
.ds-voucher summary { cursor: pointer; font-size: 1.05rem; }
.ds-voucher__form { margin-top: .8rem; }
.ds-voucher__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ds-voucher__row input { flex: 1 1 220px; font-size: 1.3rem; letter-spacing: .12em; text-transform: uppercase; padding: 10px 12px; border-radius: 10px; border: 2px solid #cbd1c5; font-family: ui-monospace, Menlo, Consolas, monospace; }

/* Devices & sign-in alerts */
.ds-devices { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; max-width: 680px; }
.ds-devices__item { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 12px; padding: 12px 14px; }
.ds-devices__item.is-this { border-color: #92a493; background: #f3f7f2; }
.ds-devices__badge { display: inline-block; margin-left: 8px; font-size: .8rem; font-weight: 700; background: #5f7461; color: #fff; border-radius: 999px; padding: 2px 10px; }
.ds-devices__actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; margin-bottom: 1.5rem; }

/* Run-out dates */
.ds-exp-badge { display: inline-block; font-size: .85rem; font-weight: 600; color: #14313a; background: #eef3f4; border-radius: 999px; padding: 2px 10px; margin: 4px 6px 0 0; }
.ds-exp-badge.is-soon { background: #fdf0e1; color: #7a4a0e; }
.ds-exp-badge.is-past { background: #fbeeec; color: #8a3b2e; }
.ds-expiry { margin-top: 6px; font-size: .95rem; }
.ds-expiry summary { cursor: pointer; color: #0e4251; font-weight: 600; }
.ds-expiry.is-suggested summary { color: #b06a1f; }
.ds-expiry__form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 6px 0; }
.ds-expiry__form input[type=date] { font-size: 1rem; padding: 6px 8px; border-radius: 8px; border: 1px solid #cbd1c5; }
.ds-expiry--upload { margin: .6rem 0; }
.ds-expiry-wrap { margin: -.3rem 0 1rem; }
.ds-soon { background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 14px 18px; margin: 0 0 1.2rem; }
.ds-soon__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ds-soon__list a { font-weight: 700; color: #0e4251; }

/* Online accounts */
.ds-onl-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 1.2rem; }
.ds-onl-chip { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 2px solid #0e4251; color: #0e4251; background: #fff; font-weight: 700; text-decoration: none; }
.ds-onl-chip:hover, .ds-onl-chip:focus { background: #0e4251; color: #fff; }
.ds-onl-chip.is-done { border-color: #92a493; color: #4d6a4f; background: #f3f7f2; }
.ds-onl-chip--other { border-style: dashed; }
.ds-onl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-width: 760px; }
.ds-onl-item { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 14px 16px; }
.ds-onl-kind { display: inline-block; margin-left: 8px; font-size: .8rem; background: #eef3f4; border-radius: 999px; padding: 2px 10px; }
.ds-onl-wish { margin-top: 4px; font-weight: 600; color: #0e4251; }
.ds-onl-actions { display: flex; gap: 8px; align-items: flex-start; }

/* Trustee guide */
.ds-guide { background: #fff; border: 1px solid #e4dccf; border-radius: 16px; padding: 18px 20px; margin: 0 0 1.5rem; }
.ds-guide__progress { display: flex; align-items: center; gap: 12px; margin: .4rem 0 1rem; font-weight: 600; color: #0e4251; }
.ds-guide__bar { flex: 1; height: 10px; background: #eef0ec; border-radius: 999px; overflow: hidden; max-width: 360px; }
.ds-guide__bar span { display: block; height: 100%; background: #92a493; }
.ds-guide__group { border-top: 1px solid #eee; padding: .6rem 0; }
.ds-guide__group summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; color: #0e4251; }
.ds-guide__steps { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: 12px; }
.ds-guide__step { display: grid; grid-template-columns: 44px 1fr; gap: 10px; align-items: start; }
.ds-guide__step p { margin: .2rem 0; }
.ds-guide__step.is-done strong { text-decoration: line-through; color: #3f5b67; }
.ds-guide__tick button { width: 36px; height: 36px; border-radius: 10px; border: 2px solid #0e4251; background: #fff; font-size: 1.2rem; font-weight: 800; color: #fff; cursor: pointer; }
.ds-guide__step.is-done .ds-guide__tick button { background: #92a493; border-color: #92a493; }
.ds-guide__papers a { margin-left: 8px; font-weight: 600; }
.ds-guide__who { font-size: .9rem; color: #4d6a4f; }

/* Family inbox */
.ds-inbox { list-style: none; margin: 1rem 0; padding: 0; display: grid; gap: 12px; max-width: 820px; }
.ds-inbox__item { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 16px; }
.ds-inbox__note { margin: 6px 0; font-style: italic; color: #14313a; }
.ds-inbox__actions { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.ds-inbox__keep { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ds-inbox__keep select { font-size: 1rem; padding: 8px; border-radius: 8px; border: 1px solid #cbd1c5; }
.ds-inbox-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fdf0e1; border: 1px solid #efcf9f; color: #7a4a0e; border-radius: 14px; padding: 14px 18px; margin: 0 0 1rem; font-weight: 700; font-size: 1.1rem; text-decoration: none; }
.ds-send { margin-top: 1.6rem; padding-top: 1rem; border-top: 1px dashed #cbd1c5; }

/* Simple mode */
.ds-simple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 1rem 0 1.2rem; }
@media (max-width: 640px) { .ds-simple { grid-template-columns: 1fr; } }
.ds-simple__btn { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 6px; min-height: 170px; padding: 20px; border-radius: 22px; background: #fff; border: 3px solid #0e4251; color: #0e4251; text-decoration: none; font: inherit; cursor: pointer; box-shadow: 0 8px 22px rgba(14,66,81,.08); }
.ds-simple__btn:hover, .ds-simple__btn:focus { background: #0e4251; color: #fff; outline: 4px solid #e8aa6f; outline-offset: 2px; }
.ds-simple__i { font-size: 3.2rem; line-height: 1; }
.ds-simple__t { font-size: 1.55rem; font-weight: 800; }
.ds-simple__s { font-size: 1rem; opacity: .85; }
.ds-simple__more { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-bottom: 1.2rem; }
.ds-simple__try { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 1rem; font-size: .95rem; color: #3f5b67; }

/* Speak instead of type */
.ds-mic-wrap { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 6px; vertical-align: middle; }
.ds-mic { font: inherit; font-size: 1rem; font-weight: 700; min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid #0e4251; background: #fff; color: #0e4251; cursor: pointer; line-height: 1; }
.ds-mic:hover, .ds-mic:focus { background: #eef3f4; outline: 3px solid #e8aa6f; outline-offset: 2px; }
.ds-mic.is-on { background: #b3261e; border-color: #b3261e; color: #fff; animation: dsMicPulse 1.2s infinite; }
@keyframes dsMicPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(179,38,30,.45); } 50% { box-shadow: 0 0 0 10px rgba(179,38,30,0); } }
@media (prefers-reduced-motion: reduce) { .ds-mic.is-on { animation: none; } }
.ds-mic-status { font-size: .95rem; font-weight: 600; color: #0e4251; }
.ds-dict-intro { border: 0; border-radius: 16px; padding: 22px 24px; max-width: min(520px, calc(100% - 24px)); box-shadow: 0 24px 60px rgba(0,0,0,.3); }
.ds-dict-intro::backdrop { background: rgba(14,66,81,.45); }
.ds-dict-intro__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }

.ds-easier { display: grid; gap: 10px; max-width: 760px; margin-bottom: 1.5rem; }
.ds-easier__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 14px 16px; }
.ds-easier__row > div { flex: 1 1 300px; }
.ds-soon .dedsafe-section-h { margin-top: 0; }

/* Snap a letter */
.ds-snap__file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.ds-snap__take { display: flex; gap: 14px; flex-wrap: wrap; margin: .6rem 0; }
.ds-snap__bigbtn { display: inline-flex; align-items: center; gap: 10px; font-size: 1.3rem; font-weight: 800; padding: 18px 26px; border-radius: 18px; background: #0e4251; color: #fff; cursor: pointer; border: 3px solid #0e4251; }
.ds-snap__bigbtn--ghost { background: #fff; color: #0e4251; }
.ds-snap__bigbtn:focus-within, .ds-snap__bigbtn:hover { outline: 4px solid #e8aa6f; outline-offset: 2px; }
.ds-snap__stage { background: #14313a; border-radius: 14px; padding: 10px; display: flex; justify-content: center; }
.ds-snap__stage canvas { max-width: 100%; height: auto; touch-action: none; cursor: crosshair; }
.ds-snap__tools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin: .8rem 0; }
.ds-snap__thumbs { list-style: none; margin: 0 0 1rem; padding: 0; display: flex; gap: 12px; flex-wrap: wrap; }
.ds-snap__thumbs li { background: #fff; border: 1px solid #e4dccf; border-radius: 12px; padding: 8px; display: grid; gap: 6px; justify-items: center; width: 130px; }
.ds-snap__thumbs img { width: 110px; height: 150px; object-fit: contain; background: #f6efe9; }
.ds-snap__details { max-width: 560px; }
.ds-snap__progress { margin-top: .6rem; font-weight: 700; color: #0e4251; }
.ds-snippet { display: block; font-size: .92rem; color: #4d6a4f; margin-top: 2px; }
.ds-snap-link { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #eef3f4; border: 1px solid #cbd1c5; border-radius: 14px; padding: 12px 16px; margin: 0 0 1rem; }

.ds-release .dedsafe-authcard { max-width: 620px; margin: 2rem auto; }
.ds-release__btn { font-size: 1.2rem; padding: 16px 26px; margin: 1rem 0; }

.ds-rec__ready { background: #f3f7f2; border: 1px solid #bcd9b6; color: #2f6a27; border-radius: 10px; padding: 10px 14px; margin: 8px 0 0; font-weight: 600; }

/* Simple mode offer */
.ds-simple-offer { display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg,#fff,#fdf3e7); border: 2px solid #e8aa6f; border-radius: 18px; padding: 18px 22px; margin: 0 0 1.2rem; }
.ds-simple-offer h2 { margin: 0 0 4px; font-size: 1.35rem; color: #0e4251; }
.ds-simple-offer p { margin: 0; color: #14313a; }
.ds-simple-offer__txt { flex: 1 1 320px; }
.ds-simple-offer__btns { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.ds-simple-offer__try { font-size: 1.2rem; padding: 14px 30px; }
/* Read a letter */
.ds-letter { margin: 0 0 1.2rem; }
.ds-letter__open { display: inline-block; cursor: pointer; font-size: 1.2rem; font-weight: 800; color: #fff; background: #0e4251; border-radius: 14px; padding: 12px 22px; list-style: none; }
.ds-letter__open::-webkit-details-marker { display: none; }
.ds-letter[open] .ds-letter__open { background: #14313a; }
.ds-letter__text { background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 20px 24px; font-size: 1.35rem; line-height: 1.75; max-width: 72ch; color: #14313a; margin-top: .6rem; }

/* Hospital pack & Around my home */
.ds-info-form { max-width: 760px; }
.ds-info-sec { border: 1px solid #e4dccf; border-radius: 14px; padding: 12px 16px 16px; margin: 0 0 14px; background: #fff; }
.ds-info-sec legend { font-weight: 800; color: #0e4251; font-size: 1.1rem; padding: 0 6px; }
.ds-info-save { position: sticky; bottom: 0; background: #f6efe9; padding: 10px 0; }
.ds-info-known { background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 12px 16px; max-width: 760px; margin-bottom: 1rem; }
.ds-info-ans { display: grid; grid-template-columns: 36% 1fr; gap: 10px; padding: 6px 0; border-bottom: 1px solid #f0ece4; }
.ds-info-ans__l { font-weight: 700; color: #0e4251; }
.ds-info-ans__h { color: #0e4251; margin: 1rem 0 .3rem; }
.ds-info-numbers { background: #fff; border: 2px solid #0e4251; border-radius: 14px; padding: 12px 16px; margin: 0 0 1rem; max-width: 760px; display: grid; gap: 4px; }

/* Money going out */
.ds-pay__totals { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 1.2rem; }
.ds-pay__totals > div { background: #fff; border: 2px solid #0e4251; border-radius: 14px; padding: 12px 20px; display: grid; min-width: 180px; }
.ds-pay__totals span { color: #3f5b67; font-weight: 600; }
.ds-pay__totals strong { font-size: 1.7rem; color: #0e4251; }
.ds-pay__check { background: #fdf3e7; border: 2px solid #e8aa6f; border-radius: 16px; padding: 14px 18px; margin: 0 0 1.2rem; }
.ds-pay__checkrow { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 0; border-top: 1px solid #efd5b0; }
.ds-pay__checkbtns { display: flex; gap: 8px; flex-wrap: wrap; }
.ds-pay__amt { margin-left: 8px; font-weight: 700; color: #0e4251; }
.ds-onl-item.is-cancelled { opacity: .6; }
.ds-pay__amountrow { display: flex; gap: 8px; align-items: center; }
.ds-pay__amountrow input { max-width: 160px; }

.ds-weekly { max-width: 680px; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 14px 18px; margin-bottom: 1.5rem; display: grid; gap: 10px; }
.ds-weekly__preview { background: #f3f7f2; border-radius: 10px; padding: 10px 14px; display: grid; gap: 4px; }

/* My day + tablets */
.ds-myday { background: #fff; border: 2px solid #0e4251; border-radius: 18px; padding: 16px 20px; margin: 0 0 1.2rem; }
.ds-myday__h { margin: 0 0 8px; font-size: 1.4rem; color: #0e4251; }
.ds-myday__line { margin: 6px 0; font-size: 1.15rem; }
.ds-myday__sub { margin: 14px 0 8px; font-size: 1.15rem; color: #0e4251; }
.ds-doses { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 8px; }
.ds-dose__btn { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; font: inherit; font-size: 1.1rem; background: #f6efe9; border: 2px solid #cbd1c5; border-radius: 14px; padding: 12px 14px; cursor: pointer; color: #14313a; min-height: 60px; }
.ds-dose__btn:hover, .ds-dose__btn:focus { border-color: #0e4251; outline: 3px solid #e8aa6f; outline-offset: 2px; }
.ds-dose__box { flex: 0 0 34px; height: 34px; border: 3px solid #0e4251; border-radius: 8px; background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; color: #fff; }
.ds-dose.is-done .ds-dose__btn { background: #f3f7f2; border-color: #92a493; }
.ds-dose.is-done .ds-dose__box { background: #4d6a4f; border-color: #4d6a4f; }
.ds-dose__txt small { display: block; color: #3f5b67; font-size: .92rem; }
.ds-dose.is-done .ds-dose__txt small { color: #2f6a27; font-weight: 700; }

/* Helpful numbers */
.ds-numbers__group { margin-bottom: 1.2rem; max-width: 860px; }
.ds-numbers__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ds-numbers__row { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 12px 16px; }
.ds-numbers__who { flex: 1 1 300px; display: grid; gap: 2px; }
.ds-numbers__who small { color: #3f5b67; font-size: .95rem; }
.ds-numbers__web { font-size: .92rem; }
.ds-numbers__call { font-size: 1.25rem; font-weight: 800; color: #fff; background: #0e4251; border-radius: 12px; padding: 10px 16px; text-decoration: none; white-space: nowrap; min-height: 48px; display: inline-flex; align-items: center; }
.ds-numbers__call:hover, .ds-numbers__call:focus { outline: 3px solid #e8aa6f; outline-offset: 2px; }
.ds-numbers--print .ds-numbers__call { background: none; color: #0e4251; padding: 0; font-size: 1.3rem; }
@media print { .ds-numbers--print .tools { display: none; } .ds-numbers__row { break-inside: avoid; border-color: #ccc; } }
/* Where did I put it */
.ds-whereis__form { max-width: 620px; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 14px 18px; }
.ds-whereis__filter { font-size: 1.15rem; padding: 10px 12px; border-radius: 10px; border: 2px solid #cbd1c5; width: 100%; max-width: 620px; margin-bottom: 10px; }
.ds-whereis__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-width: 760px; }
.ds-whereis__item { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 12px; padding: 12px 16px; }
.ds-whereis__item strong { display: block; font-size: 1.15rem; }
.ds-whereis-hits { background: #fdf3e7; border: 2px solid #e8aa6f; border-radius: 14px; padding: 12px 16px; margin: 0 0 1rem; }
.ds-whereis__hit { font-size: 1.15rem; margin: 4px 0; }
.ds-whereis__item[hidden] { display: none; }
/* Numbers: compact when printed (for next to the phone) */
@media print {
	.ds-numbers--print { font-size: 11px; }
	.ds-numbers--print .dedsafe-safe__title { font-size: 20px; margin: 0 0 6px; }
	.ds-numbers--print .ds-numbers__group { margin-bottom: 6px; }
	.ds-numbers--print .dedsafe-section-h { font-size: 13px; margin: 6px 0 3px; }
	.ds-numbers--print .ds-numbers__list { gap: 0; }
	.ds-numbers--print .ds-numbers__row { padding: 3px 0; border: 0; border-bottom: 1px solid #ddd; border-radius: 0; gap: 8px; }
	.ds-numbers--print .ds-numbers__who { gap: 0; flex-basis: 70%; }
	.ds-numbers--print .ds-numbers__who small { font-size: 9.5px; }
	.ds-numbers--print .ds-numbers__call { font-size: 14px; min-height: 0; }
	.ds-numbers--print .dedsafe-field-hint { font-size: 9.5px; margin: 2px 0; }
}

/* Who's who */
.ds-who__grid { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.ds-who__card { background: #fff; border: 1px solid #e4dccf; border-radius: 18px; padding: 16px; display: grid; justify-items: center; gap: 6px; text-align: center; }
.ds-who__face { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; background: #cbd1c5; display: grid; place-items: center; border: 4px solid #f6efe9; box-shadow: 0 4px 14px rgba(14,66,81,.12); }
.ds-who__face img { width: 100%; height: 100%; object-fit: cover; }
.ds-who__face span { font-size: 3.4rem; font-weight: 800; color: #0e4251; }
.ds-who__name { font-size: 1.3rem; color: #14313a; }
.ds-who__rel { font-size: 1.05rem; color: #3f5b67; }
.ds-who__call { margin-top: 6px; font-size: 1.2rem; font-weight: 800; color: #fff; background: #0e4251; border-radius: 12px; padding: 10px 22px; text-decoration: none; min-height: 48px; display: inline-flex; align-items: center; }
.ds-who__call:hover, .ds-who__call:focus { outline: 3px solid #e8aa6f; outline-offset: 2px; }
.ds-who__edit { font-size: .95rem; }
.ds-who__current { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.ds-who__current img { width: 72px; height: 72px; object-fit: cover; border-radius: 50%; }

/* Phone symbol in call buttons: drawn in the button's own text colour, so it always shows */
.ds-callicon { flex: 0 0 auto; margin-right: 8px; vertical-align: -3px; }
.ds-numbers__call, .ds-who__call { gap: 0; }

/* Help you might be entitled to */
.ds-ent__item { background: #fff; border: 1px solid #e4dccf; border-radius: 16px; padding: 14px 18px; margin: 0 0 12px; max-width: 860px; }
.ds-ent__item.is-have { border-left: 6px solid #4d6a4f; } .ds-ent__item.is-asked { border-left: 6px solid #e8aa6f; } .ds-ent__item.is-no { opacity: .7; }
.ds-ent__h { margin: 0 0 6px; color: #0e4251; font-size: 1.3rem; }
.ds-ent__badge { font-size: .85rem; background: #f3f7f2; color: #2f6a27; border-radius: 999px; padding: 3px 10px; vertical-align: middle; }
.ds-ent__item p { margin: 4px 0; }
.ds-ent__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.ds-ent__mark { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
/* Appointments */
.ds-appt__form { max-width: 760px; }
.ds-myday__link { font-weight: 700; margin-left: 6px; }
.ds-appt--print .ds-appt__qs li { margin: 10px 0; font-size: 1.1rem; }
.ds-appt__answer { height: 3.2em; border-bottom: 1px dotted #999; }
@media print { .ds-appt--print .tools { display: none; } }

/* Boxes: putting things in, and playing them for the recipient */
.ds-boxadd { margin: 0 0 1.5rem; }
.ds-boxadd__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.ds-boxadd__way { background: #fff; border: 2px solid #e4dccf; border-radius: 16px; padding: 14px 16px; }
.ds-boxadd__way h3 { margin: 0 0 6px; color: #0e4251; font-size: 1.15rem; }
.ds-boxadd__form .dedsafe-upload__row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.ds-boxadd__form .dedsafe-upload__row input { flex: 1 1 160px; }
.ds-boxadd__way .ds-vrecorder video { max-width: 100%; }
.ds-boxmedia { display: block; width: 100%; max-width: 560px; margin: 8px 0; border-radius: 12px; }
audio.ds-boxmedia { max-width: 420px; }

/* "Mark it" buttons all the same size (they borrow the text-size style) */
.ds-ent__mark .dedsafe-textsize__opt { font-size: 1rem; }

/* Put DedSafe on your Home Screen */
.ds-install { display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap; background: #fff; border: 2px solid #0e4251; border-radius: 18px; padding: 16px 20px; margin: 0 0 1.2rem; }
.ds-install[hidden] { display: none; }
.ds-install__txt { flex: 1 1 320px; }
.ds-install h2 { margin: 0 0 4px; color: #0e4251; font-size: 1.3rem; }
.ds-install p { margin: 0 0 10px; }
.ds-install__steps { margin: 6px 0 0 1.2rem; padding: 0; font-size: 1.1rem; line-height: 1.7; }
.ds-install__go { font-size: 1.15rem; padding: 12px 26px; }
.ds-install__no { align-self: flex-start; }

/* Batch Q: required fields, clear filters, chooser groups, warnings, referral card */
.ds-req { font-weight: 600; color: #8a4b00; font-size: .9em; white-space: nowrap; }
.ds-clearfilters { font: inherit; font-size: .95rem; font-weight: 700; color: #0e4251; background: #fff; border: 2px solid #0e4251; border-radius: 999px; padding: 6px 14px; margin: 6px 6px 6px 0; cursor: pointer; text-decoration: none; display: inline-block; }
.ds-clearfilters[hidden] { display: none; }
.ds-clearfilters:hover, .ds-clearfilters:focus { background: #0e4251; color: #fff; }
.ds-navpick { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; margin: 8px 0 14px; }
.ds-navpick__group { border: 2px solid #e4dccf; border-radius: 14px; padding: 10px 14px 12px; margin: 0; background: #fff; }
.ds-navpick__group legend { font-weight: 800; color: #0e4251; padding: 0 6px; }
.ds-navpick__all { display: flex; gap: 6px; margin: 0 0 6px; }
.ds-navpick__group .dedsafe-check { display: flex; margin: 6px 0; }
.ds-warnbox { display: flex; gap: 14px; align-items: flex-start; background: #fff4e5; border: 3px solid #c0561c; border-radius: 16px; padding: 14px 18px; margin: 0 0 1.2rem; font-size: 1.1rem; }
.ds-warnbox strong { font-size: 1.2rem; color: #8a3a0f; }
.ds-warnbox__i { font-size: 1.8rem; line-height: 1; }
.ds-refercta { display: flex; align-items: center; gap: 14px; background: linear-gradient(90deg, #fdf3e7, #fff); border: 2px solid #e8aa6f; border-radius: 16px; padding: 14px 18px; margin: 1.2rem 0; text-decoration: none; color: #14313a; max-width: 860px; }
.ds-refercta:hover, .ds-refercta:focus { border-color: #0e4251; }
.ds-refercta__i { font-size: 2rem; }
.ds-refercta strong { display: block; font-size: 1.15rem; color: #0e4251; }
.ds-refercta__go { margin-left: auto; font-size: 1.6rem; color: #0e4251; }
.ds-navpick__all .dedsafe-note__btn { white-space: nowrap; font-size: .85rem; padding: 4px 10px; }

/* Download everything */
.ds-export__ways { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-bottom: 1rem; }
.ds-export__way { background: #fff; border: 2px solid #e4dccf; border-radius: 16px; padding: 14px 16px; }
.ds-export__way h3 { margin: 0 0 6px; color: #0e4251; }
.ds-export__drawers { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.ds-export__drawers li { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ds-exports { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 8px; max-width: 860px; }
.ds-exports__row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; background: #fff; border: 1px solid #e4dccf; border-radius: 14px; padding: 12px 16px; }
.ds-exports__row small, .ds-exports__state { display: block; color: #3f5b67; }
.ds-exports__row.is-ready { border-left: 6px solid #4d6a4f; }
.ds-exports__bar { display: block; height: 8px; background: #eee6da; border-radius: 99px; margin-top: 6px; overflow: hidden; width: 240px; max-width: 100%; }
.ds-exports__bar span { display: block; height: 100%; background: #e8aa6f; }
.ds-exports__act { display: flex; gap: 8px; align-items: center; }
.ds-refercta--plain { background: #fff; border-color: #e4dccf; }
/* Chooser group titles sit inside their cards, not on the border */
.ds-navpick__group { padding: 14px 16px 14px; }
.ds-navpick__group legend { float: left; width: 100%; padding: 0 0 8px; margin: 0 0 10px; border-bottom: 2px solid #f0ece4; font-size: 1.15rem; line-height: 1.3; }
.ds-navpick__group legend + * { clear: both; }
/* "Saved" notice shown where you are (the page's own message is up at the top) */
.ds-toast { position: fixed; left: 50%; top: 90px; transform: translateX(-50%); z-index: 1000; max-width: min(560px, 92vw); display: flex; gap: 12px; align-items: flex-start; background: #0e4251; color: #fff; border-radius: 14px; padding: 14px 16px 14px 20px; box-shadow: 0 12px 30px rgba(14,66,81,.3); font-size: 1.1rem; line-height: 1.4; transition: opacity .4s, transform .4s; }
.ds-toast--warn { background: #8a3a0f; }
.ds-toast.is-out { opacity: 0; transform: translate(-50%, -10px); }
.ds-toast__x { background: none; border: 0; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
@media (prefers-reduced-motion: reduce) { .ds-toast { transition: none; } }

/* The menu as a tidy board (when lots of pages are chosen) */
.ds-navboard { margin: 10px 0 4px; }
.ds-navboard__toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 800; font-size: 1.05rem; color: #0e4251; background: #fff; border: 2px solid #0e4251; border-radius: 999px; padding: 8px 18px; list-style: none; }
.ds-navboard__toggle::-webkit-details-marker { display: none; }
.ds-navboard[open] .ds-navboard__toggle { background: #0e4251; color: #fff; }
.ds-navboard__here { font-weight: 600; opacity: .85; }
.ds-navboard__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 12px; align-items: start; }
.ds-navboard__group { background: #fff; border: 2px solid #e4dccf; border-radius: 16px; padding: 12px 12px 10px; }
.ds-navboard__h { margin: 0 0 8px; padding: 0 4px 8px; border-bottom: 2px solid #f0ece4; font-size: 1.05rem; color: #0e4251; }
.ds-navboard__group ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.ds-navboard__group li a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; text-decoration: none; color: #14313a; font-weight: 600; font-size: 1.02rem; border: 1px solid transparent; }
.ds-navboard__group li a:hover, .ds-navboard__group li a:focus { background: #f6efe9; border-color: #e4dccf; outline: none; }
.ds-navboard__group li.is-active a { background: #fdf3e7; border-color: #e8aa6f; }
.ds-navboard__grid { grid-template-columns: repeat(auto-fill, minmax(188px, 1fr)); }
.ds-navboard__group li a { white-space: normal; line-height: 1.3; }
.ds-navboard__group li { width: auto; }

/* A field that needs fixing after a save was refused */
.ds-needs-fix { border-color: #c0561c !important; box-shadow: 0 0 0 4px rgba(192,86,28,.25) !important; }

/* Leaving DedSafe */
.ds-cx__card { background: #fff; border: 2px solid #e4dccf; border-radius: 18px; padding: 16px 20px; margin: 0 0 14px; max-width: 820px; }
.ds-cx__card h2 { margin: 0 0 8px; color: #0e4251; font-size: 1.3rem; }
.ds-cx__card--cold { border-color: #3f5b67; background: linear-gradient(180deg, #f3f7f8, #fff); }
.ds-cx__card--warn { border-color: #e8aa6f; background: #fdf3e7; }
.ds-cx__card--close { border-color: #d9c9c0; }
.ds-cx__price { font-size: 1.25rem; font-weight: 800; color: #0e4251; }
.ds-cx__list { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.ds-cx__reasons { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 4px 14px; margin-bottom: 10px; }
.ds-cx__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.ds-cx__timeline { margin: 0 0 12px 1.2rem; line-height: 1.6; }
.ds-cx__understand { display: flex; margin: 8px 0 12px; font-weight: 600; }
.ds-cx__quiet { margin: 1.2rem 0; font-size: .95rem; }
.ds-boxcard { display: flex; flex-direction: column; }
.ds-boxcard > a { flex: 1; }
.ds-boxcard__when { margin: 6px 0 0; color: #0e4251; font-weight: 600; }
.ds-boxcard__when.is-paused { color: #8a4b00; }
.ds-boxcard__act { margin: 6px 0 0; }

.ds-v-import-msg { background: #fdf3e7; border: 2px solid #e8aa6f; border-radius: 12px; padding: 10px 14px; font-weight: 600; margin: 10px 0; }

/* Wallet buttons */
.ds-wallet { margin: 14px 0 0; }
.ds-wallet__h { font-weight: 800; color: #0e4251; margin: 0 0 8px; }
.ds-wallet__btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 20px; margin: 0 8px 8px 0; border-radius: 12px; font-weight: 700; text-decoration: none; background: #000; color: #fff; }
.ds-wallet__btn:hover, .ds-wallet__btn:focus { outline: 3px solid #e8aa6f; outline-offset: 2px; color: #fff; }
.ds-wallet__btn--google { background: #1f1f1f; }

/* Peace of mind */
.ds-cheer { display: flex; gap: 14px; align-items: flex-start; background: #fdf3e7; border: 2px solid #e8aa6f; border-radius: 18px; padding: 14px 18px; margin: 0 0 16px; }
.ds-cheer__i { font-size: 2rem; line-height: 1; }
.ds-cheer__h { margin: 0 0 4px; font-weight: 800; font-size: 1.2rem; color: #0e4251; }
.ds-cheer__p { margin: 0; font-size: 1.05rem; line-height: 1.5; }
@media (prefers-reduced-motion: no-preference) { .ds-cheer { animation: dsCheer .5s ease-out; } @keyframes dsCheer { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } } }
.ds-pm { background: #fff; border: 2px solid #e4dccf; border-radius: 18px; padding: 16px 20px; margin: 0 0 16px; }
.ds-pm__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; align-items: baseline; }
.ds-pm__h { margin: 0; font-size: 1.3rem; color: #0e4251; }
.ds-pm__sum { margin: 0; font-weight: 700; color: #3f5b67; }
.ds-pm__bar { height: 14px; background: #f0ece4; border-radius: 999px; overflow: hidden; margin: 10px 0 12px; }
.ds-pm__bar span { display: block; height: 100%; background: linear-gradient(90deg, #92a493, #0e4251); border-radius: 999px; }
.ds-pm__list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 6px 16px; }
.ds-pm__list li { display: flex; align-items: center; gap: 10px; font-size: 1.05rem; }
.ds-pm__tick { width: 26px; height: 26px; flex: 0 0 26px; border-radius: 50%; border: 2px solid #cbd1c5; display: grid; place-items: center; font-weight: 900; color: #fff; }
.ds-pm__list li.is-done { color: #3f5b67; }
.ds-pm__list li.is-done .ds-pm__tick { background: #92a493; border-color: #92a493; }
.ds-pm__list a { font-weight: 700; color: #0e4251; }
.ds-pm__next { margin: 0 0 4px; }
.ds-pm__why { margin: 0; color: #3f5b67; }
.ds-pm-done { background: #eef3ee; border: 2px solid #92a493; border-radius: 14px; padding: 10px 16px; font-weight: 700; color: #0e4251; }
.ds-nudge { background: #fff; border: 2px dashed #92a493; border-radius: 18px; padding: 14px 18px; margin: 0 0 16px; }
.ds-nudge__h { margin: 0 0 4px; font-weight: 800; color: #0e4251; }
.ds-nudge__btns { display: flex; gap: 10px; flex-wrap: wrap; }
.ds-nudge__btns form { margin: 0; }
.ds-miles { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.ds-mile { background: #fff; border: 2px solid #e4dccf; border-radius: 16px; padding: 12px 14px; display: grid; gap: 2px; color: #3f5b67; }
.ds-mile strong { color: #0e4251; font-size: 1.1rem; }
.ds-mile__i { font-size: 1.6rem; filter: grayscale(1); opacity: .5; }
.ds-mile.is-got { border-color: #e8aa6f; background: #fdf3e7; }
.ds-mile.is-got .ds-mile__i { filter: none; opacity: 1; }
.ds-cert { max-width: 720px; margin: 1rem auto; background: #fff; border: 3px double #0e4251; border-radius: 8px; padding: 36px 40px; text-align: center; }
.ds-cert__brand { font-family: Georgia, serif; font-size: 1.6rem; font-weight: 700; color: #0e4251; margin: 0; }
.ds-cert__brand span { color: #d8944f; }
.ds-cert__title { font-family: Georgia, serif; font-size: 2.2rem; color: #0e4251; margin: .4rem 0; }
.ds-cert__lead { font-size: 1.15rem; margin: 0 0 1.2rem; }
.ds-cert__list { list-style: none; padding: 0; margin: 0 auto 1rem; text-align: left; display: inline-grid; gap: 6px; font-size: 1.1rem; }
.ds-cert__list li.is-todo { color: #8a8a8a; }
.ds-cert__miles { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; font-weight: 700; color: #0e4251; }
.ds-cert__note { color: #3f5b67; font-size: .95rem; max-width: 52ch; margin: 1rem auto; }
.ds-cert__date { font-family: Georgia, serif; color: #0e4251; }
@media print { .ds-noprint, .dedsafe-appnav, .dedsafe-comfort, .ds-toolrow, header, footer, .ds-askhelp { display: none !important; } .ds-cert { border-width: 3px; margin: 0 auto; } body { background: #fff !important; } }

/* Read out by screen readers, not shown on screen */
.visually-hidden, .sr-only { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0, 0, 0, 0) !important; white-space: nowrap !important; border: 0 !important; }

/* Share links */
.ds-share__form { max-width: 640px; }
.ds-share__form input[type=text] { width: 100%; }
.ds-share__set { border: 2px solid #e4dccf; border-radius: 14px; padding: 10px 16px; margin: 12px 0; display: grid; gap: 4px; }
.ds-share__set legend { font-weight: 800; color: #0e4251; padding: 0 6px; }
.ds-share__code { max-width: 260px; font-size: 1.4rem; letter-spacing: .3em; }
.ds-share__code::placeholder { letter-spacing: normal; font-size: 1rem; }
.ds-share__untilrow { flex-wrap: wrap; align-items: center; row-gap: 6px; }
.ds-share__untiltxt { white-space: nowrap; }
.dedsafe-check .ds-share__until { width: auto; max-width: 220px; flex: 0 1 220px; margin: 0 0 0 .5rem; }
.ds-share__card { background: #fff; border: 2px solid #e4dccf; border-radius: 18px; padding: 16px 20px; margin: 0 0 14px; max-width: 720px; }
.ds-share__card h2 { margin: 0 0 8px; font-size: 1.2rem; color: #0e4251; }
.ds-share__bigcode { font-size: 2.4rem; font-weight: 800; letter-spacing: .25em; color: #0e4251; margin: 4px 0 10px; }
.ds-sharelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; max-width: 860px; }
.ds-sharerow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; background: #fff; border: 2px solid #e4dccf; border-radius: 16px; padding: 12px 16px; }
.ds-sharerow__main { display: grid; gap: 2px; }
.ds-sharerow__state, .ds-sharerow__seen { color: #3f5b67; }
.ds-sharerow.is-ended, .ds-sharerow.is-stopped { opacity: .65; }
.ds-sharerow form { margin: 0; }

/* Accessibility dropdown (text size, contrast, Big buttons, colour theme): closed until tapped, on every screen size */
.ds-toolrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .6rem; margin: .4rem 0 .8rem; position: relative; }
.ds-toolrow .ds-ask { margin: 0; }
.ds-a11y { position: relative; }
.ds-comfort-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 18px; border: 2px solid var(--ds-teal, #0e4251); border-radius: 999px; background: #fff; color: var(--ds-teal, #0e4251); font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer; }
.ds-comfort-toggle__ico { font-family: Georgia, serif; font-weight: 800; }
.ds-comfort-toggle__caret { display: inline-block; transition: transform .15s; }
.ds-comfort-toggle:hover, .ds-comfort-toggle:focus-visible, .ds-comfort-toggle[aria-expanded="true"] { background: var(--ds-teal, #0e4251); color: #fff; }
.ds-comfort-toggle[aria-expanded="true"] .ds-comfort-toggle__caret { transform: rotate(180deg); }
.dedsafe-comfort { display: none; }
.dedsafe-comfort.is-open { display: flex; flex-direction: column; align-items: flex-start; gap: .75rem; position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; width: min(560px, calc(100vw - 32px)); margin: 0; padding: 1.1rem 1.2rem; background: #fff; border: 2px solid var(--ds-teal, #0e4251); border-radius: 16px; box-shadow: 0 14px 40px rgba(14, 66, 81, .18); }
.dedsafe-comfort__intro { margin: 0; color: #3f5b67; }
.ds-toolrow .dedsafe-comfort .dedsafe-textsize { margin: 0 !important; padding: 0; min-height: 0; flex-wrap: wrap; }
.dedsafe-comfort .dedsafe-theme { row-gap: .5rem; }
.dedsafe-comfort__close { align-self: flex-end; }
@media (max-width: 640px) {
  .ds-toolrow { justify-content: space-between; }
  .ds-a11y { position: static; }
  .dedsafe-comfort.is-open { left: 0; right: 0; width: auto; }
}

/* Fingerprint / face unlock */
.ds-pk { text-align: center; margin: 0 0 12px; }
.ds-pk__go { width: 100%; justify-content: center; min-height: 60px; font-size: 1.2rem; }
.ds-pk__or { color: #3f5b67; margin: 12px 0 0; }
.ds-pk__msg { color: #8a3a0f; font-weight: 700; }
.ds-pklist { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; max-width: 620px; }
.ds-pklist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: #fff; border: 2px solid #e4dccf; border-radius: 12px; padding: 8px 12px; }
.ds-pklist small { color: #3f5b67; }
.ds-pklist form { margin: 0; }

/* Is this a scam? */
.ds-verdict { border-radius: 18px; padding: 16px 20px; margin: 0 0 16px; border: 3px solid #cbd1c5; background: #fff; max-width: 820px; }
.ds-verdict h2 { margin: 0 0 6px; font-size: 1.6rem; }
.ds-verdict h3 { margin: 12px 0 4px; font-size: 1.1rem; color: #0e4251; }
.ds-verdict ul { margin: 0 0 0 1.2rem; line-height: 1.6; font-size: 1.08rem; }
.ds-verdict__lead { font-size: 1.15rem; font-weight: 600; margin: 0; }
.ds-verdict.is-scam { border-color: #b3261e; background: #fdecea; } .ds-verdict.is-scam h2 { color: #8c1d18; }
.ds-verdict.is-careful { border-color: #c0561c; background: #fdf3e7; } .ds-verdict.is-careful h2 { color: #8a3a0f; }
.ds-verdict.is-ok { border-color: #5e7d5f; background: #eef3ee; } .ds-verdict.is-ok h2 { color: #2f4f30; }
.ds-safeststeps { background: #0e4251; color: #fff; border-radius: 18px; padding: 14px 20px; margin: 0 0 18px; max-width: 820px; }
.ds-safeststeps h2 { margin: 0 0 6px; font-size: 1.2rem; color: #fff; }
.ds-safeststeps ul { margin: 0 0 0 1.2rem; line-height: 1.6; }
.ds-scam__form { max-width: 820px; } .ds-scam__form textarea { width: 100%; font-size: 1.05rem; }

/* Going into hospital */
.ds-hm__go { min-height: 60px; font-size: 1.2rem; }
.ds-hm__form { max-width: 680px; } .ds-hm__form input[type=text] { width: 100%; }
.ds-hm__done { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 1.1rem; }
.ds-hm__pack { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 4px; }
.ds-hmbanner { background: #eaf2f4; border: 3px solid #597885; border-radius: 18px; padding: 14px 18px; margin: 0 0 16px; }
.ds-hmbanner__h { margin: 0 0 4px; font-weight: 800; font-size: 1.2rem; color: #0e4251; }
.ds-hmbanner p { margin: 0 0 8px; }
.ds-hmbanner__f { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 0; }
.ds-hm__link { margin: -.5rem 0 1rem; }

/* Make it yours */
.ds-pz__form { max-width: 900px; }
.ds-pz__set { border: 2px solid #e4dccf; border-radius: 16px; padding: 12px 16px 14px; margin: 0 0 14px; background: rgba(255,255,255,.7); }
.ds-pz__set legend { font-weight: 800; color: var(--ds-teal, #0e4251); padding: 0 6px; font-size: 1.1rem; }
.ds-pz__set input[type=text] { width: 100%; max-width: 480px; }
.ds-pz__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.ds-pz__opt { position: relative; display: grid; justify-items: center; gap: 6px; padding: 8px; border: 2px solid transparent; border-radius: 14px; cursor: pointer; text-align: center; font-weight: 600; background: #fff; }
.ds-pz__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ds-pz__opt:has(input:checked) { border-color: var(--ds-teal, #0e4251); box-shadow: 0 0 0 3px var(--ds-peach, #e8aa6f); }
.ds-pz__opt:has(input:focus-visible) { outline: 3px solid var(--ds-peach, #e8aa6f); outline-offset: 2px; }
.ds-pz__sw { width: 64px; height: 64px; border-radius: 14px; border: 1px solid rgba(0,0,0,.12); display: block; }
.ds-pz__opt--wide { grid-column: span 2; }
.ds-pz__font { font-size: 1.5rem; color: var(--ds-teal, #0e4251); }
.ds-pz__photo { display: block; max-width: 320px; width: 100%; border-radius: 14px; margin: 0 0 8px; }
.ds-pz__save { position: sticky; bottom: 10px; }
.dedsafe-theme__more { margin-left: 8px; font-weight: 700; white-space: nowrap; }
.ds-myhero { margin: 0 0 16px; border-radius: 20px; overflow: hidden; position: relative; }
.ds-myhero__img { width: 100%; height: clamp(160px, 26vw, 260px); object-fit: cover; display: block; }
.ds-myhero__name { margin: 0; font-family: var(--ds-font-head); font-size: clamp(1.6rem, 4vw, 2.4rem); font-weight: 700; color: var(--ds-teal, #0e4251); }
.ds-myhero.has-photo .ds-myhero__name { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 20px 14px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,.55)); text-shadow: 0 1px 3px rgba(0,0,0,.4); }

/* Family messages and the weekly memory question */
.ds-sharerow__notes { flex-basis: 100%; }
.ds-sharerow__notes summary { cursor: pointer; font-weight: 700; color: var(--ds-teal, #0e4251); }
.ds-note { background: #fff; border-left: 4px solid var(--ds-peach, #e8aa6f); border-radius: 10px; padding: 8px 12px; margin: 8px 0; }
.ds-note p { margin: 0 0 4px; font-size: 1.08rem; }
.ds-note footer { color: #3f5b67; font-size: .95rem; }
.ds-note.is-new { background: #fdf3e7; }
.ds-inbox-notes { margin: 0 0 18px; max-width: 820px; }
.ds-mq { background: #fff; border: 2px dashed #92a493; border-radius: 16px; padding: 12px 16px; margin: 0 0 16px; max-width: 820px; }
.ds-mq p { margin: 0 0 8px; }

/* Card titles sit inside their cards (Make it yours, sharing, hospital) */
.ds-pz__set legend, .ds-share__set legend { float: left; width: 100%; padding: 0 0 8px; margin: 0 0 12px; border-bottom: 2px solid #f0ece4; }
.ds-pz__set legend + *, .ds-share__set legend + * { clear: both; }
.ds-pz__sw--pat { background-size: 34px 34px; }
/* Save bar: always reachable, never covering the choices */
.ds-pz__save { position: sticky; bottom: 0; z-index: 5; margin: 0 -16px; padding: 12px 16px; background: var(--ds-cream, #f6efe9); border-top: 2px solid #e4dccf; box-shadow: 0 -6px 14px rgba(0,0,0,.06); }

.ds-pz__sub { font-weight: 700; margin: 12px 0 4px; }
.ds-pz__row { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 10px; }
.ds-myhero__motto { margin: 2px 0 0; font-size: 1.15rem; font-style: italic; color: #3f5b67; }
.ds-myhero.has-photo .ds-myhero__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 14px; background: linear-gradient(transparent, rgba(0,0,0,.6)); }
.ds-myhero.has-photo .ds-myhero__name { position: static; padding: 0; background: none; }
.ds-myhero.has-photo .ds-myhero__motto { color: #fff; text-shadow: 0 1px 3px rgba(0,0,0,.45); }

/* When someone close to you dies */
.ds-bv__sorry { font-size: 1.15rem; max-width: 64ch; }
.ds-bv__form { max-width: 820px; }
.ds-bv__text p { font-size: 1.1rem; line-height: 1.65; margin: 0 0 10px; }
.ds-bv__calls { display: flex; flex-wrap: wrap; gap: 10px; }
.ds-bv__links { margin: 0 0 12px 1.2rem; line-height: 1.8; }
.ds-bv__tell { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; margin: 0 0 12px; }
.ds-bv__done { display: flex; margin: 10px 0; font-weight: 700; font-size: 1.1rem; }
.ds-bv__form textarea { width: 100%; }
@media print { .ds-bv .ds-step { display: block !important; page-break-inside: avoid; } .ds-bv .ds-wizard__nav, .ds-bv .ds-wizard__bar, .ds-bv button, .ds-bv__calls { display: none !important; } .ds-bv textarea { border: 1px solid #999; } }

/* Pop-up pages (Manage your plan & account, and any link with data-ds-frame) */
.ds-framedlg { width: min(960px, calc(100vw - 24px)); height: min(88vh, 1000px); max-height: none; padding: 0; border: 0; border-radius: 18px; overflow: hidden; display: none; flex-direction: column; background: #fff; box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
.ds-framedlg[open] { display: flex; }
.ds-framedlg::backdrop { background: rgba(11, 53, 64, .55); }
.ds-framedlg__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px 10px 22px; background: var(--ds-teal, #0e4251); color: #fff; }
.ds-framedlg__h { margin: 0; font-size: 1.2rem; color: #fff !important; }
.ds-framedlg__x { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #fff; background: transparent; color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; flex: none; }
.ds-framedlg__x:hover, .ds-framedlg__x:focus-visible { background: #fff; color: var(--ds-teal, #0e4251); }
.ds-framedlg__f { flex: 1; width: 100%; border: 0; background: #f6efe9; }
@media (max-width: 640px) { .ds-framedlg { width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; border-radius: 0; } }
/* A page shown inside a pop-up: no header, menu or footer (backup for older browsers) */
.ds-framed header, .ds-framed footer, .ds-framed .dedsafe-appnav, .ds-framed .ds-toolrow, .ds-framed .ds-phonenav { display: none !important; }
.ds-body--component { padding: 18px 20px 30px; }

/* Opening offer on the plan page (0.99.90) */
.dedsafe-offer { max-width: 760px; margin: 0 auto 1.6rem; padding: 2rem 1.6rem 1.6rem; border-radius: 22px; background: var(--ds-teal, #0e4251); color: #fff; text-align: center; box-shadow: 0 14px 40px rgba(14, 66, 81, .25); }
.dedsafe-offer__tag { display: inline-block; background: #e8aa6f; color: #3b2606; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; font-size: .85rem; padding: 6px 16px; border-radius: 999px; }
.dedsafe-offer__h { color: #fff !important; font-size: clamp(1.6rem, 4vw, 2.3rem); margin: .8rem 0 .5rem; }
.dedsafe-offer__lead { font-size: 1.1rem; margin: 0 auto 1rem; max-width: 600px; color: #eaf3f5; }
.dedsafe-offer__lead strong { color: #f3c38f; }
.dedsafe-offer__list { list-style: none; padding: 0; margin: 0 auto 1.3rem; max-width: 460px; text-align: left; }
.dedsafe-offer__list li { padding: .3rem 0 .3rem 1.8rem; position: relative; font-size: 1.02rem; }
.dedsafe-offer__list li::before { content: "✓"; position: absolute; left: .2rem; color: #f3c38f; font-weight: 800; }
.dedsafe-offer__btn { font-size: 1.15rem; padding: 14px 30px; }
.dedsafe-offer__small { font-size: .92rem; color: #cfe2e7; margin: 1rem auto 0; max-width: 560px; }
.dedsafe-plan__soonintro { text-align: center; color: var(--ds-slate-text, #3f5b67); margin: .4rem 0 1rem; }
.dedsafe-plan__soon { display: block; width: 100%; text-align: center; padding: 12px; border: 2px dashed #b9c7cc; border-radius: 12px; color: #5b6f78; font-weight: 700; cursor: default; box-sizing: border-box; }
.dedsafe-tier .dedsafe-plan__soon { width: auto; padding: 6px 12px; font-size: .9rem; }
.dedsafe-plan__grid.is-soon .dedsafe-plan__tier { opacity: .92; }
.dedsafe-plan__famask { font-size: .95rem; max-width: 360px; }

/* ===== Legacy Key (1.0.5) ===== */
.ds-legacy__promo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--ds-line, #e4dccf); border-left: 5px solid var(--ds-teal, #0e4251); border-radius: 12px; padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; }
.ds-legacy__promo h2 { font-family: var(--ds-serif, Georgia, serif); font-size: 1.25rem; color: var(--ds-teal, #0e4251); margin: 0 0 0.3rem; }
.ds-legacy__promo p { margin: 0; max-width: 42rem; }
.ds-legacy__promo--alert { border-left-color: #b4532a; background: #fff6f0; }
.ds-legacy__new, .ds-legacy__alert, .ds-legacy__card { background: #fff; border: 2px solid var(--ds-teal, #0e4251); border-radius: 12px; padding: 1.25rem 1.5rem; margin: 0 0 1.5rem; }
.ds-legacy__alert { border-color: #b4532a; background: #fff6f0; }
.ds-legacy__new h2, .ds-legacy__alert h2 { font-family: var(--ds-serif, Georgia, serif); font-size: 1.3rem; margin: 0 0 0.5rem; color: var(--ds-teal, #0e4251); }
.ds-legacy__codebig, .lk-card__code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: 0.04em; word-break: break-all; }
.ds-legacy__codebig { font-size: 1.35rem; background: var(--ds-cream-100, #fbf7f2); border: 1px dashed var(--ds-line, #e4dccf); border-radius: 8px; padding: 0.7rem 0.9rem; }
.ds-legacy__btns { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 0.8rem 0; }
.ds-legacy__card p { margin: 0 0 0.6rem; }
.ds-legacy__card form { margin-top: 0.8rem; }
.ds-legacy__card .dedsafe-release__row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.ds-legacy__replace { margin: 0 0 2rem; }
.ds-legacy__replace summary { cursor: pointer; font-weight: 600; color: var(--ds-teal, #0e4251); padding: 0.6rem 0; }
.ds-legacy__make select, .ds-legacy__make input[type="text"] { max-width: 32rem; }
.ds-legacy__steps { margin: 0.5rem 0 0; padding-left: 1.3rem; }
.ds-legacy__code { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: 0.04em; text-transform: uppercase; }
.ds-legacy__when { font-size: 1.15rem; font-weight: 700; color: var(--ds-teal, #0e4251); }
.lk-card__code { font-size: 3.6mm; margin: 2mm 0 3mm; color: #1a1a1a; }

/* Opening offer: choose monthly or yearly inside the box (1.0.12) */
.dedsafe-offer__choose { font-weight: 700; font-size: 1.15rem; color: #fff; margin: .4rem 0 .9rem; }
.dedsafe-offer__pick { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 560px; margin: 0 auto; }
.dedsafe-offer__opt { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 22px 14px 18px; border-radius: 18px; border: 3px solid #e8aa6f; background: #fff; color: var(--ds-teal, #0e4251); cursor: pointer; font: inherit; transition: transform .12s ease, box-shadow .2s ease; }
.dedsafe-offer__opt:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0, 0, 0, .25); }
.dedsafe-offer__opt:focus-visible { outline: 4px solid #f3c38f; outline-offset: 3px; }
.dedsafe-offer__optp { font-family: var(--ds-serif, Georgia, serif); font-size: 2.3rem; font-weight: 700; line-height: 1.1; }
.dedsafe-offer__optw { font-size: 1.05rem; color: #3d5560; }
.dedsafe-offer__optgo { margin-top: 10px; display: inline-block; background: #e8aa6f; color: #3b2606; font-weight: 800; font-size: 1.05rem; padding: 10px 20px; border-radius: 12px; }
.dedsafe-offer__optbadge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #f3c38f; color: #3b2606; font-weight: 800; font-size: .8rem; letter-spacing: .04em; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
@media (max-width: 520px) { .dedsafe-offer__pick { grid-template-columns: 1fr; gap: 22px; } }
