/* Fælles mål og typografi følger appens tema. */
button#brandKort.ff-brand { display:inline-flex; align-items:center; gap:8px; min-width:var(--tap); max-width:min(76vw,220px); min-height:var(--tap); padding:4px 10px; border:1px solid var(--line); background:var(--surface-2); color:var(--text); font:inherit; letter-spacing:0; text-align:left; }
button#brandKort.ff-brand::after { display:none; }
.ff-brand .ff-brandtext { min-width:0; }
.ff-brand strong,.ff-brand small { display:block; }
.ff-brand strong { overflow:hidden; text-overflow:ellipsis; font-size:14px; line-height:1.2; font-weight:700; }
.ff-brand small,.ff-kicker { color:var(--muted); font-size:10px; line-height:1.4; font-weight:650; letter-spacing:.09em; text-transform:uppercase; }
.ff-brand .ff-arrow { margin-left:auto; }
.ff-arrow { flex:none; width:8px; height:8px; border:solid var(--muted); border-width:0 1.5px 1.5px 0; transform:translateY(-2px) rotate(45deg); margin-inline:5px; }
.ff-brand .ff-product { display:none; }
@media(min-width:901px) {
  .brand:has(button.ff-brand) .word { display:none; }
  .ff-brand .ff-product { display:block; }
  .ff-brand .ff-switch { display:none; }
}
.ff-avatar { flex:none; display:inline-grid; place-items:center; width:41px; height:41px; font-size:12px; font-weight:750; letter-spacing:.025em; line-height:1; border-radius:var(--radius); background:hsl(var(--h),var(--avatar-bg-s),var(--avatar-bg-l)); color:hsl(var(--h),var(--avatar-fg-s),var(--avatar-fg-l)); }
.ff-brand .ff-avatar { height:32px; width:32px; font-size:10px; border-radius:8px; }
button#brandKort.ff-brand { border-radius:var(--radius); padding-left:5px; }
.ff-title { color:var(--text); letter-spacing:-.04em; font-size:27px; line-height:1.15; font-weight:700; }
.modal:has(.ff-sheet) .modal-card { position:relative; display:grid; grid-template-columns:minmax(0,1fr); padding:0; max-height:85dvh; overflow:auto; width:min(468px,100%); }
.modal-card:has(.ff-sheet) :is(#modalBody,#modalClose) { grid-area:1/1; }
.modal-card:has(.ff-sheet) #modalClose { float:none; position:sticky; top:16px; justify-self:end; align-self:start; width:var(--tap); height:var(--tap); margin:16px max(16px,env(safe-area-inset-right)) 0 0; }
.ff-sheet { padding:0 max(18px,env(safe-area-inset-right)) max(20px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-left)); }
.ff-sheet .ff-head { padding:21px 53px 19px 0; }
.ff-sheet .ff-title,.ff-profile .ff-title { margin:0; }
.ff-sub { margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.45; overflow-wrap:anywhere; }
.firmavalg { display:block; }
.ff-list { display:grid; gap:0; }
.ff-row { position:relative; display:flex; align-items:center; gap:11px; width:100%; min-width:0; min-height:68px; text-align:left; padding:11px 13px; color:var(--text); border:0; background:transparent; }
.ff-list button,.ff-profile button,.ff-profile summary { cursor:pointer; }
.ff-id { display:block; min-width:0; flex:1; }
.ff-id strong,.ff-id small { display:block; overflow-wrap:anywhere; }
.ff-id strong { font-size:16px; font-weight:650; letter-spacing:-.015em; line-height:1.28; }
.ff-id small { margin-top:3px; color:var(--muted); font-size:13px; line-height:1.35; }
.ff-goto,.ff-act::after { font-size:21px; font-weight:400; color:var(--muted); line-height:1; }
.ff-box { background:var(--surface); border:1px solid var(--line); border-radius:var(--radius); }
.ff-row + .ff-row { border-top:1px solid var(--line); }
.ff-feature { background:linear-gradient(110deg,var(--accent-soft),color-mix(in srgb,var(--accent-soft) 42%,var(--surface))); border:1px solid color-mix(in srgb,var(--accent) 50%,var(--line)); border-radius:var(--radius); padding:15px 16px; }
.ff-feature .ff-kicker { display:flex; align-items:center; gap:6px; color:var(--accent-text); font-size:11px; letter-spacing:.06em; }
.ff-feature .ff-kicker svg { width:14px; height:14px; }
.ff-feature .ff-id strong { font-size:22px; margin-top:6px; letter-spacing:-.035em; }
.ff-feature .ff-id small { color:var(--text); }
.ff-feature .ff-avatar { width:53px; height:53px; border-radius:var(--radius); font-size:15px; }
.ff-sectionlabel { margin:18px 1px 5px; font-size:13px; font-weight:650; color:var(--muted); }
.ff-others .ff-row { padding-inline:3px; }
.ff-sheet h2:focus { outline:none; }
.ff-sheet button:focus-visible,.ff-profile :is(button,summary):focus-visible,.ff-brand:focus-visible { outline:2px solid var(--accent-text); outline-offset:-3px; }
@media(max-width:700px) {
  .modal:has(.ff-sheet) { padding:0; align-items:flex-end; }
  .modal:has(.ff-sheet) .modal-card { width:100%; border-radius:18px 18px 0 0; }
  .ff-sheet::before { content:''; display:block; width:34px; height:4px; border-radius:999px; background:var(--felt-kant); opacity:.55; margin:8px auto 0; }
  .ff-sheet .ff-head { padding-top:17px; }
}
.ff-profile { max-width:600px; margin:0 auto; }
.view:has(.ff-profile) .indst-tilbage { margin-bottom:8px; }
.ff-profile .ff-head { margin:0 3px 15px; }
.ff-profile .ff-blocktitle { margin:20px 3px 8px; font-size:19px; letter-spacing:-.025em; line-height:1.3; }
.ff-lock { display:grid; place-items:center; width:var(--tap); color:var(--muted); }
.ff-locked { opacity:.72; }
.ff-locked .ff-id small { white-space:normal; }
.ff-lock svg { width:16px; height:16px; }
.ff-profile .ff-act { display:flex; align-items:center; text-align:left; width:100%; min-height:var(--tap); gap:11px; padding:10px 13px; border:0; border-radius:0; background:transparent; color:var(--text); font-size:14px; font-weight:550; }
.ff-act > svg { width:17px; height:17px; color:var(--muted); }
.ff-act::after { content:'›'; margin-left:auto; }
.ff-act + .ff-act { border-top:1px solid var(--line); }
.ff-account { overflow:hidden; }
.ff-delete { margin-top:12px; border-top:1px solid var(--line); color:var(--muted); }
.ff-delete summary { min-height:var(--tap); display:flex; align-items:center; gap:8px; list-style:none; font-size:13px; padding:6px 3px; }
.ff-delete summary::-webkit-details-marker { display:none; }
.ff-delete summary::after { content:'+'; margin-left:auto; font-size:18px; }
.ff-delete[open] summary::after { content:'−'; }
.ff-delete summary svg { width:15px; height:15px; }
.ff-delete p { font-size:13px; margin:0 0 10px; }
.ff-delete button { min-width:var(--tap); min-height:var(--tap); }
.ff-profile .ff-feature { display:grid; grid-template-columns:minmax(0,1fr) auto; }
.ff-profile .ff-others .ff-row { padding-inline:4px; min-height:61px; }
.ff-profile .ff-sectionlabel { margin-top:10px; }
#firmaFejl:empty { display:none; }
