/* Customer readability only. Existing palette, routes and stored data stay intact. */
.app-shell:is([data-screen="home"],[data-screen="diary"],[data-screen="afterWedding"]) .home-tiles-heading h1 {font-size:22px;line-height:1.45;letter-spacing:-.5px;word-break:keep-all;}
.home-tiles-subtitle {word-break:keep-all;font-size:14px;line-height:1.6;}
.home-tiles strong,.home-tiles small {word-break:keep-all;overflow-wrap:normal;}
.home-tiles {gap:8px;margin:16px 0;}
.home-tiles button {padding:14px 4px;gap:8px;}
.home-tiles strong {font-size:13px;line-height:1.5;}
.home-tiles small {font-size:12px;line-height:1.5;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .page-title {padding:18px 0 12px;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .page-title h1 {font-size:23px;line-height:1.45;letter-spacing:-.5px;word-break:keep-all;overflow-wrap:anywhere;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .page-title p {font-size:13px;line-height:1.65;margin:8px 0;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .notice {font-size:13px;line-height:1.7;margin:12px 0;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .section-head {gap:12px;margin-bottom:12px;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .section-head h2,.diary-dates h2 {font-size:18px;line-height:1.5;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .field {font-size:14px;line-height:1.6;min-width:0;}
.app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .field :is(input,select,textarea) {font-size:16px;min-width:0;max-width:100%;box-sizing:border-box;}
.diary-dates .diary-date-card {gap:8px;margin:0;padding:12px 0;border-bottom:1px solid var(--line);}
.diary-date-label {display:flex;align-items:center;gap:8px;flex-wrap:wrap;font-size:14px;}
.diary-date-label small {font-size:12px;}
.diary-dates .diary-date-card strong {font-size:20px;line-height:1.3;}
.diary-dates .diary-date-card input {min-height:46px;padding:10px 12px;font-variant-numeric:tabular-nums;}
.diary-date-alert summary {min-height:44px;box-sizing:border-box;padding:12px 0;}
.diary-date-alert {margin-top:0;padding-top:0;}
.diary-dates .actions {margin-top:14px;gap:10px;}
.diary-dates .actions .small {font-size:13px;line-height:1.6;}
.app-shell[data-screen="afterWedding"] .after-tabs {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:4px;}
.app-shell[data-screen="afterWedding"] .after-tabs button {min-width:0;min-height:44px;font-size:13px;padding:10px 6px;white-space:normal;word-break:keep-all;}
.app-shell[data-screen="afterWedding"] .guest-counts {grid-template-columns:repeat(2,minmax(0,1fr));gap:12px 16px;margin:16px 0;}
.guest-counts>div {min-width:0;padding:0 0 10px;border-bottom:1px solid var(--line);}
.guest-counts dt {font-size:13px;line-height:1.6;}
.guest-counts dd {margin:4px 0 0;font-size:25px;font-weight:700;line-height:1.3;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;}
.guest-counts dd small {font-size:13px;font-weight:400;margin-left:4px;}
.guest-filters {display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;}
.guest-filters .field {margin:0;min-width:0;}
.guest-filters .field:first-child {grid-column:1/-1;}
.guest-filters button {min-height:46px;}
.guest-list .guest-item {padding:14px;}
.guest-item .section-head strong {font-size:16px;min-width:0;overflow-wrap:anywhere;}
.guest-item .section-head .text-btn {flex-shrink:0;min-height:44px;}
.guest-item p {font-size:14px;line-height:1.65;overflow-wrap:anywhere;}
.guest-empty {padding:28px 18px;}
.guest-empty strong {font-size:16px;}
.guest-empty p {font-size:14px;line-height:1.7;margin:10px 0 0;}
@media(max-width:600px) {
 .app-shell:is([data-screen="diary"],[data-screen="afterWedding"]) .panel {padding:16px;}
 .diary-dates .diary-date-grid {grid-template-columns:minmax(0,1fr);gap:0;}
 .diary-dates .diary-date-card {display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;}
 .diary-dates .diary-date-card input {grid-column:1/-1;width:100%;}
 .app-shell[data-screen="diary"] .couple-progress {gap:4px;}
 .app-shell[data-screen="diary"] .couple-progress small {font-size:12px;word-break:keep-all;}
}

/* Home order requested by the owner: fair banner, dates, four rows, continuation last. */
.app-shell[data-screen="home"] .home-fairs-banner {display:flex;align-items:center;gap:12px;width:100%;padding:14px 16px;margin:4px 0 16px;border:1px solid var(--line);border-radius:16px;background:var(--panel,#edf1eb);color:inherit;text-align:left;}
.home-fairs-banner>span:nth-child(2) {display:grid;gap:4px;flex:1;}
.home-fairs-banner strong {font-size:15px;line-height:1.5;}
.home-fairs-banner small {font-size:12px;line-height:1.5;color:var(--muted,#6e746e);}
.home-fairs-banner>.cat-icon {width:40px;height:40px;flex-shrink:0;}
.app-shell[data-screen="home"] .home-tiles {margin:10px 0;gap:8px;}
.app-shell[data-screen="home"] .home-tiles button {padding:12px 3px;gap:6px;}
.app-shell[data-screen="home"] .home-tiles .cat-icon {width:38px;height:38px;}
.app-shell[data-screen="home"] .home-tiles small {font-size:11px;}
.app-shell[data-screen="home"] .diary-home-dates {margin-top:0;margin-bottom:16px;}
html[data-theme="dark"] .app-shell[data-screen="home"] .home-fairs-banner {background:var(--night-surface);color:var(--ink);}
