/* entry-card-year.css -- YEAR cards (Nov 19, 2026). Own accent colour: YELLOW (cards are blue, PERS links green). */
:root{--ecy-acc:#ffff80;--ecy-panel:#231f30;--ecy-ink:#f3eedc;--ecy-dim:#b9b09a}
.ec-year{color:inherit;text-decoration:underline dotted var(--ecy-acc) 2px;text-underline-offset:3px;cursor:pointer;border-radius:3px}
.ec-year:hover,.ec-year:focus,.ec-year.on{background:rgba(255,255,128,.18);outline:none}
.ecy{position:fixed;z-index:99991;width:330px;max-width:calc(100vw - 16px);color:var(--ecy-ink);font:13px/1.4 system-ui,"Segoe UI",Arial,sans-serif;text-align:left;letter-spacing:normal;text-transform:none}
.ecy:not(.pinned){pointer-events:none}
.ecy-b{background:var(--ecy-panel);border:2px solid var(--ecy-acc);border-radius:20px;padding:11px 13px 10px;box-shadow:0 14px 32px #000a;position:relative}
.ecy:not(.pinned) .ecy-b{background:rgba(35,31,48,.9)}
.ecy-h{display:flex;align-items:baseline;justify-content:space-between;gap:8px;margin:0 22px 6px 0}
.ecy-h b{font-size:19px;color:var(--ecy-acc);letter-spacing:.5px}
.ecy-h span{font-size:11px;color:var(--ecy-dim)}
.ecy-x{position:absolute;top:7px;right:9px;background:none;border:0;color:var(--ecy-acc);font-size:20px;line-height:1;cursor:pointer;padding:2px 4px}
.ecy-f{height:277px;cursor:zoom-in;transition:height .3s ease;display:flex;align-items:center;justify-content:center;background:#15121e;border:1px solid #4a4230;border-radius:10px;overflow:hidden}
.ecy-f{position:relative}
.ecy-f .ecy-i{position:absolute;inset:0;margin:auto;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain;display:block;opacity:0;transition:opacity .8s ease}
.ecy-f .ecy-i.on{opacity:1}
.ecy-f .ecy-i:not([src]){display:none}
@media (prefers-reduced-motion:reduce){.ecy-f .ecy-i{transition:none}}
.ecy-none{color:var(--ecy-dim);font-size:12px;padding:20px;text-align:center}
.ecy-c{min-height:34px;margin:6px 2px 4px;font-size:12.5px}
.ecy-c i{display:block;font-style:normal;font-size:11px;color:var(--ecy-dim)}
.ecy-k{display:flex;flex-wrap:wrap;align-items:center;gap:6px 12px;border-top:1px solid #4a4230;padding-top:7px;font-size:11.5px;color:var(--ecy-dim)}
.ecy-k label{display:inline-flex;align-items:center;gap:5px;cursor:pointer}
.ecy-k input[type=range]{width:64px;accent-color:var(--ecy-acc)}
.ecy-k input[type=checkbox]{accent-color:var(--ecy-acc)}
.ecy-k output{min-width:9px;color:var(--ecy-acc);font-weight:700}
.ecy-pp{background:var(--ecy-acc);color:#231f30;border:0;border-radius:50%;width:26px;height:26px;font-size:11px;font-weight:700;cursor:pointer;line-height:26px;padding:0}
.ecy-hint{font-size:10.5px;color:var(--ecy-dim);margin-top:4px}
.ecy.pinned .ecy-hint{display:none}

/* Three sizes, like TimeSync's Flavor panel: tiny ~30% (doubled Nov 20, 2026, now with captions), half ~63%, full (Nov 19, 2026). Tap / click the picture to cycle. */
.ecy{transition:width .3s ease}
.ecy[data-size="tiny"]{width:250px}
.ecy[data-size="half"]{width:340px}
.ecy[data-size="full"]{width:min(640px,calc(100vw - 16px))}
.ecy[data-size="tiny"] .ecy-f{height:132px}
.ecy[data-size="half"] .ecy-f{height:277px}
.ecy[data-size="full"] .ecy-f{height:min(440px,calc(100vh - 230px))}
.ecy[data-size="full"] .ecy-f{cursor:zoom-out}
.ecy[data-size="tiny"] .ecy-k label,.ecy[data-size="tiny"] .ecy-hint{display:none}
.ecy[data-size="tiny"] .ecy-k{border-top:0;padding-top:4px}
.ecy[data-size="tiny"] .ecy-h b{font-size:15px}
.ecy[data-size="tiny"] .ecy-b{padding:8px 10px 7px}
.ecy[data-size="tiny"] .ecy-c{min-height:0;margin:5px 1px 2px;font-size:11.5px;line-height:1.3}
.ecy[data-size="tiny"] .ecy-c i{font-size:10px}

/* Nov 20, 2026 -- size boxes, drag grip, "Flavor of YEAR…" label, touch and phone sizes. */
.ecy{z-index:99997}  /* above the entry-card Depth panel (99995), which covered the card's controls on phones */
.ecy-hr{display:inline-flex;align-items:center;gap:9px}
.ecy-h .ecy-n em{font-style:normal}
.ecy[data-size="tiny"] .ecy-n em{display:none}
.ecy-sz{display:inline-flex;align-items:flex-end;gap:1px}
.ecy-sz button{background:none;border:0;padding:2px 2px;margin:0;cursor:pointer;display:inline-flex;align-items:flex-end;line-height:0;touch-action:manipulation}
.ecy-sz i{display:block;border:1.5px solid var(--ecy-dim);border-radius:2px;box-sizing:border-box;transition:background .2s,border-color .2s}
.ecy-s0 i{width:7px;height:7px}.ecy-s1 i{width:10px;height:10px}.ecy-s2 i{width:13px;height:13px}
.ecy-sz button.on i{background:var(--ecy-acc);border-color:var(--ecy-acc)}
.ecy-sz button:hover i,.ecy-sz button:focus-visible i{border-color:var(--ecy-acc)}
.ecy-g{height:13px;margin:-7px 20px 3px;cursor:grab;touch-action:none;position:relative;border-radius:8px}
.ecy-g::before{content:"";position:absolute;left:50%;top:50%;width:64px;height:7px;transform:translate(-50%,-50%);
  background:radial-gradient(circle,rgba(255,255,128,.75) 1.1px,transparent 1.6px) 0 0/5px 3.5px;opacity:.8}
.ecy-g:hover::before{opacity:1}
.ecy.dragging .ecy-g{cursor:grabbing}
.ecy.dragging,.ecy.dragging *{user-select:none;-webkit-user-select:none}
.ecy-fl{position:absolute;top:7px;left:6px;right:6px;z-index:2;text-align:center;pointer-events:none}
.ecy-fl span{display:inline-block;max-width:100%;box-sizing:border-box;padding:2px 10px;color:#fff1a8;font:600 12px/1.35 system-ui,"Segoe UI",Arial,sans-serif;letter-spacing:.3px;
  white-space:nowrap;overflow:hidden;text-overflow:ellipsis;background:rgba(120,120,120,.5);box-shadow:0 0 8px 3px rgba(120,120,120,.5);border-radius:8px;
  -webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px);text-shadow:0 1px 2px rgba(0,0,0,.55)}
.ecy[data-size="tiny"] .ecy-fl{top:4px}
.ecy[data-size="tiny"] .ecy-fl span{font-size:10.5px;padding:1px 7px}
.ecy[data-size="full"] .ecy-fl span{font-size:13.5px}
.ecy-f{height:277px}
.ecy[data-size="full"] .ecy-f{height:min(440px,calc(100vh - 230px));height:min(440px,calc(100dvh - 230px))}
/* touch screens: bigger things to tap */
@media (pointer:coarse){
  .ecy-b,.ecy button{touch-action:manipulation}
  .ecy-pp{width:36px;height:36px;line-height:36px;font-size:13px}
  .ecy-x{font-size:27px;top:3px;right:6px;padding:4px 8px}
  .ecy-sz{gap:2px}
  .ecy-sz button{padding:7px 4px}
  .ecy-s0 i{width:9px;height:9px}.ecy-s1 i{width:12px;height:12px}.ecy-s2 i{width:15px;height:15px}
  .ecy-g{height:22px;margin:-9px 34px 0}
  .ecy-g::before{width:76px;height:9px}
  .ecy-k{gap:10px 16px;font-size:13px}
  .ecy-k input[type=range]{width:92px;height:26px}
  .ecy-k input[type=checkbox]{width:20px;height:20px}
  .ecy-h{margin-right:30px}
}
/* phone-width screens */
@media (max-width:520px){
  .ecy[data-size="half"]{width:min(340px,calc(100vw - 16px))}
  .ecy[data-size="half"] .ecy-f{height:min(277px,40vh)}
  .ecy[data-size="full"] .ecy-f{height:min(440px,calc(100vh - 250px));height:min(440px,calc(100dvh - 250px))}
  .ecy-h b{font-size:17px}
}

/* Nov 20, 2026 (DiLo mark-up): grip runs the full top edge; size boxes are yellow-outlined rectangles; picture count under the picture, right. */
.ecy-g{margin:-8px 24px 4px 0}
.ecy-g::before{left:0;right:0;width:auto;transform:translateY(-50%);background:radial-gradient(circle,rgba(255,255,128,.7) 1.1px,transparent 1.6px) 0 0/6px 3.5px}
.ecy-sz{gap:3px}
.ecy-sz i{border-color:var(--ecy-acc);border-radius:1px;opacity:.85}
.ecy-s0 i{width:10px;height:7px}.ecy-s1 i{width:13px;height:9px}.ecy-s2 i{width:16px;height:11px}
.ecy-sz button.on i{opacity:1}
.ecy-cr{display:flex;align-items:flex-start;gap:10px}
.ecy-cr .ecy-c{flex:1;min-width:0}
.ecy-cr .ecy-n{flex:none;margin-top:7px;font-size:11px;color:var(--ecy-dim);white-space:nowrap}
.ecy-cr .ecy-n em{font-style:normal}
.ecy[data-size="tiny"] .ecy-cr .ecy-n{margin-top:5px;font-size:10px}
@media (pointer:coarse){
  .ecy-g{height:22px;margin:-10px 40px 0 0}
  .ecy-g::before{width:auto;height:9px}
  .ecy-s0 i{width:12px;height:9px}.ecy-s1 i{width:15px;height:11px}.ecy-s2 i{width:19px;height:13px}
}

/* Nov 20, 2026 (DiLo mark-up 2): top strip now matches the Depth panel's -- a full-width band of dots (about three rows),
   edge to edge, with a line under it and the X in its own corner cell; "Flavor of" sits at the left; the picture count
   drops to the second caption line so a long title can use the whole width. */
.ecy-g{height:18px;margin:-11px 18px 7px -13px;border-radius:18px 0 0 0;border-bottom:1px solid #4a4230;opacity:.8;
  background:radial-gradient(circle,rgba(255,255,128,.75) 1px,transparent 1.5px) center/6px 6px repeat}
.ecy-g::before{display:none}
.ecy-g:hover,.ecy.dragging .ecy-g{opacity:1}
.ecy.pinned .ecy-x{top:0;right:0;width:31px;height:19px;padding:0;line-height:19px;font-size:17px;text-align:center;
  border-left:1px solid #4a4230;border-bottom:1px solid #4a4230;border-radius:0 18px 0 0}
.ecy-fl{text-align:left;left:8px;right:8px}
.ecy-cr{display:block;position:relative}
.ecy-cr .ecy-c i{padding-right:6.5em}
.ecy-cr .ecy-n{position:absolute;right:2px;bottom:4px;margin:0;line-height:1.3}
.ecy[data-size="tiny"] .ecy-g{margin:-8px 21px 6px -10px}
.ecy[data-size="tiny"] .ecy-cr .ecy-c i{padding-right:3.5em}
.ecy[data-size="tiny"] .ecy-cr .ecy-n{bottom:2px}
@media (pointer:coarse){
  .ecy-g{height:26px;margin:-11px 31px 6px -13px}
  .ecy[data-size="tiny"] .ecy-g{margin:-8px 34px 6px -10px}
  .ecy.pinned .ecy-x{width:44px;height:27px;line-height:27px;font-size:22px}
}

/* Nov 23, 2026 (DiLo mark-up): brighter yellow accent (#ffff80); subtle back / forward arrows on the picture's sides; one Slow-Fast slider. */
.ecy-nav{position:absolute;top:50%;z-index:3;transform:translateY(-50%);width:30px;height:30px;border-radius:50%;border:1.5px solid var(--ecy-acc);
  background:rgba(20,17,30,.35);color:var(--ecy-acc);font:600 22px/26px system-ui,sans-serif;padding:0;cursor:pointer;opacity:.55;transition:opacity .2s,background .2s}
.ecy-prev{left:6px}.ecy-next{right:6px}
.ecy-nav:hover,.ecy-nav:focus-visible{opacity:1;background:rgba(20,17,30,.7);outline:none}
.ecy[data-size="tiny"] .ecy-nav{width:22px;height:22px;font-size:16px;line-height:18px;left:auto}
.ecy[data-size="tiny"] .ecy-prev{left:3px}.ecy[data-size="tiny"] .ecy-next{right:3px}
.ecy-k .ecy-spd input[type=range]{width:110px}
@media (pointer:coarse){.ecy-nav{width:38px;height:38px;font-size:26px;line-height:34px;opacity:.75}.ecy-k .ecy-spd input[type=range]{width:120px}}
