.ft-app { color: #25231f; line-height: 1.5; }
.ft-app * { min-width: 0; }
.ft-app [hidden] { display: none !important; }
.ft-app button:focus-visible, .ft-app a:focus-visible, .ft-app summary:focus-visible { outline: 3px solid #9b6c18; outline-offset: 3px; }
.ft-app h3, .ft-app h4 { color: #25231f; }
.ft-privacy { margin: 0 0 22px; padding: 15px 18px; background: #f1f5ed; border: 1px solid #dbe4d4; border-radius: 15px; color: #43503b; font-size: .88rem; }
.ft-privacy strong { display: inline-block; margin-bottom: 4px; color: #2d452c; }
.ft-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin: 0 0 26px; }
.ft-toolbar strong { display: block; font: 700 1.35rem Georgia, serif; }
.ft-toolbar span { display: block; color: #70685e; font-size: .85rem; margin-top: 3px; }
.ft-toolbar button { flex: 0 0 auto; }
.ft-tree { margin-left: 8px; border-left: 2px solid #ddd0af; padding-left: 23px; }
.ft-generation { position: relative; padding: 0 0 25px; }
.ft-generation:last-child { padding-bottom: 6px; }
.ft-generation h3 { margin: 0 0 12px; font-size: .79rem; text-transform: uppercase; letter-spacing: .13em; color: #806320; }
.ft-generation-dot { position: absolute; width: 12px; height: 12px; top: 3px; left: -30px; border: 2px solid #ac8b3d; border-radius: 50%; background: #fff; }
.ft-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.ft-card { border: 1px solid #ddd7cc; border-radius: 15px; padding: 17px 14px; background: #fcfbf8; display: flex; align-items: flex-start; gap: 12px; overflow-wrap: anywhere; }
.ft-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; color: #745724; background: #ece3d1; border-radius: 50%; font: 700 1.1rem Georgia, serif; }
.panel-dialog .ft-name { background: none; border: 0; border-radius: 3px; padding: 0; text-align: left; text-decoration: underline; text-decoration-color: #c4b696; text-underline-offset: 4px; color: #3c4a31; font-weight: 750; line-height: 1.4; overflow-wrap: anywhere; }
.panel-dialog .ft-name:hover { color: #806020; text-decoration-color: currentColor; }
.ft-card .ft-name { font-size: 1.05rem; }
.ft-dates, .ft-relation { margin: 6px 0 0; color: #625b51; font-size: .78rem; }
.ft-card-hint { margin: 12px 0 0; color: #767064; font-size: .73rem; }
.ft-help { font-size: .83rem; color: #70685e; font-weight: 400; line-height: 1.5; }
.ft-friends { margin-top: 28px; padding-top: 10px; border-top: 1px solid #e5e0d6; }
.ft-friends h3 { font: 700 1.3rem Georgia, serif; }
.ft-empty { margin: 20px 0; padding: 24px; background: #fcfbf8; border: 1px dashed #d5c9b0; border-radius: 20px; text-align: center; }
.ft-empty h3 { font: 700 1.7rem Georgia, serif; margin: 12px 0; }
.ft-empty p { max-width: 490px; margin: 12px auto 22px; color: #716659; }
.ft-tree-icon { font-size: 3.7rem; line-height: 1; color: #657647; }
.ft-backups { border-top: 1px solid #e1dcd1; margin-top: 27px; padding-top: 18px; color: #655e54; font-size: .88rem; }
.ft-backups summary { cursor: pointer; color: #403b32; font-weight: 650; }
.ft-backups p { max-width: 650px; }
.ft-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ft-empty .ft-actions { justify-content: center; }
.panel-dialog .ft-danger { color: #9d2933; border-color: #d9b9bb; }
.ft-message { margin: 14px 0; padding: 12px 15px; border-radius: 12px; color: #2d522f; background: #eef5ec; border: 1px solid #d5e4d0; overflow-wrap: anywhere; }
.ft-message.ft-error { color: #91242c; background: #fff2f2; border-color: #e8bdbd; }
.ft-person-hero { display: flex; gap: 17px; align-items: center; margin: 26px 0; }
.ft-avatar-large { width: 60px; height: 60px; flex-basis: 60px; font-size: 1.8rem; }
.ft-person-hero h3 { font: 700 2rem Georgia, serif; margin: 2px 0; overflow-wrap: anywhere; }
.ft-person-hero p { margin: 7px 0 0; color: #71685c; font-size: .86rem; }
.ft-kind { font-size: .71rem; letter-spacing: .12em; text-transform: uppercase; color: #85682c; font-weight: 700; }
.ft-detail-section { border-top: 1px solid #e8e2d8; margin: 18px 0; padding-top: 18px; }
.ft-detail-section h4 { margin: 0 0 12px; font-size: .8rem; letter-spacing: .09em; text-transform: uppercase; }
.ft-detail-section p { overflow-wrap: anywhere; }
.ft-contacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ft-contacts a { display: block; color: #35472a; padding: 13px 15px; border: 1px solid #ddd9d0; border-radius: 13px; text-decoration: none; background: #fcfbf8; overflow-wrap: anywhere; white-space: pre-line; font-size: .9rem; }
.ft-contacts a:hover { border-color: #899b75; background: #f1f5ed; }
.ft-contacts a span { display: block; font-size: .73rem; color: #777061; font-weight: 700; margin-bottom: 4px; }
.ft-notes { white-space: pre-wrap; }
.ft-detail-actions { border-top: 1px solid #e8e2d8; padding-top: 22px; margin-top: 28px; }
.ft-form-title { margin: 24px 0 6px; font: 700 1.7rem Georgia, serif; }
.ft-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
.ft-form-grid .ft-wide { grid-column: 1 / -1; }
.ft-app fieldset { min-width: 0; padding: 12px 17px 16px; border: 1px solid #e0d8c9; border-radius: 16px; margin: 18px 0; }
.ft-app legend { padding: 0 8px; font-weight: 750; font-size: .9rem; }
.ft-app fieldset > .ft-help { margin: 0 0 4px; }
.ft-app textarea { resize: vertical; }
.ft-app input:focus, .ft-app select:focus, .ft-app textarea:focus { outline: 2px solid #9b6c18; outline-offset: 2px; }
.ft-app .buttonlike { display: inline-block; }
@media (max-width: 560px) {
  .ft-cards, .ft-contacts, .ft-form-grid { grid-template-columns: 1fr; }
  .ft-toolbar { align-items: flex-start; flex-direction: column; }
  .ft-card { padding: 14px 12px; }
  .ft-tree { margin-left: 5px; padding-left: 18px; }
  .ft-generation-dot { left: -25px; }
  .ft-person-hero { gap: 12px; }
  .ft-person-hero h3 { font-size: 1.6rem; }
  .ft-avatar-large { width: 48px; height: 48px; flex-basis: 48px; }
  .ft-app fieldset { padding: 9px 12px 12px; }
  .ft-empty { padding: 22px 15px; }
}
