/* Daily tools share AUNOR's Poppins, petrol, mist and mint in both themes. */
.everyday-page, .ed-dialog { --ed-accent: var(--ink-236b55, #236b55); }
.sidebar nav { flex: 1; min-height: 0; overflow-y: auto; padding-bottom: 8px; scrollbar-width: thin; }
.sidebar-top, .sidebar-account, .status-beacon { flex-shrink: 0; }
.everyday-page .button, .ed-dialog .button { min-height: 44px; }
.ed-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.ed-heading h2 { margin: 4px 0 8px; font: 700 clamp(23px, 3vw, 32px)/1.25 var(--display); }
.ed-heading p { margin: 0; color: var(--muted); }
.ed-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin: 20px 0; }
.ed-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.ed-tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--hairline); border-radius: 10px; background: var(--paper); color: var(--muted); font: 500 13px/1.4 var(--body); cursor: pointer; transition: background 150ms ease, border-color 150ms ease; }
.ed-tabs button:hover { border-color: var(--hairline-strong); color: var(--ink); }
.ed-tabs button[aria-pressed="true"] { color: var(--ink); background: var(--ok-soft); border-color: var(--ok); }
.ed-scope { display: grid; gap: 4px; color: var(--muted); font-size: 12px; }
.ed-scope select { min-width: 160px; }
.ed-notice, .ed-error { padding: 16px 20px; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); margin: 16px 0; overflow-wrap: anywhere; }
.ed-notice { border-left: 3px solid var(--ok); }
.ed-error p { color: var(--muted); }
.ed-filters { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; margin: 18px 0; }
.ed-filters label { display: grid; gap: 6px; flex: 1 1 160px; font-size: 13px; color: var(--muted); }
.ed-filters input, .ed-filters select { width: 100%; }
.ed-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ed-card, .ed-session, .ed-week, .ed-pantry { border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--paper); padding: 22px; min-width: 0; }
.ed-card { display: flex; flex-direction: column; gap: 12px; }
.ed-recipe-symbol { width: 46px; height: 46px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; color: var(--ed-accent); background: var(--ok-soft); }
.ed-recipe-photo { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; }
.ed-card-top, .ed-card-actions, .ed-section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ed-card h3 { margin: 0; font: 600 17px/1.45 var(--body); overflow-wrap: anywhere; }
.ed-card p { margin: 0; color: var(--muted); font-size: 13px; }
.ed-card .ed-card-actions { margin-top: auto; padding-top: 6px; }
.ed-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 12px; }
.ed-meta span { display: inline-flex; align-items: center; gap: 5px; }
.ed-badge { display: inline-flex; padding: 4px 9px; border-radius: 6px; background: var(--mist); font-size: 12px; color: var(--muted); }
.ed-card .icon-button, .ed-dialog .icon-button { min-width: 44px; min-height: 44px; display: inline-grid; place-items: center; color: var(--muted); border: 1px solid var(--hairline); background: var(--paper); border-radius: 10px; cursor: pointer; }
.ed-card .icon-button[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.ed-empty { display: grid; justify-items: center; gap: 10px; padding: 54px 24px; border: 1px dashed var(--hairline-strong); border-radius: var(--radius-lg); text-align: center; }
.ed-empty h3, .ed-empty p { margin: 0; }
.ed-empty p { max-width: 480px; color: var(--muted); }
.ed-empty-icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 18px; background: var(--ok-soft); color: var(--ed-accent); margin-bottom: 6px; }
.ed-muted, .ed-source { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.ed-source { font-size: 12px; margin: 12px 0; }
.ed-source a, .ed-detail a:not(.button) { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.ed-more { display: flex; justify-content: center; margin: 22px 0; }
.ed-dialog { width: min(700px, calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 24px; overflow-y: auto; color: var(--ink); background: var(--paper); }
.ed-dialog-heading { display: flex; justify-content: space-between; gap: 16px; align-items: start; margin-bottom: 20px; }
.ed-dialog h2 { margin: 0; font: 600 23px/1.35 var(--body); }
.ed-dialog h3 { font-size: 16px; margin: 24px 0 12px; }
.ed-dialog .ed-filters { align-items: center; }
.ed-form { display: grid; gap: 16px; }
.ed-form label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; }
.ed-form .ed-check { display: flex; gap: 10px; align-items: center; }
.ed-form textarea { min-height: 90px; }
.ed-form input, .ed-form select, .ed-form textarea { width: 100%; }
.ed-form input[type="checkbox"], .ed-check input { width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ok); }
.ed-form-actions { display: flex; justify-content: end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.ed-list { list-style: none; padding: 0; margin: 0; }
.ed-list-row { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--hairline); overflow-wrap: anywhere; }
.ed-list-row:last-child { border-bottom: 0; }
.ed-list-row > div { min-width: 0; flex: 1; }
.ed-list-row strong { display: block; font-size: 14px; font-weight: 500; }
.ed-list-row small { display: block; color: var(--muted); margin-top: 3px; }
.ed-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; margin: 16px 0; padding: 18px 0; border-bottom: 1px solid var(--hairline); }
.ed-step-number { display: grid; place-items: center; width: 32px; height: 32px; color: var(--ok); background: var(--ok-soft); border-radius: 50%; font-weight: 600; }
.ed-step p { margin: 0 0 10px; white-space: pre-line; overflow-wrap: anywhere; }
.ed-step.done p { color: var(--muted); }
.ed-step-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.ed-session { margin-bottom: 20px; }
.ed-session progress { width: 100%; height: 6px; accent-color: var(--ok); margin: 18px 0; }
.ed-week-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 20px; }
.ed-day { background: var(--mist); border-radius: 10px; padding: 12px; min-width: 0; }
.ed-day h3 { margin: 0 0 12px; font-size: 13px; }
.ed-meal { padding: 10px 0; border-top: 1px solid var(--hairline); display: grid; gap: 6px; font-size: 12px; overflow-wrap: anywhere; }
.ed-meal button { min-height: 44px; text-align: left; white-space: normal; }
.ed-location-form { display: flex; align-items: end; gap: 12px; flex-wrap: wrap; margin: 20px 0 12px; }
.ed-location-form label { display: grid; gap: 6px; flex: 1 1 230px; color: var(--muted); font-size: 13px; }
.ed-location-choices { display: grid; gap: 8px; }
.ed-location-choices button { min-height: 44px; text-align: left; white-space: normal; }
.ed-categories { margin: 20px 0; }
.ed-nearby-filters { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 20px 0; }
.ed-nearby-filters label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.ed-nearby-filters input { width: 18px; height: 18px; accent-color: var(--ok); }
.ed-nearby-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.ed-map-column { min-width: 0; }
.ed-map { height: 390px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--paper); overflow: hidden; }
.ed-place { width: 100%; display: flex; align-items: start; gap: 14px; padding: 18px; margin-bottom: 10px; color: var(--ink); text-align: left; border: 1px solid var(--hairline); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.ed-place[aria-pressed="true"] { border-color: var(--ok); background: var(--ok-soft); }
.ed-place-copy { min-width: 0; flex: 1; display: grid; gap: 6px; }
.ed-place-copy strong { font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.ed-place-copy small { color: var(--muted); }
.ed-place-distance { font-size: 12px; white-space: nowrap; color: var(--muted); }
.ed-detail { padding: 22px; margin-top: 16px; border: 1px solid var(--hairline); border-radius: var(--radius-lg); background: var(--paper); }
.ed-detail h3 { margin-top: 0; overflow-wrap: anywhere; }
.ed-detail dl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 10px; font-size: 13px; }
.ed-detail dt { color: var(--muted); }
.ed-detail dd { margin: 0; overflow-wrap: anywhere; }
.ed-detail p { white-space: pre-line; overflow-wrap: anywhere; }
.ed-pin { width: 30px; height: 30px; border: 2px solid var(--paper); border-radius: 50%; color: white; background: var(--ok); box-shadow: var(--shadow-sm); display: grid; place-items: center; font: 600 12px var(--body); }
.ed-center-pin { background: var(--night-3); }
.ed-current-sessions { display: grid; gap: 8px; margin-bottom: 20px; }
@media (max-width: 1150px) { .ed-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ed-week-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 650px) { .ed-heading { align-items: start; flex-direction: column; gap: 14px; } .ed-card-grid, .ed-nearby-layout { grid-template-columns: minmax(0, 1fr); } .ed-toolbar { align-items: stretch; } .ed-scope { width: 100%; } .ed-location-form .button { flex: 1 1 140px; white-space: normal; } .ed-map { height: 300px; } .ed-card, .ed-session, .ed-week, .ed-pantry { padding: 18px; } .ed-week-grid { grid-template-columns: minmax(0, 1fr); } .ed-step { gap: 8px; } .ed-dialog { padding: 20px; } }
@media (prefers-reduced-motion: reduce) { .ed-tabs button { transition: none; } }
