/* 紀錄與錄影（claude-recordings-20261117）：跟電腦頁同一套樣子（calm 列、rc 膠囊）；顏色只用全站的 token（淺色／深色一起）。 */
.rec-page{padding-bottom:40px}
.rec-body{display:flex;flex-direction:column;gap:14px}
.rec-usage{border:1px solid var(--line);border-radius:14px;padding:14px 16px;background:var(--surface,var(--bg))}
.rec-usage-top{display:flex;align-items:baseline;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rec-usage-top strong{font-size:17px}
.rec-bar{height:8px;border-radius:999px;background:var(--hover);overflow:hidden;margin:10px 0 6px}
.rec-bar>i{display:block;height:100%;background:var(--ink);border-radius:999px;transition:width .3s}
.rec-bar-warn>i{background:var(--danger,#c0392b)}
.rec-usage-line{margin:2px 0 0;line-height:1.55}
.rec-chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.rec-chip{min-height:36px;padding:0 14px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;font-size:14px;cursor:pointer;white-space:nowrap;transition:transform 80ms,background 80ms}
.rec-chip:hover{background:var(--hover)}
.rec-chip[aria-checked=true]{background:var(--ink);color:var(--bg);border-color:var(--ink)}
.rec-chip.rec-pressed,.rec-chip:active{transform:scale(.95)}
.rec-chip.is-busy{opacity:.7;pointer-events:none}
.rec-list{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.rec-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto 14px;align-items:center;gap:12px;width:100%;min-height:60px;padding:10px 14px;border:0;border-top:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background 80ms}
.rec-list>.rec-row:first-child,.rec-list>.rec-empty+.rec-row{border-top:0}
.rec-row:hover{background:var(--hover)}.rec-row.rec-pressed,.rec-row:active{background:var(--hover)}
.rec-row-static{cursor:default}.rec-row-static:hover{background:var(--bg)}
.rec-icon{display:inline-flex;width:28px;height:28px;align-items:center;justify-content:center;color:var(--muted)}
.rec-icon svg,.rec-mark-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.rec-text{display:flex;flex-direction:column;min-width:0;gap:2px}
.rec-text strong{font-weight:600;overflow-wrap:anywhere}
.rec-text small{color:var(--muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.rec-tag{font-size:12px;color:var(--muted);white-space:nowrap}
.rec-tag-live{color:var(--danger,#c0392b);font-weight:600}
.rec-tag-live::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin-right:5px;vertical-align:1px}
.rec-empty{margin:0;padding:18px 16px}
.rec-more{align-self:center}
.rec-policy{margin-top:10px}
.rec-policy>h2{font-size:15px;color:var(--muted);font-weight:600;margin:0 0 8px 4px}
.rec-set{border:1px solid var(--line);border-radius:14px;padding:14px 16px;margin-bottom:10px;display:flex;flex-direction:column;gap:10px}
.rec-set-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.rec-switch{flex:none}
.rec-days>.fine{margin-right:2px}
.rec-nodes{display:flex;flex-wrap:wrap;gap:8px}
.rec-node{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:48px;padding:8px 14px;border-radius:12px;border:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;cursor:pointer;text-align:left}
.rec-node:hover{background:var(--hover)}.rec-node.rec-pressed{transform:scale(.97)}
.rec-hint{margin:0}
.rec-deleted{margin-top:4px}
.rec-deleted>summary{cursor:pointer;color:var(--muted);padding:6px 4px;min-height:36px}
/* 播放器 */
dialog.rec-player{width:min(980px,calc(100vw - 24px));max-width:none}
.rec-player-body{display:flex;flex-direction:column;gap:10px;padding-bottom:8px}
.rec-meta{margin:0}
.rec-stage{position:relative;border-radius:12px;overflow:hidden;background:#111;aspect-ratio:16/10;display:flex;align-items:center;justify-content:center}
.rec-stage-note{background:var(--hover);color:var(--ink);padding:20px;text-align:center;aspect-ratio:auto;min-height:180px}
.rec-stage-note p{margin:0 0 6px;line-height:1.6}
.rec-frame,.rec-video{width:100%;height:100%;object-fit:contain;display:block;background:#111}
.rec-loading{position:absolute;left:0;right:0;bottom:10px;text-align:center;color:#ddd}
.rec-lock{display:flex;flex-direction:column;align-items:center;gap:6px}
.rec-unlock{margin-top:8px;min-height:44px}
.rec-unlock.is-busy{opacity:.7}
.rec-ctl{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.rec-ctl-row{display:flex;align-items:center;gap:6px}
.rec-ic{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:999px;border:1px solid var(--line);background:var(--bg);color:var(--ink);cursor:pointer;transition:transform 80ms,background 80ms}
.rec-ic svg{width:20px;height:20px;fill:currentColor}
.rec-ic:hover{background:var(--hover)}.rec-ic.rec-pressed,.rec-ic:active{transform:scale(.93)}
.rec-ic:disabled{opacity:.4;cursor:default}
.rec-play{width:52px;height:52px;background:var(--ink);color:var(--bg);border-color:var(--ink)}
.rec-play:hover{background:var(--ink);opacity:.9}
.rec-time{font-variant-numeric:tabular-nums;font-size:14px;color:var(--muted);margin-left:6px;white-space:nowrap}
.rec-chip-s{min-height:34px;padding:0 11px}
.rec-track{position:relative;padding:10px 0 4px}
.rec-range{width:100%;margin:0;accent-color:var(--ink);height:28px;position:relative;z-index:1;background:transparent}
.rec-ticks{position:absolute;left:8px;right:8px;top:2px;height:8px;pointer-events:none}
.rec-tick{position:absolute;top:0;width:3px;height:8px;margin-left:-1px;border-radius:2px;background:var(--muted)}
.rec-tick-refuse,.rec-tick-alarm,.rec-tick-cap,.rec-tick-stop{background:var(--danger,#c0392b)}
.rec-tick-takeover,.rec-tick-handback,.rec-tick-handoff,.rec-tick-form,.rec-tick-card{background:var(--ink)}
.rec-h3{font-size:15px;margin:6px 4px 0}
.rec-marks{border:1px solid var(--line);border-radius:14px;overflow:auto;max-height:min(46vh,420px)}
.rec-mark{display:grid;grid-template-columns:auto 24px minmax(0,1fr);gap:10px;align-items:center;width:100%;min-height:48px;padding:8px 14px;border:0;border-top:1px solid var(--line);background:var(--bg);color:var(--ink);font:inherit;text-align:left;cursor:pointer}
.rec-mark:first-child{border-top:0}
.rec-mark:hover,.rec-mark.rec-pressed{background:var(--hover)}
.rec-mark-on{background:var(--hover);box-shadow:inset 3px 0 0 var(--ink)}
.rec-mark-t{font-variant-numeric:tabular-nums;color:var(--muted);font-size:13px;min-width:3.2em}
.rec-mark-ic{display:inline-flex;color:var(--muted)}
.rec-mark[data-kind=refuse] .rec-mark-ic,.rec-mark[data-kind=alarm] .rec-mark-ic,.rec-mark[data-kind=cap] .rec-mark-ic{color:var(--danger,#c0392b)}
.rec-mark-l{overflow-wrap:anywhere;line-height:1.5}
.rec-del{align-self:flex-start;margin-top:6px}
@media (max-width:560px){
 .rec-row{grid-template-columns:24px minmax(0,1fr) 12px;gap:10px;padding:10px 12px}
 .rec-row .rec-tag{grid-column:2;grid-row:2;justify-self:start}
 .rec-row .calm-chevron{grid-column:3;grid-row:1}
 .rec-ctl{flex-direction:column;align-items:stretch}
 .rec-ctl-row{justify-content:center}
 .rec-speed{justify-content:center}
 dialog.rec-player{width:100vw;max-height:100dvh;border-radius:0}
 .rec-stage{aspect-ratio:4/3}
}
@media (prefers-reduced-motion:reduce){.rec-bar>i,.rec-chip,.rec-ic,.rec-row{transition:none}}
.rec-speed{display:flex;gap:6px;flex-wrap:wrap}
@media (min-width:900px){.rec-stage{aspect-ratio:auto;height:min(56vh,600px)}.rec-stage-note{height:auto;min-height:200px}}
/* 第二版（claude-recordings2-20261118）：遠端頁的「錄影」一區、每台電腦、這台的錄影設定 */
.rec-text small{white-space:pre-line}
.rec-remote-sec .calm-text small{white-space:pre-line;overflow:visible;text-overflow:clip;line-height:1.5}
.rec-bar-mini{display:block;height:6px;margin:6px 0 2px;max-width:320px}
.rec-pcs-h{margin:2px 0 0}
.rec-pc{min-height:56px}
dialog.rec-sheet{width:min(560px,calc(100vw - 24px));max-width:none}
.rec-sheet-body{display:flex;flex-direction:column;gap:12px;padding-bottom:8px}
.rec-sheet-line{margin:0;font-weight:600;line-height:1.5}
.rec-sheet-mode .rec-chip{white-space:normal;text-align:left;min-height:40px;line-height:1.35;padding:6px 14px}
.rec-sheet-sw{border:1px solid var(--line);border-radius:14px;padding:12px 14px}
.rec-sheet-note,.rec-sheet-upload{margin:0;line-height:1.55}
.rec-sheet-see{align-self:flex-start;min-height:40px}
.ds-switch.rec-switch.rec-pressed{transform:scale(.95)}
@media (max-width:560px){dialog.rec-sheet{width:100vw;border-radius:16px 16px 0 0}}
.rec-pc{grid-template-columns:28px minmax(0,1fr) 14px}
/* 一台 Mac 第一次開始錄影：看過之前多一行（跟推播同一句） */
.rec-firsts:empty{display:none}
.rec-firsts{display:flex;flex-direction:column;gap:8px;margin:0 0 10px}
.rec-first{display:grid;grid-template-columns:10px minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px 12px 10px 14px;border:1px solid var(--line);border-radius:14px;background:var(--hover);color:var(--ink);margin:0 0 10px}
.rec-firsts .rec-first{margin:0}
.rec-first-dot{width:8px;height:8px;border-radius:50%;background:var(--danger,#c0392b)}
.rec-first-text{margin:0;line-height:1.55;overflow-wrap:anywhere}
.rec-first-text strong{font-weight:600}
.rec-first-ok{min-height:36px;white-space:nowrap}
@media (max-width:560px){.rec-first{grid-template-columns:10px minmax(0,1fr)}.rec-first-ok{grid-column:2;justify-self:start}}
/* 資安 › 事件與報告：誰看了錄影 (claude-recordings2-viewaudit) */
.rec-views .rec-views-line{margin:0 0 8px}
.rec-view-row{width:100%;text-align:left;font:inherit;color:inherit;background:none;border:0;cursor:pointer}
.rec-view-row:hover,.rec-view-row.rec-pressed,.rec-view-row:active{background:var(--hover)}
.rec-view-head{display:flex;gap:8px;align-items:baseline;justify-content:space-between;flex-wrap:wrap}
.rec-view-when{font-size:13px;color:var(--muted);white-space:nowrap;font-variant-numeric:tabular-nums}
.rec-view-what{overflow-wrap:anywhere}
.rec-views-skel .calm-text{height:34px;border-radius:8px;background:var(--hover)}
.rec-views-more>summary{padding:10px 16px;cursor:pointer;min-height:44px;display:flex;align-items:center}
.rec-views-note{margin:8px 0 0}
.rec-views-more>.calm-list{border:0;border-radius:0;box-shadow:none;margin:0;background:none}
