/* 收工小结（10-15 夜第七轮重做）：入口胶囊、共用的色带与「放心下班」、第 1 版「一天回放」（.dv1）、第 2 版「一张收工卡」（.dv2）。
   令牌沿用 app.css 第一节，只加收工这一块自己的几个：暮色琥珀（月亮、收工那一格）、卡面纸色。动效时长 240～900 毫秒，减少动态效果时全部关掉。 */
:root {
  --dusk: #C9782A; --dusk-soft: color-mix(in srgb, #D98A2B 12%, #FFFFFF); --dusk-line: color-mix(in srgb, #D98A2B 30%, transparent);
  --sc-paper: linear-gradient(165deg, #FFFDF9 0%, #FFF6EC 48%, #F9E6D8 100%);
}

/* ============ 一、入口：窄条右侧「收工小结」胶囊 ============ */
.dy-link { position: relative; display: inline-flex; flex: none; align-items: center; gap: 5px; height: 30px; padding: 0 10px 0 9px; overflow: hidden; border: 0; border-radius: var(--radius-pill);
  background: var(--dusk-soft); box-shadow: inset 0 0 0 1px var(--dusk-line); color: var(--ink); font: 600 13px var(--font-sans); white-space: nowrap; cursor: pointer;
  transition: background-color 160ms var(--ease), transform 120ms var(--ease); }
.dy-link .ico { width: 14px; height: 14px; }
.dy-link .ico:first-child { color: var(--dusk); }
.dy-link .ico:last-child { width: 13px; height: 13px; color: var(--ink-3); transition: transform 160ms var(--ease); }
.dy-link:hover { background: color-mix(in srgb, #D98A2B 18%, #FFFFFF); }
.dy-link:hover .ico:last-child { transform: translateX(2px); }
.dy-link:active { transform: scale(.97); }
/* 第一次出现时扫过的一道光 */
.dy-link::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 50%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .95), transparent); transform: skewX(-18deg); opacity: 0; pointer-events: none; }
.dy-link.is-sheen::after { animation: dy-sheen 900ms cubic-bezier(.4, 0, .2, 1); }
.dy-link.is-sheen { animation: dy-glow 900ms ease-out; }
@keyframes dy-glow { from { box-shadow: inset 0 0 0 1px var(--dusk-line), 0 0 0 0 rgba(217, 138, 43, .38); } to { box-shadow: inset 0 0 0 1px var(--dusk-line), 0 0 0 9px rgba(217, 138, 43, 0); } }
@keyframes dy-sheen { 0% { left: -60%; opacity: 0; } 15% { opacity: 1; } 100% { left: 120%; opacity: 0; } }

/* ============ 二、共用：一天的色带、放心下班、日报预览 ============ */
.rb { position: relative; }
.rb-track { position: relative; height: 40px; border-radius: 12px; background: var(--surface-2); }
.rb-past { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 12px 0 0 12px; background: linear-gradient(90deg, rgba(217, 138, 43, .05), rgba(217, 138, 43, .12)); transform-origin: left center; }
.rb-lunch { position: absolute; top: 0; bottom: 0; background: repeating-linear-gradient(135deg, transparent 0 5px, rgba(31, 30, 27, .045) 5px 6px); }
.rb-seg { position: absolute; height: 12px; border-radius: 4px; transform-origin: center; }
.rb-seg.k-meet { top: 6px; background: var(--today-dot); opacity: .9; }
.rb-seg.k-focus { top: 22px; background: var(--quiet-dot); }
.rb-seg.k-focus.on { background: var(--done-dot); }
.rb-dot { position: absolute; top: 24px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--done-dot); box-shadow: 0 0 0 2px var(--surface-2); }
.rb-now { position: absolute; top: 50%; width: 12px; height: 12px; border-radius: 50%; background: var(--dusk); box-shadow: 0 0 0 3px #FFFFFF, 0 0 0 5px var(--dusk-line); transform: translate(-50%, -50%); }
.rb-hrs { position: relative; height: 18px; margin-top: 4px; }
.rb-h { position: absolute; transform: translateX(-50%); font: 500 11px var(--font-num); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.rb-h:first-child { transform: none; }
.rb-h:last-child { transform: translateX(-100%); }

.dy-ck { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 0; }
.dy-off { display: flex; flex-direction: column; gap: 2px; margin: 0 0 6px; padding: 0; list-style: none; }
.dy-off li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; }
.dy-off li > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.dy-off b { font-size: 14px; font-weight: 600; line-height: 1.5; }
.dy-off small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.dy-oi { display: grid; place-items: center; flex: none; width: 24px; height: 24px; margin-top: 0; border-radius: 50%; }
.dy-off .ok .dy-oi { background: var(--done-bg); color: var(--done-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done-dot) 22%, transparent); }
.dy-off .ok .dy-oi .ico { width: 14px; height: 14px; color: var(--dusk); }
.dy-off .ok:has(.ico) .dy-oi { background: var(--dusk-soft); box-shadow: inset 0 0 0 1px var(--dusk-line); }
.dy-off .todo .dy-oi i { width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--wait-dot); }
.dy-carry { margin: 0 0 14px 34px; }
.dy-carry .dl-row:last-child { border-bottom: 0; }

.dy-rpd { margin-top: 8px; border-radius: var(--radius-ctl); background: var(--surface-2); }
.dy-rpd > summary { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; list-style: none; }
.dy-rpd > summary::-webkit-details-marker { display: none; }
.dy-rpd > summary .ly-n { flex: 1; min-width: 0; font-size: 12px; font-weight: 400; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dy-rpd > summary .ico:last-child { transition: transform 200ms var(--ease); }
.dy-rpd[open] > summary .ico:last-child { transform: rotate(180deg); }
.dy-rpd .dy-rp { padding-top: 0; background: none; }

/* ============ 三、第 1 版「一天回放」 ============ */
.ly-daily.dv1 .ly-b { padding: 26px 32px 32px; }
.dr { display: flex; flex-direction: column; gap: 22px; max-width: 1120px; margin: 0 auto; }
.dr h4 { margin: 0 0 10px; font-size: 14px; font-weight: var(--fw-strong); color: var(--ink-2); }
.dr-hero { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 24px 28px; overflow: hidden; border-radius: var(--radius-card);
  background: radial-gradient(120% 140% at 0% 0%, #FFF8EE 0%, rgba(255, 248, 238, 0) 60%), linear-gradient(120deg, #FFFCF7 0%, #FCEFE2 70%, #F8E3D3 100%); box-shadow: inset 0 0 0 1px rgba(201, 120, 42, .12); }
.dr-hl { min-width: 0; }
.dr-eye { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--dusk); }
.dr-eye .ico { width: 15px; height: 15px; }
.dr-head { display: flex; align-items: center; gap: 12px; margin: 6px 0 10px; font-size: var(--fs-page); font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.dr-chk { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--done-bg); color: var(--done-ink); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--done-dot) 28%, transparent); }
.dr-chk .dy-ck { width: 20px; height: 20px; }
.dr-praise { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.dr-praise li { position: relative; padding-left: 16px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.dr-praise li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 6px; height: 6px; border-radius: 50%; background: var(--dusk); opacity: .7; }
.dr-nums { display: flex; flex: none; gap: 28px; padding-bottom: 4px; }
.dr-nums div { display: flex; flex-direction: column; align-items: flex-end; }
.dr-nums b { font-size: 36px; font-weight: 650; line-height: 1.05; }
.dr-nums span { font-size: 12px; color: var(--ink-3); }
.dr-day { padding: 16px 18px 12px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-inset); }
.dr-dh { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.dr-dh h4 { margin-bottom: 10px; }
.dr-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.dr-offc { padding: 16px 18px 14px; border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-inset); }
.dr-offc .dy-rpd { margin-bottom: 2px; }
/* 按时间：左边一条细轨，节点亮起 */
.tl { position: relative; margin: 0; padding: 0; list-style: none; }
.tl::before { content: ""; position: absolute; left: 61px; top: 10px; bottom: 34px; width: 2px; border-radius: 1px; background: var(--line-strong); }
.tl-i { position: relative; display: grid; grid-template-columns: 44px 36px minmax(0, 1fr); align-items: start; padding: 6px 0; }
.tl-tm { padding-top: 2px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.tl-dot { position: relative; z-index: 1; display: grid; place-items: center; width: 20px; height: 20px; margin: 2px 0 0 8px; border-radius: 50%; background: var(--surface-raised); box-shadow: inset 0 0 0 2px var(--line-strong); color: #FFFFFF; }
.tl-dot .dy-ck { width: 12px; height: 12px; }
.tl-i.on .tl-dot { background: var(--done-dot); box-shadow: none; }
.tl-i.k-meet.on .tl-dot { background: var(--today-dot); }
.tl-i.k-end .tl-dot { width: 24px; height: 24px; margin: 0 0 0 6px; background: var(--dusk); }
.tl-i.k-end .tl-dot .ico { width: 13px; height: 13px; }
.tl-tx { display: flex; flex-direction: column; min-width: 0; }
.tl-tx b { font-size: 14px; font-weight: 600; line-height: 1.5; }
.tl-tx small { font-size: 12px; color: var(--ink-3); line-height: 1.5; }
.tl-i:not(.on) .tl-tx b { color: var(--ink-2); }

/* ============ 四、第 2 版「一张收工卡」 ============ */
.layer.dv2 { top: calc(var(--rb-h) + var(--hdr-h) + (100dvh - var(--rb-h) - var(--hdr-h)) / 2); bottom: auto; width: min(540px, calc(100% - 32px)); max-height: calc(100dvh - var(--rb-h) - var(--hdr-h) - 40px);
  background: color-mix(in srgb, var(--surface-raised) 94%, transparent); transform: translate(-50%, -50%); }
.layer.dv2.enter { animation: sc-in 360ms cubic-bezier(.2, .8, .2, 1); }
@keyframes sc-in { from { opacity: 0; transform: translate(-50%, calc(-50% + 16px)) scale(.985); } to { opacity: 1; transform: translate(-50%, -50%); } }
.sc-x { position: absolute; z-index: 2; top: 23px; right: 24px; width: 30px; height: 30px; min-height: 0; }
.sc-b.ly-b { padding: 16px 16px 8px; }
.sc { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px 24px 20px; overflow: hidden; border-radius: 22px; background: var(--sc-paper);
  box-shadow: inset 0 0 0 1px rgba(201, 120, 42, .14), 0 1px 2px rgba(90, 60, 40, .05), 0 16px 34px -14px rgba(120, 70, 30, .22); }
.sc::after { content: ""; position: absolute; top: -20%; bottom: -20%; left: -70%; width: 45%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .7), transparent); transform: skewX(-16deg); opacity: 0; pointer-events: none; }
.sc.is-sheen::after { animation: sc-sheen 900ms cubic-bezier(.4, 0, .2, 1); }
@keyframes sc-sheen { 0% { left: -70%; opacity: 0; } 15% { opacity: 1; } 100% { left: 130%; opacity: 0; } }
.sc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 30px; font-size: 12px; color: var(--ink-3); }
.sc-tag { display: inline-flex; align-items: center; gap: 4px; flex: none; height: 24px; padding: 0 9px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .7); box-shadow: inset 0 0 0 1px var(--dusk-line); color: var(--dusk); font-weight: 600; }
.sc-tag .ico { width: 13px; height: 13px; }
.sc-big { display: flex; align-items: center; gap: 16px; }
.sc-ring { position: relative; display: grid; place-items: center; flex: none; width: 96px; height: 96px; }
.sc-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.sc-ring circle { fill: none; stroke-width: 6; }
.sc-ring .bg { stroke: rgba(31, 30, 27, .08); }
.sc-ring .fg { stroke: var(--wait-dot); stroke-linecap: round; }
.sc.is-all .sc-ring .fg { stroke: var(--done-dot); }
.sc-ring b { position: relative; font-size: 44px; font-weight: 650; line-height: 1; letter-spacing: -.02em; }
.sc-bt { display: flex; flex-direction: column; gap: 2px; }
.sc-bt b { font-size: 18px; font-weight: 700; }
.sc-bt span { font-size: 13px; color: var(--ink-2); }
.sc-head { margin: 2px 0 0; font-size: 22px; font-weight: 700; line-height: 1.4; letter-spacing: -.01em; outline: none; }
.sc-praise { margin: -6px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.sc .rb-track { height: 34px; background: rgba(255, 255, 255, .62); box-shadow: inset 0 0 0 1px rgba(31, 30, 27, .05); }
.sc .rb-seg { height: 10px; }
.sc .rb-seg.k-meet { top: 5px; }
.sc .rb-seg.k-focus { top: 19px; }
.sc .rb-dot { top: 20px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.sc .rb-h.minor { display: none; }
.sc-facts { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--ink-2); }
.sc-facts b { margin-right: 3px; font-size: 16px; font-weight: 650; color: var(--ink); }
/* 撕口线：两侧半圆缺口＋虚线 */
.sc-cut { position: relative; height: 1px; margin: 2px -24px; background-image: linear-gradient(90deg, rgba(31, 30, 27, .18) 50%, transparent 50%); background-size: 8px 1px; }
.sc-cut::before, .sc-cut::after { content: ""; position: absolute; top: -9px; width: 18px; height: 18px; border-radius: 50%; background: var(--surface-raised); box-shadow: inset 0 0 0 1px rgba(201, 120, 42, .14); }
.sc-cut::before { left: -9px; }
.sc-cut::after { right: -9px; }
.sc-tmr { display: flex; flex-direction: column; gap: 2px; }
.sc-k { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--dusk); }
.sc-k .ico { width: 14px; height: 14px; }
.sc-tmr b { font-size: 17px; font-weight: 700; }
.sc-tmr small { font-size: 12px; color: var(--ink-3); }
.sc-after { display: flex; flex-direction: column; gap: 6px; padding: 14px 4px 4px; }
.sc-sec h4 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 0 0 4px; font-size: 14px; font-weight: var(--fw-strong); color: var(--ink-2); }
.sc-sec h4 .ly-n { font-size: 12px; font-weight: 400; color: var(--ink-3); }
.sc-more { display: flex; flex-direction: column; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; }
.sc-more li { display: flex; align-items: flex-start; gap: 8px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.sc-more .dy-ck { flex: none; margin-top: 4px; color: var(--done-ink); }
.layer.dv2 .ly-f { padding: 10px 16px; }

/* ============ 五、窄屏 ============ */
@media (max-width: 760px) {
  .dy-link { height: 28px; padding: 0 9px 0 8px; font-size: 12.5px; }
  .ly-daily.dv1 .ly-b { padding: 18px 14px 24px; }
  .dr { gap: 18px; }
  .dr-hero { flex-direction: column; align-items: stretch; gap: 14px; padding: 18px 16px; }
  .dr-offc { padding: 12px 14px; }
  .dr-head { gap: 10px; font-size: 22px; }
  .dr-chk { width: 30px; height: 30px; }
  .dr-chk .dy-ck { width: 17px; height: 17px; }
  .dr-praise li { font-size: 14px; }
  .dr-nums { justify-content: space-between; gap: 8px; padding: 12px 14px; border-radius: var(--radius-ctl); background: var(--surface-2); }
  .dr-nums div { align-items: flex-start; }
  .dr-nums b { font-size: 26px; }
  .dr-day { padding: 12px 12px 8px; }
  .dr .rb-h.minor { display: none; }
  .dr-split { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .dy-carry { margin-left: 0; }
  .layer.dv2 { top: calc(var(--rb-h) + var(--hdr-h)); bottom: 0; width: 100%; max-height: none; border-radius: 0; transform: translateX(-50%); }
  .layer.dv2.enter { animation: sc-in-m 320ms cubic-bezier(.2, .8, .2, 1); }
  @keyframes sc-in-m { from { opacity: 0; transform: translate(-50%, 16px); } to { opacity: 1; transform: translateX(-50%); } }
  .sc-b.ly-b { padding: 12px 12px 8px; }
  .sc { padding: 18px 18px 16px; gap: 12px; }
  .sc-cut { margin: 2px -18px; }
  .sc-ring { width: 84px; height: 84px; }
  .sc-ring b { font-size: 38px; }
  .sc-head { font-size: 19px; }
  .sc-x { top: 17px; right: 18px; }
  .layer.ly-daily .ly-f { padding: 10px 12px; }
  .layer.ly-daily .ly-f-msg { flex-basis: 100%; }
  .layer.ly-daily .ly-f-btns { flex: 1; justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  .dy-link.is-sheen, .dy-link.is-sheen::after, .sc.is-sheen::after { animation: none; }
  .layer.dv2.enter { animation: none; }
}
