/* Zhian UI refinement. Existing colors, semantic states and font families are preserved. */
/* Shell: consistent spacing and comfortable touch targets. */
.ep-content { padding-top:30px; }
.ep-content h1 { line-height:1.45; letter-spacing:.015em; }
.ep-content .footer { padding-top:24px; font-size:12px; line-height:1.8; }
.button,.ep-main .button,.modal .button { min-height:46px; border-radius:12px; padding:10px 18px; }
.icon-btn { min-width:44px; min-height:44px; border-radius:50%; }
:where(button,a,input,select,textarea,summary):focus-visible { outline-width:3px; outline-offset:3px; }
.ep-header-search { border-radius:24px; }
.ep-sidebar button { border-radius:10px; }
.ep-mobile-tabs>button { gap:6px; }
.ep-mobile-tabs>button.active::after { width:24px; left:calc(50% - 12px); border-radius:4px; }
#toast { border-radius:14px; line-height:1.8; padding:14px 20px; }

/* Home: a welcoming beginning, with room around the next useful action. */
.ux-home .ep-greeting { font-size:36px; line-height:1.5; margin-bottom:8px; }
.za-home-welcome { margin:0 0 22px; font-size:15px; line-height:1.9; max-width:46em; }
.ux-home-resume { gap:12px 24px; padding-bottom:18px; margin-bottom:26px; }
.ux-home-resume>span { font-size:14px; }
.story-home { border-radius:26px; overflow:hidden; }
.story-home h2 { line-height:1.55; letter-spacing:.025em; }
.story-home-copy { line-height:1.9; }
.story-home-actions { gap:14px 20px; }
.story-home small { line-height:1.8; }
.ep-categories,.ep-resources { margin-top:34px; }
.ep-section-heading h2,.ux-results-heading h2,.section-head h2 { font-size:21px; line-height:1.6; }
.taxonomy-home-grid>button,.taxonomy-choose>button,.ux-category-choices>button { border-radius:18px; }
.ux-home .taxonomy-home-grid>button { padding:24px 22px; }
.ux-home-category-copy strong { font-size:18px; line-height:1.6; }
.ux-home-category-copy small { line-height:1.8; }
.ux-home-category-count { padding-top:16px; font-size:12px; }
.ep-share-panel { border-radius:24px; }
.ep-share-panel p { line-height:1.9; }
.ep-resource-track button { border-radius:16px; }

/* Library: collection cards, a clear start, optional detail stays optional. */
.ux-heading,.ux-area-heading { margin-bottom:24px; }
.ux-heading h1,.ux-area-heading h1,.ac-home-heading h1,.sw-page-heading h1 { font-size:30px; line-height:1.45; }
.ux-library-intro,.ux-private-note,.ux-area-foot { font-size:14px; line-height:1.85; }
.ux-start-guide { border-radius:20px; padding:26px; }
.ux-start-guide h2 { font-size:22px; line-height:1.6; }
.ux-start-guide p,.ux-start-guide small { line-height:1.9; }
.ux-guide-label { font-size:13px; letter-spacing:.03em; }
.ux-record-tabs button,.sh-tabs .button { min-height:44px; padding:10px 16px; }
.ux-library .ux-find input { border-radius:12px; }
.ux-more-filters>summary,.ux-organize>summary,.ux-service-note>summary { min-height:44px; }
.ux-library .ux-record { border-radius:14px; padding:20px 14px; margin-bottom:6px; }
.ux-record-icon,.record-icon { border-radius:12px; }
.ux-record-copy strong { font-size:17px; line-height:1.75; }
.ux-record-meta { line-height:1.7; }
.ux-record-state.is-draft { border-radius:6px; padding:3px 8px; }
.ux-organize,.ux-service-note { border-radius:16px; }
.ux-no-results,.ux-area-empty,.fw-empty,.sn-empty,.sh-empty { border-radius:20px; padding:34px 24px; }
.ux-no-results h3,.ux-area-empty h3,.fw-empty h3,.sn-empty h3,.sh-empty h3 { font-size:20px; line-height:1.6; }
.ux-no-results p,.ux-area-empty p,.fw-empty p,.sn-empty p,.sh-empty p { font-size:14px; line-height:1.9; max-width:42em; }
.ux-add-guide .ux-add-card { border-radius:16px; }
.ux-add-help,.ux-add-card small { line-height:1.85; }

/* The six life areas keep their individual layouts and established colors. */
.ux-area-symbol { border-radius:18px; }
.ux-area-heading { padding-bottom:16px; }
.ux-area-tile,.ux-person-card,.ux-finance-lane,.ux-digital-lanes>div,.ux-care-split>div,.ux-legal-columns>div { border-radius:18px; }
.ux-family-priority,.ux-health-essential,.ux-digital-key,.ux-finance-overview,.ux-area-note { border-radius:22px; }
.ux-family-grid,.ux-finance-lanes,.ux-care-split,.ux-legal-columns { gap:18px; }
.ux-area-catalogue,.ux-catalogue-group,.taxonomy-group { border-radius:14px; }
.taxonomy-item-grid button { min-height:48px; border-radius:11px; line-height:1.65; }
.fw-intro,.fw-privacy,.fw-next { border-radius:16px; line-height:1.85; }
.fw-card { border-radius:20px; }
.fw-mark { border-radius:15px; }
.fw-person h3,.fw-card h3 { line-height:1.6; }
.fw-read-section { padding-top:18px; padding-bottom:18px; }

/* Sharing: give the person, scope and status a clear hierarchy. */
.sw-page-heading { margin-bottom:24px; }
.sw-heading .sh-intro { font-size:22px; font-weight:550; line-height:1.6; }
.sw-subtitle { font-size:15px; line-height:1.85; }
.sw-summary { border-radius:20px; padding:24px; }
.sw-summary strong { font-variant-numeric:tabular-nums; }
.sh-card,.sw-review-recipient { border-radius:18px; }
.sw-empty-symbol { border-radius:18px; }
.sw-filters .button { min-height:44px; border-radius:10px; }
.sw-future { border-radius:18px; }
.st-option { border-radius:14px; }
.st-option small,.st-intro,.sw-boundary { line-height:1.85; }

/* Stories: editorial rhythm and generous reading space, using the original palette. */
.sn-heading { padding:6px 0 24px; margin-bottom:12px; gap:24px; }
.sn-heading h1 { font-size:36px; letter-spacing:.025em; }
.sn-heading>div>p:last-child { font-size:15px; line-height:1.9; max-width:40em; }
.sn-eyebrow { font-size:13px; letter-spacing:.08em; }
.sn-summary { gap:10px 22px; }
.sn-prompt { border-radius:22px; padding:32px; }
.sn-prompt h2 { font-size:27px; line-height:1.6; letter-spacing:.01em; }
.sn-prompt p { line-height:1.9; }
.sn-topics { gap:12px; padding-bottom:18px; }
.sn-topic { border-radius:22px; padding:10px 14px; min-height:44px; }
.sn-entry { border-radius:16px; padding:26px 16px; margin-bottom:6px; }
.sn-entry-icon { border-radius:8px 15px 15px 8px; }
.sn-entry-copy>strong { font-size:21px; line-height:1.65; margin:10px 0; }
.sn-excerpt { line-height:1.9; }
.sn-paper { border-radius:22px; padding:44px 48px; }
.sn-paper-heading { padding-bottom:28px; margin-bottom:32px; }
.sn-reader .sn-prose { font-size:18px; line-height:2.05; }
.sn-editor #cloud-story-form { border-radius:22px; padding:32px; }
.story-writing-help,.sn-footnote { line-height:1.85; }
.sn-resume { border-radius:16px; }

/* My: keep services easy to reach, with quieter secondary settings. */
.ac-home-heading p { line-height:1.85; }
.ac-home-identity { border-radius:22px; padding:26px; gap:18px; }
.ac-avatar { border-radius:17px; }
.ac-home .ac-home-entry { border-radius:17px; }
.ac-home-tools { gap:14px; }
.ac-home-tools .ac-home-entry { min-height:118px; padding:22px 18px; align-items:flex-start; }
.ac-home-entry strong { line-height:1.6; }.ac-home-entry small { line-height:1.8; }
.ac-home-group { border-radius:17px; margin:12px 0; }
.ac-home-group>summary { min-height:84px; }
.ac-home-group>summary small,.ac-home-boundary { line-height:1.8; }
.ac-home-tests { margin-top:30px; }

/* Forms, readers, restore/export/support dialogs share readable spacing. */
.modal { border-radius:24px; }
.modal-head,.rf-editor .modal-head,.rf-reader .modal-head { padding:22px 26px; }
.modal-head h2,.ux-editor .modal-head h2 { font-size:23px; line-height:1.5; }
.modal-body { padding:24px 26px; }
.modal-footer,.rf-editor .modal-footer,.rf-reader .modal-footer { padding:14px 24px; gap:10px; }
.modal-body :is(p,small,li) { line-height:1.85; }
:is(.field,.ac-field,.ad-panel,.sh-root) :is(input:not([type=checkbox]):not([type=radio]):not([type=hidden]):not([type=file]):not([type=range]),select,textarea),.ux-add-search input,.rm-search input { border-radius:12px; font-size:16px; line-height:1.7; padding:12px 14px; box-sizing:border-box; }
.plain-purpose,.ux-form-intro { border-radius:14px; padding:16px 18px; line-height:1.85; }
.plain-hint,.plain-group-help,.rf-field-kind,.field small,.dialog-note,.ux-form-privacy,.business-privacy,.ux-save-state { font-size:13px; line-height:1.85; }
.plain-detail-group,.rf-editor .plain-detail-group { border-radius:14px; }
.plain-detail-group>summary,.rf-editor .plain-detail-group>summary { min-height:60px; padding:17px 42px 17px 18px; }
.plain-save-note,.ux-form-help,.business-answer,.ac-notice,.st-process,.sr-verification { border-radius:14px; line-height:1.85; }
.rf-reader .rf-detail-field { padding-top:18px; padding-bottom:18px; }
.ep-upload { border-radius:14px; }
.ad-card,.ad-note,.sa-card,.tr-card,.rm-tools,.ad-confirm { border-radius:16px; }
.ad-panel dd { overflow-wrap:anywhere; }
.ad-options label,.contact-check { border-radius:10px; }
.ad-actions .button,.ad-pager .button { min-height:44px; }
.hv-diff>div { border-radius:14px; padding:18px; }
.rf-field-message,.ac-field-error,.auth-error,#ac-error:not([hidden]),.ux-form-error { line-height:1.8; }
#ac-error:not([hidden]),.ux-form-error,.auth-error:not([hidden]) { border-radius:12px; padding:12px 14px; }
.plain-caution,.rf-editor #cloud-leave,#ac-leave,.sr-entry { border-radius:14px; padding:18px; line-height:1.85; }

/* Login, registration, recovery: retain the brand and make the form easier to scan. */
.auth-story { border-radius:28px; }
.auth-story h1 { line-height:1.6; }
.auth-card h2 { font-size:32px; line-height:1.6; }
.auth-subtitle { line-height:1.9; }
.auth-methods { border-radius:14px; padding:5px; }
.auth-methods>button { border-radius:10px; min-height:44px; }
.auth-input-wrap { border-radius:12px; min-height:54px; }
.auth-field { margin-bottom:24px; }
.auth-input-wrap input { border-radius:12px; }
.auth-field-help,.auth-check,.auth-demo-note,.auth-footer { font-size:13px; line-height:1.85; }
.auth-submit { min-height:52px; border-radius:12px; font-size:16px; }
.auth-header-help,.auth-code-send,.auth-back { min-height:44px; }

/* Phone first. Do not override keyboard visibility, safe areas, or main bottom padding. */
@media(max-width:800px) {
  .ep-content { padding:24px 20px; }
  .ep-mobile-tabs { grid-template-columns:repeat(5,minmax(0,1fr)); }
  .ep-mobile-tabs>button { padding:9px 1px; }
  .ux-home .ep-greeting { font-size:30px; }
  .ux-heading h1,.ux-area-heading h1,.ac-home-heading h1,.sw-page-heading h1 { font-size:28px; }
  .ux-home-resume { gap:10px; }
  .ux-home .taxonomy-home-grid { gap:12px; }
  .ux-home .taxonomy-home-grid>button { padding:20px 15px; min-height:176px; }
  .ux-home-category-copy strong { font-size:17px; }
  .story-home { border-radius:22px; }.story-home h2 { font-size:30px; }
  .ux-start-guide { padding:24px 20px; }.ux-start-guide h2 { font-size:21px; }
  .ux-library .ux-record { padding:18px 10px; }.ux-record-copy strong { font-size:16px; }
  .ux-record-tabs button { padding:10px 12px; }
  .sn-heading { padding:4px 0 20px; gap:20px; }.sn-heading h1 { font-size:32px; }
  .sn-prompt { padding:24px 22px; margin-bottom:30px; }.sn-prompt h2 { font-size:24px; }
  .sn-entry { padding:24px 8px; }.sn-entry-copy>strong { font-size:19px; }
  .sn-paper { padding:28px 22px; }.sn-reader .sn-prose { font-size:17px; }
  .sn-editor #cloud-story-form { padding:24px 20px; }.sn-topic { font-size:13px; }
  .sw-summary { padding:22px; }.sw-heading .sh-intro { font-size:21px; }
  .ac-home-identity { padding:22px 18px; }.ac-home-tools { gap:12px; }
  .ac-home-tools .ac-home-entry { min-height:120px; padding:17px 14px; }
  .auth-layout { padding:0 24px 30px; }.auth-entry { padding-top:10px; }
  .modal-head,.rf-editor .modal-head,.rf-reader .modal-head { padding:20px; }
  .modal-head h2,.ux-editor .modal-head h2 { font-size:21px; }
  .modal-body,.ux-editor .modal-body { padding:20px; }
  .modal-footer,.rf-editor .modal-footer,.rf-reader .modal-footer { padding:14px 16px; }
  .modal-footer .button { white-space:normal; }.modal { border-radius:22px; }
}
@media(max-width:380px) {
  .ep-content { padding-left:16px; padding-right:16px; }
  .ux-home-category-copy strong { font-size:16px; }.ux-home .taxonomy-home-grid>button { padding:18px 12px; }
  .auth-layout { padding-left:20px; padding-right:20px; }
  .modal-body,.ux-editor .modal-body { padding:18px 16px; }
}
