/* Le Le shared UI · Library reference · UI only; print content is unchanged. */
@media screen {
  :root {
    --lele-brand: #B94B45; --lele-brand-strong: #B94B45; --lele-brand-soft: #FFF0E6;
    --lele-gold: #D4A843; --lele-gold-soft: #FFF7E3;
    --lele-ink: #1A1A1A; --lele-muted: #666666; --lele-border: #E0E0E0; --lele-card-border: #EEEEEE;
    --lele-canvas: #FFFFFF; --lele-surface: #FFFFFF; --lele-input: #F8F8F8;
    --lele-radius-card: 14px; --lele-radius-modal: 16px; --lele-radius-input: 14px;
    --lele-shadow-hover: 0 8px 24px rgba(0,0,0,.10);
    --brand: #B94B45; --text: #1A1A1A; --sub: #666666;
  }
  html { color-scheme: light; }
  /* html2canvas uses screen media: never theme the Easter capture subtree. */
  @scope (:root) to (body[data-lele-theme="easter-activity-project"] .print-card-page > div:first-child) {
  body[data-lele-theme] {
    color: var(--lele-ink); background: var(--lele-canvas) !important;
    font-family: 'Noto Sans TC','Noto Sans SC',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
    -webkit-font-smoothing: antialiased;
  }
  body[data-lele-theme] button, body[data-lele-theme] input, body[data-lele-theme] select, body[data-lele-theme] textarea { font-family: inherit; }
  body[data-lele-theme] :is(h1,h2,h3) { letter-spacing: -.015em; }
  body[data-lele-theme] :is(.card,.panel,.section-card,.tool-panel,.stat-card,.summary-card,.translation-downloads) {
    border-radius: var(--lele-radius-card); border-color: var(--lele-card-border); background-color: var(--lele-surface);
  }
  body[data-lele-theme] :is(.modal,.dialog,.dialog-content) { border-radius: var(--lele-radius-modal); }
  body[data-lele-theme] :is(input[type='text'],input[type='search'],input[type='email'],input[type='url'],input[type='password'],input[type='number'],input:not([type]),textarea,select) {
    border-radius: var(--lele-radius-input); border-color: var(--lele-border); background-color: var(--lele-input); color: var(--lele-ink); font-size: 16px;
  }
  body[data-lele-theme] :is(input,textarea,select):focus-visible { outline: 2px solid var(--lele-brand-strong); outline-offset: 2px; }
  body[data-lele-theme] :is(button,a,input,select,textarea):focus-visible { outline: 2px solid var(--lele-brand-strong); outline-offset: 3px; }
  body[data-lele-theme] :is(.btn,.btn-primary,.btn-secondary,.filter-btn,.fb,.tb,.toggle-btn,.tab-btn,.button) {
    border-radius: 20px; font-size: 14px; font-weight: 500; transition: background-color .15s,border-color .15s,box-shadow .15s;
  }
  body[data-lele-theme] :is(.btn-primary,.primary-button,.primary-btn):not(:where(.btn-in,.btn-out,.btn-ship,.btn-danger,.btn-success,.btn-delete,.btn-del)) { background: var(--lele-brand-strong); border-color: var(--lele-brand-strong); color: #fff; }
  body[data-lele-theme] :is(.fb,.tb,.filter-btn):not(.active):not(.a-all):not(.a-red):not(.a-yel):not(.a-grn) { background: #fff; color: var(--lele-muted); border: 1.5px solid var(--lele-border); }
  body[data-lele-theme] :is(.fb,.tb,.filter-btn):hover { border-color: var(--lele-brand); }
  body[data-lele-theme] :is(.tb.active,.a-all) { background: var(--lele-brand); border-color: var(--lele-brand); color: #fff; }
  body[data-lele-theme] .toggle-btn { border-radius: 0; }
  body[data-lele-theme] .toggle-btn:first-child { border-radius: 8px 0 0 8px; }
  body[data-lele-theme] .toggle-btn:last-child { border-radius: 0 8px 8px 0; }
  body[data-lele-theme] .toggle-btn.active { background: var(--lele-brand); color: #fff; border-color: var(--lele-brand); }
  body[data-lele-theme] .lang-toggle { top: 12px; right: 16px; border-color: var(--lele-border); border-radius: 22px; box-shadow: 0 2px 8px rgba(0,0,0,.04); }
  body[data-lele-theme] .lang-toggle button { min-height: 30px; border-radius: 18px; }
  body[data-lele-theme] .lang-toggle button.active { background: var(--lele-brand); color: #fff; }
  body[data-lele-theme] :is(.hdr,.header) { background-color: #fff; }
  body[data-lele-theme] .hdr img { max-width: 400px; }
  body[data-lele-theme] .search-box { border-radius: 14px; border-color: var(--lele-border); background-color: var(--lele-input); }
  body[data-lele-theme] .search-box input { border-radius: 0; background: transparent; }
  body[data-lele-theme] :is(.search-box,.search-field):focus-within { border-color: var(--lele-brand-strong); box-shadow: 0 0 0 2px rgba(185,75,69,.10); }
  body[data-lele-theme] :is(.search-box,.search-field) input:focus-visible { outline: none; }
  body[data-lele-theme] .a-red { color: #3C1410; }
  body[data-lele-theme] .a-yel { color: #332B19; }
  body[data-lele-theme] .a-grn { color: #12321D; }
  body[data-lele-theme] .topic-tag { background: var(--lele-brand-soft); color: #9F3F39; }
  body[data-lele-theme] .cfreq { color: #A8443E; }
  body[data-lele-theme] .card:hover { box-shadow: var(--lele-shadow-hover); }
  .lele-shell-nav {
    display: flex; align-items: center; gap: 20px; min-height: 56px; padding: 8px max(20px,calc((100vw - 1100px)/2));
    background: #fff; border-bottom: 1px solid var(--lele-card-border); color: var(--lele-ink); font-family: inherit;
    width: 100%; box-sizing: border-box; position: relative; z-index: 20;
  }
  .lele-shell-nav .lele-shell-brand { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; color: var(--lele-ink); text-decoration: none; font-weight: 700; font-size: 15px; white-space: nowrap; }
  .lele-brand-mark { width: 18px; height: 19px; display: inline-flex; align-items: end; gap: 3px; }
  .lele-brand-mark i { width: 4px; height: 16px; border-radius: 2px; background: var(--lele-brand); }
  .lele-brand-mark i:nth-child(2) { height: 19px; background: var(--lele-gold); }
  .lele-brand-mark i:nth-child(3) { height: 14px; background: #80AB88; }
  .lele-shell-title { font-size: 13px; color: var(--lele-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .lele-shell-home { margin-left: auto; color: #9F3F39; background: #fff; border: 1px solid var(--lele-border); border-radius: 20px; padding: 0 14px; font-size: 13px; text-decoration: none; white-space: nowrap; min-height: 40px; display: inline-flex; align-items: center; }
  .lele-shell-home:hover { border-color: var(--lele-brand); background: var(--lele-brand-soft); }
  body.lele-has-language .lele-shell-home { margin-right: 145px; }
  @media (max-width: 600px) {
    .lele-shell-nav { gap: 10px; padding: 8px 16px; }
    .lele-shell-title { display: none; }
    .lele-shell-brand { font-size: 14px !important; }
    body.lele-has-language .lele-shell-home { display: none; }
    body[data-lele-theme] .lang-toggle { right: 12px; }
  }
  @media (prefers-reduced-motion: reduce) {
    body[data-lele-theme] *, body[data-lele-theme] *::before, body[data-lele-theme] *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  }
  }
}
@media print { .lele-shell-nav { display: none !important; } }
