/* Private workspace: a quiet, readable interface. No external fonts. */
.has-account {
  --ink: #20332b;
  --muted: #66716a;
  --forest: #245344;
  --line: #e3e6de;
  --paper: #faf9f5;
  --soft: #f0f3ed;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
.has-account *, .has-account *::before, .has-account *::after { box-sizing: border-box; }
.has-account .top {
  min-height: 84px;
  padding: 18px 32px;
  background: #faf9f5f5;
  border-bottom: 1px solid var(--line);
  gap: 24px;
}
.has-account .top .logo { width: 184px; height: auto; }
.has-account .top-right { display: flex; align-items: center; gap: 18px; width: auto; }
.has-account .top-right .button.small {
  font-size: 14px; min-height: 44px; padding: 10px 18px; border-radius: 24px;
}
.has-account .account-icon-button {
  width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%;
}
.has-account .shell { grid-template-columns: 236px minmax(0, 1fr); max-width: none; margin-inline: 0; min-height: calc(100svh - 160px); }
.has-account main {
  padding: 44px clamp(24px, 4.5vw, 72px) 56px;
  max-width: 1320px; width: 100%; min-width: 0; margin-inline: auto;
}
.has-account h1 { font-size: clamp(30px, 3vw, 40px); line-height: 1.2; letter-spacing: -1.3px; margin: 0 0 12px; font-weight: 650; }
.has-account h2 { font-size: 23px; line-height: 1.35; letter-spacing: -.55px; margin: 0 0 12px; font-weight: 650; }
.has-account h3 { font-size: 19px; line-height: 1.4; letter-spacing: -.25px; margin: 0 0 6px; }
.has-account h4 { font-size: 17px; margin: 0 0 6px; }
.has-account p { margin: 10px 0 18px; }
.has-account .muted, .has-account small { color: var(--muted); }
.has-account .lead { font-size: 18px; line-height: 1.6; max-width: 75ch; }
.has-account a:not(.button) { text-underline-offset: 4px; }
.has-account .account-sidebar { padding: 0; border-right: 1px solid var(--line); background: #f2f3ec; }
.sidebar-content { display: flex; flex-direction: column; position: sticky; top: 0; height: calc(100svh - 84px); padding: 40px 20px 24px; overflow-y: auto; }
.sidebar-content > * { flex-shrink: 0; }
.sidebar-bottom { margin-top: auto; padding-top: 36px; }
.sidebar-label { color: #606e5f; font-size: 11px; font-weight: 600; letter-spacing: 1.35px; margin: 0 16px 22px !important; }
.has-account .account-sidebar nav { display: grid; gap: 8px; }
.has-account .account-sidebar nav a,
.has-account .account-sidebar nav .sidebar-logout-button {
  display: flex; align-items: center; gap: 12px;
  padding: 15px 16px; min-height: 54px; border-radius: 13px;
  font-size: 15px; color: #56675b; text-decoration: none;
  transition: background .15s, color .15s;
}
.workspace-icon { width: 24px; height: 24px; flex-shrink: 0; }
.has-account .account-sidebar nav .workspace-icon { width: 21px; height: 21px; }
.has-account .account-sidebar nav a:hover,
.has-account .account-sidebar nav .sidebar-logout-button:hover { background: #e6ece2; color: var(--forest); }
.has-account .account-sidebar nav a.active { color: #fff; background: var(--forest); font-weight: 600; box-shadow: 0 4px 10px #24534412; }
.has-account .aside-note { display: grid; grid-template-columns: 18px minmax(0,1fr); gap: 8px; margin: 0; padding: 14px; border: 1px solid #dce4d7; border-radius: 14px; background: #fafbf6; color: #697666; font-size: 12px; line-height: 1.55; }
.has-account .aside-note .workspace-icon { display: block; color: #70846f; width: 18px; height: 18px; margin: 0; }
.has-account .aside-note strong { font-weight: 600; color: #4d6252; }
.has-account .aside-note p { grid-column: 1 / -1; margin: 0; font-size: 12px; }
.has-account .account-sidebar .settings-navigation { margin-top: 12px; gap: 2px; }
.has-account .account-sidebar .settings-navigation > a,
.has-account .account-sidebar .settings-navigation .sidebar-logout-button { min-height: 44px; padding: 8px 12px; font-size: 14px; }
.has-account .sidebar-logout { margin: 0; }
.has-account .account-sidebar nav .sidebar-logout-button { width: 100%; justify-content: flex-start; background: transparent; border: 0; font-weight: 400; line-height: inherit; text-align: left; }
.staff-link { display: inline-flex; align-items: center; min-height: 44px; margin: 26px 12px; }
.workspace-heading { display: flex; align-items: center; justify-content: space-between; gap: 22px; margin-bottom: 30px; }
.workspace-heading p { margin: 0; max-width: 66ch; color: var(--muted); }
.has-account .badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; background: #edf3e9; color: #4a6553; padding: 5px 11px; border-radius: 20px; white-space: normal; }
.has-account .privacy-badge { background: none; border: 1px solid var(--line); font-size: 13px; padding: 8px 12px; white-space: nowrap; }
.has-account .top .privacy-badge { flex-shrink: 0; min-height: 40px; }
.privacy-badge .workspace-icon { width: 15px; height: 15px; }
.preparation-sections { display: grid; grid-template-columns: minmax(0,1fr); }
.preparation-sections > .workspace-section { margin: 0; }
.section-flow-arrow { display: flex; align-items: center; justify-content: center; height: 30px; color: #8e9e87; pointer-events: none; }
.section-flow-arrow svg { width: 22px; height: 22px; }
.workspace-section { scroll-margin-top: 105px; }
.wishes-intro { margin-top: 0; }
.wishes-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.has-account .wishes-editor .field > span small { display: inline; font-weight: 400; }
.wishes-transmission { margin-top: 24px; }
.letter-shelf-heading h3 { margin: 0 0 4px; }
.letter-shelf-heading p { margin: 0 0 24px; }
.letter-shelf { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 22px; align-items: start; }
.letter-tile { min-width: 0; text-align: center; }
.letter-envelope-link { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 224px; padding: 18px 14px; border: 1px solid #e5e3d8; border-radius: 18px; background: #fcfbf7; color: #304a3c; text-align: center; text-decoration: none; }
.letter-envelope-link:hover, .letter-envelope-link:focus-visible { background: #f6f5ed; border-color: #879f7e; }
.letter-envelope-link:focus-visible { outline: 3px solid #245747; outline-offset: 3px; }
.letter-envelope { display: block; flex-shrink: 0; width: 140px; max-width: 100%; height: auto; aspect-ratio: 5 / 4; color: #a18e61; }
.letter-envelope-link strong { max-width: 100%; overflow-wrap: anywhere; font-size: 16px; line-height: 1.4; }
.letter-state, .letter-envelope-link small { color: #66735f; font-size: 12px; }
.letter-add { border-style: dashed; background: #fffefa; }
.letter-tile .item-options { margin-top: 6px; }
.letter-tile .item-options > summary { min-height: 44px; padding: 10px; display: inline-flex; align-items: center; font-size: 12px; }
.letter-shelf-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #64745f; font-size: 13px; }
.letter-shelf-note .workspace-icon { width: 16px; height: 16px; flex-shrink: 0; }
.service-catalog.letter-editor-dialog { width: min(740px,calc(100vw - 40px)); background: #faf9f5; }
.letter-editor-dialog .service-catalog-close { display: flex; justify-content: center; align-items: center; text-decoration: none; flex-shrink: 0; }
.letter-editor-dialog .workspace-editor { max-width: none; margin: 0; }
.letter-editor-dialog .service-catalog-heading h2 { margin: 6px 0 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; font-style: italic; font-size: 32px; }
.letter-kicker { color: #6b735f; font-size: 12px; }
.letter-paper { padding: 24px 28px; border: 1px solid #e3dece; border-radius: 4px 4px 16px 4px; background: #fffef9; box-shadow: 0 4px 18px #64532a08; }
.has-account .letter-paper input, .has-account .letter-paper textarea { background: transparent; border: 1px solid #d4d6c8; border-radius: 8px; color: #293b31; }
.has-account .letter-paper textarea { font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.8; min-height: 280px; padding: 14px 18px; resize: vertical; }
.letter-paper-signature { display: block; margin-top: 12px; color: #7b745f; text-align: right; font-family: 'Segoe Print', 'Bradley Hand', cursive; font-size: 16px; }
.letter-reading h3 { font-family: Georgia, 'Times New Roman', serif; font-size: 23px; }
.letter-reading-body { white-space: pre-wrap; overflow-wrap: anywhere; font-family: Georgia, 'Times New Roman', serif; font-size: 18px; line-height: 1.8; }
.has-account .letter-editor-dialog .workspace-editor > .actions { position: sticky; bottom: -1px; z-index: 2; padding: 14px 0 2px; background: #faf9f5; box-shadow: 0 -10px 14px #faf9f5; }
body.letter-editor-open { overflow: hidden; }
@media (max-width: 760px) {
 .letter-shelf { grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 14px; }
 .letter-envelope-link { padding: 14px 10px; min-height: 210px; }
 .letter-envelope-link strong { font-size: 15px; }
 .service-catalog.letter-editor-dialog { width: calc(100vw - 24px); padding: 20px 16px; }
 .letter-paper { padding: 18px 14px; }
 .has-account .letter-paper textarea { padding: 12px; font-size: 17px; min-height: 240px; }
}
.service-catalog.account-editor-dialog { width: min(580px,calc(100vw - 40px)); }
.account-editor-dialog .workspace-editor { max-width: none; margin: 0; }
.account-editor-dialog .service-catalog-close { text-decoration: none; display: flex; justify-content: center; align-items: center; flex-shrink: 0; }
.has-account .account-editor-dialog .optional-fields { padding: 0 14px; margin: 12px 0; }
.has-account .account-editor-dialog .workspace-editor > .actions { position: sticky; bottom: 0; z-index: 2; padding: 12px 0; margin-bottom: 0; background: #fafbf7; box-shadow: 0 -10px 12px #fafbf7; }
body.account-editor-open { overflow: hidden; }
.has-account .simple-account-editor { display: grid; gap: 18px; }
.has-account .simple-account-editor .field { margin: 0; }
.has-account .simple-account-editor textarea { min-height: 100px; }
.account-billing { border: 0; padding: 0; margin: 0; }
.account-billing > summary { list-style: none; display: flex; align-items: center; gap: 9px; padding: 10px 0; min-height: 44px; color: var(--forest); font-size: 14px; font-weight: 500; }
.account-billing > summary::-webkit-details-marker { display: none; }
.account-billing > summary svg { width: 21px; height: 21px; flex-shrink: 0; }
.account-billing > summary small { font-weight: 400; font-size: 12px; }
.account-billing > summary .billing-chevron { width: 16px; height: 16px; margin-left: auto; transition: transform .15s; }
.account-billing[open] > summary .billing-chevron { transform: rotate(180deg); }
.billing-fields { display: grid; gap: 16px; padding: 16px; margin-top: 4px; border: 1px solid var(--line); border-radius: 12px; background: #f4f6f0; }
.billing-amount { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.has-account .simple-account-editor > .account-save { justify-content: space-between; align-items: center; margin: 0; padding: 8px 0 0; }
.account-save small { font-size: 12px; }
.account-transmission { margin-top: 24px; }
.has-account .progress-check { background: none; border: 0; padding: 0; margin: 0 0 24px; font-size: 14px; }
.progress-check summary { min-height: 44px; display: flex; align-items: center; gap: 10px; cursor: pointer; color: #5f7263; font-weight: 500; list-style: none; }
.progress-check summary::-webkit-details-marker { display: none; }
.progress-check summary::after { content: '⌄'; font-size: 18px; }
.progress-check[open] summary::after { transform: rotate(180deg); }
.progress-check ul { list-style: none; padding: 0; }
.progress-check li { margin: 10px 0; }
.workspace-section { background: #fff; border: 1px solid var(--line) !important; border-radius: 18px !important; padding: 0 !important; margin: 14px 0; box-shadow: 0 4px 18px #344c3004; overflow: visible; }
.workspace-section > summary { display: flex; align-items: center; gap: 20px; padding: 24px 28px; list-style: none; cursor: pointer; min-height: 48px; border-radius: 18px; transition: background .15s; }
.workspace-section > summary:hover { background: #fbfcf8; }
.workspace-section > summary::-webkit-details-marker { display: none; }
.section-copy { flex: 1; min-width: 0; }
.workspace-section > summary strong { display: block; font-size: 20px; font-weight: 600; line-height: 1.4; letter-spacing: -.35px; color: var(--ink); }
.workspace-section > summary small { display: block; font-size: 14px; font-weight: 400; margin-top: 4px; line-height: 1.5; }
.section-symbol { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; flex-shrink: 0; border-radius: 16px; background: #eef3e9; color: #69815b; }
.symbol-messages { background: #f7f0e3; color: #a38851; }
.symbol-comptes { background: #edf2f3; color: #607e82; }
.symbol-souhaits { background: #f3edf1; color: #917287; }
.section-chevron { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 32px; height: 32px; flex-shrink: 0; font-size: 22px; font-weight: 300; color: #708575; border: 1px solid #e5eadf; border-radius: 50%; line-height: 1; }
.workspace-section[open] .section-chevron { transform: rotate(45deg); background: #f0f4eb; }
.section-arrow { border: 0; transition: transform .15s; }
.section-arrow svg { width: 22px; height: 22px; }
.workspace-section[open] > summary .section-arrow { transform: rotate(180deg); background: transparent; }
.profile-basics { display: grid; grid-template-columns: 190px minmax(0,1fr); gap: 32px; padding: 28px; background: #f5f8f4; border: 1px solid #e1e7dd; border-radius: 18px; align-items: start; }
.profile-photo-placeholder { aspect-ratio: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; border: 1px dashed #b9d2c8; border-radius: 20px; color: var(--forest); background: #fafcf9; text-align: center; font-size: 16px; padding: 12px; transition: background .15s; }
.profile-photo-placeholder:hover { background: #eef5ef; }
.profile-photo-placeholder svg { width: 34px; height: 34px; }
.profile-photo-control { min-width: 0; display: grid; gap: 8px; align-content: start; }
.profile-photo-control small { font-size: 12px; line-height: 1.5; color: var(--muted); }
.profile-photo-placeholder { position: relative; cursor: pointer; overflow: hidden; }
.profile-photo-placeholder input[type=file] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; z-index: 1; }
.profile-photo-placeholder:focus-within { outline: 3px solid var(--forest); outline-offset: 3px; }
.profile-photo-placeholder img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.profile-photo-placeholder [hidden] { display: none; }
.profile-photo-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.profile-photo-change { color: var(--forest); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.profile-photo-remove { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; color: #b13232; border: 1px solid #ebc9c9; border-radius: 12px; cursor: pointer; background: #fffafa; }
.profile-photo-remove[hidden] { display: none; }
.profile-photo-remove svg { width: 21px; height: 21px; }
.profile-photo-remove input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.profile-photo-remove:focus-within { outline: 3px solid var(--forest); outline-offset: 3px; }
.profile-photo-remove:has(input:checked) { background: #fbe5e5; border-color: #b13232; }
.photo-crop-dialog { width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 40px); box-sizing: border-box; margin: auto; padding: 24px; border: 1px solid #d6ded4; border-radius: 24px; background: #faf9f5; color: var(--ink); overflow: auto; box-shadow: 0 20px 80px #102b2240; }
.photo-crop-dialog::backdrop { background: #183e3266; backdrop-filter: blur(4px); }
.photo-crop-dialog h2 { font-size: 26px; margin: 0 0 8px; }
.photo-crop-dialog p, .photo-crop-dialog small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.photo-crop-dialog canvas { display: block; width: min(100%, 280px); height: auto; aspect-ratio: 1; margin: 16px auto; border-radius: 14px; background: #fff; box-shadow: 0 3px 16px #20382c15; touch-action: none; cursor: grab; }
.photo-crop-dialog canvas:active { cursor: grabbing; }
.photo-crop-dialog .field { margin-bottom: 12px; }
.photo-crop-dialog input[type=range] { width: 100%; padding: 0; accent-color: var(--forest); min-height: 32px; }
.photo-crop-position { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-crop-dialog .actions { justify-content: flex-end; margin-top: 16px; }
.wishes-migration-help { padding: 8px 0 8px 16px; border-left: 3px solid #bdcec2; color: var(--muted); font-size: 14px; line-height: 1.6; }
.wishes-migration-help strong { color: var(--ink); }
.people-add-actions .person-add-circle { flex-direction: column; gap: 8px; }
.person-add-circle small { font-size: 11px; font-weight: 400; line-height: 1.3; }
.people-add-help { max-width: 760px; font-size: 14px; line-height: 1.6; }
@media (max-width: 480px) {
  .photo-crop-dialog { padding: 18px; }
  .photo-crop-dialog canvas { width: min(100%, 240px); }
  .photo-crop-dialog .actions { display: grid; grid-template-columns: 1fr; }
}
.memorial-photo { width: 240px; max-width: 100%; height: 240px; object-fit: cover; border-radius: 24px; }
.profile-basics-fields { min-width: 0; }
.has-account .profile-basics-fields .field:last-child { margin-bottom: 0; }
.has-account .profile-basics-fields textarea { min-height: 118px; }
.profile-options { margin-top: 22px; }
.has-account .profile-options-trigger { display: flex; align-items: center; gap: 10px; width: 100%; margin: 22px 0; padding: 20px; border: 1px solid var(--line); border-radius: 14px; background: #fafbf7; color: var(--forest); text-align: left; font-size: 16px; }
.profile-options-trigger > span { font-size: 24px; line-height: 1; }
.profile-options-trigger[hidden], [data-profile-options-fallback][hidden] { display: none !important; }
body.profile-dialog-open { overflow: hidden; }
.service-catalog.profile-dialog { box-sizing: border-box; width: min(760px, calc(100vw - 32px)); margin: auto; }
.profile-dialog .service-catalog-heading { align-items: flex-start; }
.profile-dialog .service-catalog-heading h2 { font-size: 26px; line-height: 1.25; }
.profile-dialog .service-catalog-close { flex-shrink: 0; }
.profile-dialog .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.profile-dialog .field { min-width: 0; }
.profile-dialog > .actions { justify-content: flex-end; margin-bottom: 0; }
.profile-page-preview { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow-wrap: anywhere; }
.profile-page-preview h3 { margin: 10px 0 20px; font-family: Georgia, 'Times New Roman', serif; font-size: clamp(28px, 5vw, 44px); line-height: 1.15; }
.profile-page-preview .prose { white-space: pre-wrap; }
.profile-page-preview img { max-width: 100%; object-fit: cover; }
.profile-page-preview img[hidden] { display: none; }
@media (max-width: 760px) {
  .service-catalog.profile-dialog { width: calc(100vw - 24px); padding: 20px 16px; }
  .profile-dialog .service-catalog-heading h2 { font-size: 23px; }
  .profile-dialog .grid { grid-template-columns: minmax(0, 1fr); }
  .profile-page-preview { padding: 20px 16px; }
}
@media (max-width: 760px) {
  .profile-basics { grid-template-columns: minmax(0,1fr); gap: 22px; padding: 18px; }
  .profile-photo-placeholder { width: 124px; justify-self: center; font-size: 14px; gap: 10px; }
}
.workspace-section[open] > summary { border-bottom: 1px solid #edf0e8; border-radius: 18px 18px 0 0; }
.has-account .section-body { padding: 26px 28px !important; }
.has-account .card { background: #fff; box-shadow: 0 4px 18px #344c3004; border: 1px solid var(--line); padding: 28px; border-radius: 18px; margin: 18px 0; }
.has-account .grid { gap: 22px; align-items: stretch; }
.has-account .grid > .card { margin: 0; }
.has-account .form { max-width: 760px; margin: 0; }
.has-account .workspace-editor { max-width: none; }
/* Inline preparation forms share their card's full content width, not the
   narrower limit used by standalone settings and authentication forms. */
.has-account .preparation-sections .section-body > .form { width: 100%; max-width: none; min-width: 0; }
.has-account .wishes-editor > .wishes-intro { margin-top: 0; }
.has-account .field { margin: 0 0 24px; display: block; }
.has-account .field > span, .has-account .field > label { font-size: 15px; font-weight: 600; display: block; margin: 0 0 9px; color: #354b3d; }
.has-account .field small { font-size: 13px; display: block; margin-top: 7px; line-height: 1.5; }
.has-account input:not([type=checkbox]):not([type=hidden]), .has-account textarea, .has-account select { font: inherit; font-size: 16px; border: 1px solid #c9d2c7; border-radius: 11px; padding: 13px 15px; width: 100%; min-height: 50px; background: #fdfefa; color: var(--ink); transition: border-color .15s, background .15s; }
.has-account input:hover, .has-account textarea:hover, .has-account select:hover { border-color: #aebfac; }
.has-account input:focus, .has-account textarea:focus, .has-account select:focus { background: #fff; border-color: #52826a; }
.has-account textarea { min-height: 140px; resize: vertical; }
.has-account .character-count-field { position: relative; }
.has-account .character-count-field textarea { display: block; padding-bottom: 38px; }
.has-account .character-count { position: absolute; right: 20px; bottom: 10px; font-size: 13px; line-height: 18px; font-variant-numeric: tabular-nums; color: #5e7062; pointer-events: none; }
.has-account .character-count.over-limit { color: #b13232; }
.has-account input[type=file] { padding: 10px; min-width: 0; }
.has-account .check { display: flex; align-items: flex-start; gap: 12px; font-size: 15px; line-height: 1.6; padding: 10px 0; }
.has-account .check input { width: 22px; height: 22px; min-width: 22px; margin: 2px 0; accent-color: var(--forest); }
.has-account .check small { display: block; font-size: 13px; overflow-wrap: anywhere; }
.has-account button, .has-account .button { min-height: 48px; padding: 12px 21px; font: inherit; font-size: 15px; font-weight: 600; line-height: 1.4; border-radius: 11px; background: var(--forest); color: #fff; transition: background .15s, border-color .15s; text-decoration: none; }
.has-account button:hover, .has-account .button:hover { background: #173e32; }
.has-account .button.secondary { background: #fff; border: 1px solid #d3dccf; color: var(--forest); box-shadow: none; }
.has-account .button.secondary:hover { background: #f0f5ea; border-color: #abc0a5; }
.has-account button:disabled { opacity: 1; background: #e8ece3; color: #677261; cursor: not-allowed; }
.has-account .text-button { background: transparent; color: var(--forest); min-height: 44px; padding: 8px 10px; }
.has-account .text-button:hover { background: #edf3e9; }
.has-account .danger { color: #a04438; }
.has-account .actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 22px; }
.has-account .actions > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; }
.has-account .list-row { padding: 20px 0; background: transparent; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; gap: 20px; flex-wrap: wrap; align-items: center; }
.has-account .list-row:last-child { border-bottom: 0; }
.has-account .list-row .actions { margin: 0; }
.has-account .list-row > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.has-account .notice { border-radius: 13px; font-size: 15px; margin: 18px 0; padding: 18px 22px; overflow-wrap: anywhere; background: #f0f4e8; border-color: #dce5d4; }
.has-account .notice.error { background: #fff1ec; border-color: #eecabc; color: #843e32; }
.has-account .notice p { margin-bottom: 6px; }
.has-account .notice form { margin-top: 12px; }
.optional-fields { background: #fafbf7; border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; margin: 24px 0; }
.optional-fields > summary, .item-options > summary { cursor: pointer; color: var(--forest); min-height: 44px; display: flex; align-items: center; gap: 8px; font-weight: 600; }
.optional-fields > summary::before, .item-options > summary::before { content: '+'; font-weight: 400; font-size: 20px; }
.optional-fields[open] > summary::before, .item-options[open] > summary::before { content: '−'; }
.optional-fields[open] > summary { margin-bottom: 18px; }
.has-account .item-options { border: 0; padding: 0; margin: 0; font-size: 14px; max-width: 100%; background: transparent; }
.item-options form { margin: 8px 0; }
.has-account .safety-note, .capacity-note { background: #f3f5ec; border-radius: 10px; padding: 14px 16px; font-size: 14px; color: #59684d; }
.workspace-footnote { font-size: 13px; color: var(--muted); max-width: 80ch; margin-top: 26px !important; line-height: 1.7; }
.subsection + .subsection { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 24px; }
.subsection-heading, .editor-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 22px; }
.person-row { padding: 24px 0; border-bottom: 1px solid var(--line); }
.person-row:last-child { border: 0; padding-bottom: 0; }
.person-name { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; overflow-wrap: anywhere; }
.person-name > div { min-width: 0; }
.person-avatar { width: 46px; height: 46px; flex: 0 0 46px; display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #eaf0e0; color: #637a51; font-size: 17px; font-weight: 600; }
.person-name h3 { font-size: 21px; }
.person-name .muted { font-size: 14px; }
.people-add-actions { display: flex; flex-wrap: wrap; gap: 24px; margin: 24px 0; }
.trusted-person-circle { width: 136px; height: 136px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 9px; padding: 16px; border: 3px dashed #6d8871; border-radius: 50%; background: #f4f7ef; color: var(--forest); text-align: center; text-decoration: none; transition: background .15s, border-color .15s; }
.trusted-person-circle span { font-size: 15px; font-weight: 600; line-height: 1.4; }
.trusted-person-circle .workspace-icon { width: 20px; height: 20px; }
.trusted-person-circle:hover { background: #eaf1e4; border-color: var(--forest); }
.person-add-circle { width: 136px; height: 136px; padding: 22px; border: 2px dashed #b9cbb9; border-radius: 50%; display: flex; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: var(--forest); background: #fafcf8; transition: background .15s, border-color .15s; }
.person-add-circle span { font-size: 15px; font-weight: 600; line-height: 1.5; }
.person-add-circle:hover { background: #edf4e9; border-color: #6f927c; }
body.person-editor-open { overflow: hidden; }
.service-catalog.person-editor-dialog { width: min(640px,calc(100vw - 40px)); }
.person-editor-dialog .service-catalog-close { flex-shrink: 0; text-decoration: none; }
.person-editor-dialog .role-tabs { margin: 0 0 18px; }
.person-editor-dialog .role-tabs > a { font-size: 13px; padding: 8px 10px; }
.person-role-description { font-size: 14px; margin: 0 0 8px; }
.person-capacity { margin: 0 0 20px; font-size: 12px; }
.has-account .person-invitation-form { display: grid; gap: 16px; }
.has-account .person-invitation-form .field { margin: 0; }
.has-account .person-invitation-form .check { margin: 0; }
.has-account .person-invitation-form > button { width: 100%; }
.person-invitation-note { font-size: 12px; margin: 0; }
.person-role { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; margin: 12px 0; padding: 18px 20px; background: #f7f8f3; border: 1px solid #e9ede2; border-radius: 12px; }
.person-role small { display: block; margin: 6px 0 12px; max-width: 62ch; }
.service-picker { margin-bottom: 0; }
.service-picker-label { font-size: 15px; font-weight: 600; color: var(--ink); }
.service-shortcuts { display: grid; grid-template-columns: repeat(11,minmax(0,1fr)); gap: 4px 10px; }
.service-shortcut { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 2px; color: var(--ink); text-decoration: none; text-align: center; font-size: 13px; border: 1px solid transparent; border-radius: 14px; min-width: 0; }
.service-shortcut:hover { background: #f4f7ef; border-color: #dce6d6; }
.service-logo { width: 56px; height: 56px; display: flex; align-items: center; justify-content: center; border-radius: 16px; background: #fff; border: 1px solid #e2e7df; box-shadow: 0 3px 10px #29443606; }
.service-logo img { width: 38px; height: 38px; object-fit: contain; }
.service-logo img.service-brand-amazon, .service-logo img.service-brand-notre-temps, .service-logo img.service-brand-edf { width: 46px; height: 36px; }
.service-more .service-logo { border: 1.5px dashed #aabfa6; color: var(--forest); background: #f6f9f2; font-size: 32px; font-weight: 300; }
.service-logo img.service-brand-canal, .service-logo img.service-brand-free, .service-logo img.service-brand-engie, .service-logo img.service-brand-bouygues-telecom { width: 46px; height: 36px; }
.saved-services { display: grid; grid-template-columns: repeat(auto-fill,118px); grid-auto-rows: 1fr; align-items: stretch; gap: 12px; margin-top: 18px; }
.saved-service-item { display: flex; min-width: 0; }
.has-account .saved-service { position: relative; flex: 1; min-width: 0; min-height: 160px; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: 14px; background: #fafbf8; }
.saved-service-heading { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; width: 100%; }
.saved-service-name { display: block; margin: 0; font-size: 13px; line-height: 1.4; font-weight: 400; }
.saved-service-heading > span { min-width: 0; overflow-wrap: anywhere; }
.saved-service-heading small { display: block; font-size: 11px; line-height: 1.4; }
.saved-service-heading .service-logo { flex-shrink: 0; }
.saved-account-menu > summary { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; min-height: 158px; padding: 24px 8px; border-radius: 13px; background: transparent; color: var(--forest); cursor: pointer; list-style: none; }
.saved-account-menu > summary::-webkit-details-marker { display: none; }
.saved-account-menu > summary::before, .saved-account-menu > summary::after { content: none; }
.saved-account-menu > summary:hover, .saved-account-menu[open] > summary { background: #edf3e8; }
.saved-account-menu[open] { z-index: 6; }
.saved-account-menu > summary:focus-visible { outline: 3px solid var(--forest); outline-offset: 3px; }
.saved-account-menu-list { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 5; width: 140px; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff; box-shadow: 0 8px 28px #23372c18; }
.has-account .saved-account-menu-list a, .has-account .saved-account-menu-list button { display: flex; align-items: center; justify-content: flex-start; width: 100%; min-height: 44px; margin: 0; padding: 10px 14px; border: 0; border-radius: 8px; background: transparent; color: var(--forest); font: inherit; font-size: 14px; text-align: left; text-decoration: none; }
.has-account .saved-account-menu-list form { margin: 0; }
.has-account .saved-account-menu-list .danger { color: #9b3434; }
.saved-account-menu-list a:hover, .saved-account-menu-list button:not(:disabled):hover { background: #f3f6ef; }
.saved-account-menu-list :disabled { opacity: .45; cursor: not-allowed; }
.saved-services > .service-more { justify-content: center; width: 100%; min-height: 160px; padding: 24px 8px; border-radius: 14px; }
@media (min-width:761px) and (max-width:1120px) { .service-shortcuts { grid-template-columns: repeat(7,minmax(0,1fr)); } }
.service-catalog-open { overflow: hidden; }
.service-catalog { width: min(760px,calc(100vw - 40px)); max-height: min(820px,calc(100dvh - 48px)); padding: 28px; border: 1px solid #e0e7dc; border-radius: 24px; background: #fafbf7; color: var(--ink); box-shadow: 0 25px 90px #14231d40; overflow: auto; }
.service-catalog::backdrop { background: #152b2555; backdrop-filter: blur(3px); }
.service-catalog-heading { display: flex; align-items: flex-start; gap: 20px; justify-content: space-between; margin-bottom: 20px; }
.service-catalog-heading h2 { margin: 0 0 7px; }
.service-catalog-heading p { margin: 0; color: var(--muted); font-size: 14px; }
.has-account .service-catalog-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; border: 1px solid #dce5d7; color: var(--forest); background: #fff; font-size: 27px; font-weight: 400; }
.service-catalog-controls { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 14px; }
.has-account .service-catalog-controls .field { margin-bottom: 14px; }
.service-results-count { margin: 0 0 12px; font-size: 13px; }
.service-results { max-height: min(360px,42dvh); overflow-y: auto; overscroll-behavior: contain; padding: 4px; border: 1px solid #e1e7dd; border-radius: 14px; background: #fff; }
.service-result { display: flex; align-items: center; gap: 13px; padding: 12px; min-height: 64px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.service-result[hidden] { display: none !important; }
.service-result:hover, .service-result[aria-selected=true] { background: #edf4e8; }
.service-result-logo { width: 44px; height: 44px; border-radius: 10px; border: 1px solid #edf0e9; background: #fff; display: flex; align-items: center; justify-content: center; color: #60785b; flex-shrink: 0; }
.service-result-logo img { display: block; width: 32px; height: 32px; object-fit: contain; }
.service-result-logo img:not([src]) { visibility: hidden; }
.service-result-logo svg { width: 26px; height: 26px; }
/* Preserve white brand marks on a contrasting background. */
.service-brand-dazn, .service-brand-sony, .service-brand-supercell { background: #172723; border-radius: 4px; padding: 3px; box-sizing: border-box; }
.service-result > span:nth-child(2) { min-width: 0; overflow-wrap: anywhere; }
.service-result strong { display: block; font-size: 15px; font-weight: 600; }
.service-result small { display: block; color: var(--muted); font-size: 12px; margin-top: 4px; }
.service-result-add { margin-left: auto; font-size: 22px; color: #6c8467; }
.service-catalog-footer { margin-top: 18px; }
.service-catalog-footer p { margin: 0 0 10px; font-size: 13px; }
.service-catalog-footer .button { white-space: normal; max-width: 100%; overflow-wrap: anywhere; }
@media(max-width:760px) {
 .service-shortcuts { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 6px; }
 .service-shortcut { font-size: 12px; padding: 9px 1px; }
 .service-logo { width: 48px; height: 48px; border-radius: 14px; }
 .service-logo img { width: 32px; height: 32px; }
 .service-logo img.service-brand-amazon, .service-logo img.service-brand-notre-temps, .service-logo img.service-brand-edf { width: 40px; height: 32px; }
 .service-catalog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 20px; border-radius: 20px; }
 .service-catalog-controls { grid-template-columns: minmax(0,1fr); gap: 0; }
 .service-results { max-height: 32dvh; }
}
@media(max-width:360px) { .service-shortcuts { grid-template-columns: repeat(3,minmax(0,1fr)); } }
.account-tabs, .role-tabs { display: flex; gap: 5px; flex-wrap: wrap; margin: 12px 0 28px; padding: 5px; background: #eef0e7; border-radius: 13px; width: fit-content; max-width: 100%; }
.account-tabs > a, .role-tabs > a { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 22px; border-radius: 9px; text-decoration: none; color: #60725e; }
.account-tabs > a[aria-current], .role-tabs > a[aria-current] { background: #fff; color: var(--forest); font-weight: 600; box-shadow: 0 2px 6px #263a2510; }
.role-tabs { width: 100%; }
.role-tabs > a { flex: 1; }
.has-account .price { font-size: 40px; font-weight: 600; letter-spacing: -1.3px; margin: 20px 0 2px; line-height: 1.2; }
.has-account .plan-card { position: relative; padding: 28px 24px; }
.has-account .current-plan { border-color: #7e9f70; background: #f5f8ef; }
.current-plan-label { position: absolute; top: -13px; left: 22px; font-size: 12px; font-weight: 600; color: #4d7040; padding: 3px 10px; background: #f5f8ef; border: 1px solid #7e9f70; border-radius: 20px; }
.plan-features { list-style: none; padding: 0; margin: 22px 0; }
.plan-features li { display: flex; align-items: baseline; gap: 10px; padding: 6px 0; font-size: 15px; }
.plan-features li::before { content: '•'; color: #729365; font-size: 13px; }
.has-account .plan-card > .muted { font-size: 13px; }
.has-account .secret { overflow-wrap: anywhere; font-size: 20px; letter-spacing: 2px; background: #f0f5e9; padding: 14px; border-radius: 10px; }
.has-account .deletion-zone .card { margin: 0; max-width: 760px; border: 0; background: transparent; padding: 0; box-shadow: none; }
.has-account :focus-visible { outline: 3px solid #397a60; outline-offset: 4px; }
.has-account [aria-invalid=true] { border-color: #a5382c !important; }
.has-account .field-error { color: #9b3027 !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.has-account .password-toggle { min-height: 44px; font-size: 14px; color: var(--forest); background: transparent; }
.has-account .empty { padding: 20px 0; text-align: left; }
.has-account .empty p { margin-bottom: 0; }
.has-account footer { background: var(--paper); color: #65725e; border-top: 1px solid var(--line); padding: 22px 32px; font-size: 12px; }
.has-account footer a { color: #677460; }
.has-account .top .account-icon-button { background: transparent; color: var(--forest); }
.has-account .top .account-icon-button:hover { background: #e9f0e1; }
.has-account .top .account-logout-button { color: #73806e; }

@media (max-width: 1120px) {
  .has-account .shell { grid-template-columns: 208px minmax(0,1fr); }
  .has-account .sidebar-content { padding-inline: 12px; }
  .has-account .account-sidebar nav a,
  .has-account .account-sidebar nav .sidebar-logout-button { padding-inline: 12px; gap: 9px; }
  .has-account main { padding: 34px 28px 48px; }
  .has-account .plans { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .has-account .shell { display: block; min-height: calc(100svh - 80px); }
  .has-account .account-sidebar { display: none; }
  .has-account main { padding: 28px 20px 36px; }
  .has-account .workspace-heading { align-items: flex-start; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
  .has-account h1 { font-size: 30px; letter-spacing: -.9px; }
  .has-account h2 { font-size: 21px; }
  .workspace-heading p { font-size: 15px; }
  .has-account .workspace-heading > .badge { display: none; }
  .section-flow-arrow { height: 28px; }
  .trusted-person-circle, .person-add-circle { width: 120px; height: 120px; padding: 14px; }
  .trusted-person-circle { padding: 12px; gap: 6px; }
  .trusted-person-circle span, .person-add-circle span { font-size: 13px; line-height: 1.3; }
  .people-add-actions { gap: 20px; }
  .person-editor-dialog .role-tabs { display: flex; flex-wrap: wrap; }
  .person-editor-dialog .role-tabs > a { justify-content: center; min-width: 100px; }
  .person-invitation-form .grid { gap: 16px; }
  .wishes-choices { grid-template-columns: minmax(0,1fr); gap: 0; }
  .workspace-section > summary { padding: 20px; gap: 14px; }
  .workspace-section > summary strong { font-size: 18px; letter-spacing: -.3px; }
  .workspace-section > summary small { font-size: 13px; margin-top: 5px; }
  .section-symbol { width: 42px; height: 42px; border-radius: 13px; }
  .section-symbol .workspace-icon { width: 22px; height: 22px; }
  .section-chevron { width: 27px; height: 27px; font-size: 20px; }
  .has-account .section-body { padding: 22px 20px !important; }
  .has-account .card { padding: 22px 20px; }
  .has-account .grid { grid-template-columns: 1fr; gap: 0; }
  .has-account .grid > .card { margin-bottom: 16px; }
  .has-account .actions { flex-direction: column; align-items: stretch; gap: 10px; }
  .has-account .actions > * { width: 100%; justify-content: center; text-align: center; }
  .has-account .list-row { display: block; }
  .has-account .list-row .actions { margin-top: 18px; }
  .subsection-heading, .editor-heading { display: block; }
  .subsection-heading .button { margin-top: 12px; width: 100%; }
  .editor-heading > a { display: inline-flex; min-height: 44px; align-items: center; }
  .has-account .person-role { display: block; padding: 16px; }
  .has-account .person-role .item-options { margin-top: 8px; }
  .account-tabs { display: flex; width: 100%; flex-wrap: nowrap; }
  .account-tabs > a { flex: 1; padding: 8px 10px; font-size: 14px; }
  .role-tabs { display: block; }
  .role-tabs > a { justify-content: flex-start; font-size: 15px; }
  .has-account .mobile-dock { grid-template-columns: repeat(3,minmax(0,1fr)); padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: #fffffff5; backdrop-filter: blur(16px); border-top: 1px solid var(--line); box-shadow: 0 -4px 20px #344c3006; }
  .has-account .mobile-dock > a { font-size: 11px; min-width: 0; border-radius: 12px; padding: 7px 2px; min-height: 54px; color: #61705a; gap: 5px; }
  .has-account .mobile-dock > a[aria-current] { background: #ecf2e5; color: var(--forest); font-weight: 600; }
  .has-account .mobile-dock svg { width: 21px; height: 21px; }
  .has-account { padding-bottom: calc(80px + env(safe-area-inset-bottom)); }
  .has-account .secret { font-size: 16px; letter-spacing: 1px; }
  .has-account .optional-fields { padding: 12px 14px; }
  .has-account .top { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; min-height: 68px; gap: 8px; flex-wrap: nowrap; }
  .has-account .top .logo { width: 132px; }
  .has-account .top-right { width: auto; margin-left: auto; flex-wrap: nowrap; gap: 8px; }
  .has-account .top .privacy-badge { min-height: 32px; padding: 6px 8px; gap: 5px; font-size: 11px; }
  .has-account .top .privacy-badge .workspace-icon { width: 13px; height: 13px; }
  .has-account .top-right .button.small { flex: 0 0 auto; padding: 10px 12px; font-size: 12px; min-height: 44px; }
  .has-account .account-actions { gap: 2px; }
  .has-account .notice { padding: 16px 18px; }
  .has-account footer { padding: 24px 20px; gap: 12px 18px; }
}
@media (max-width: 359px) {
  .has-account .top { padding-inline: 12px; }
  .has-account .top .logo { width: 108px; }
  .has-account .top-right { gap: 2px; }
  .has-account .top .privacy-badge { width: 32px; padding: 6px; justify-content: center; }
  .has-account .top .privacy-badge-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
  .has-account .top-right .button.small { padding-inline: 10px; }
  .has-account main { padding-inline: 16px; }
  .workspace-section > summary { padding: 18px 14px; gap: 10px; }
  .section-symbol { width: 36px; height: 36px; border-radius: 11px; }
  .has-account .section-body { padding-inline: 16px !important; }
  .account-tabs > a { padding-inline: 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .has-account * { scroll-behavior: auto !important; transition: none !important; }
}
@media print {
  .has-account .top, .has-account .account-sidebar, .has-account .mobile-dock { display: none; }
  .has-account .shell { display: block; }
  .has-account { padding-bottom: 0; background: #fff; }
}
/* Practical guidance and owner-only history. */
.help-steps { padding-left: 24px; margin: 20px 0; }
.help-steps li { padding-left: 6px; margin: 0 0 20px; }
.help-steps li p { margin: 7px 0; }
.secret { overflow-wrap: anywhere; }
.history-row { display: grid; grid-template-columns: minmax(0,1fr) minmax(200px,1fr); gap: 24px; padding: 24px 0; border-top: 1px solid #dce4d9; }
.history-row h3 { margin-top: 0; }
.press-demo-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 24px; align-items: start; }
.press-demo-grid > .card { margin: 0; }
.press-preview { background: #fdfcf7; }
.press-preview h2, .press-preview h3 { font-family: Georgia, serif; font-weight: 500; }
.press-demo-link { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 24px 0; padding: 24px; border: 1px solid #dce4d9; border-radius: 18px; }
.press-demo-link h3 { margin: 10px 0; }
.press-demo-link p { margin: 0; }
@media (max-width:760px) { .history-row,.press-demo-grid { grid-template-columns: minmax(0,1fr); } .press-demo-link { align-items: stretch; flex-direction: column; } }
