/* Tab prototype · 新场景用到的界面：日历空档卡、改写预览、飞书会议结束页、纪要待办、供应商表单、代码编辑器、对比表。纯色，不用渐变。 */

/* ---------------------------------------------------------------- slots：日历空档卡 */
.cal-card .calp { padding: 10px 12px 12px; }
.cp-days { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 6px 22px; font-size: 11px; font-weight: 600; color: var(--ink2); text-align: center; }
.cp-days small { margin-left: 3px; font-weight: 400; color: var(--ink3); }
.cp-grid { position: relative; height: 210px; margin-left: 22px; border-radius: 8px; background: rgba(118, 118, 128, .05); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .06); }
.cp-h { position: absolute; left: 0; right: 0; height: 0; box-shadow: 0 -.5px 0 rgba(60, 60, 67, .12); }
.cp-h em { position: absolute; left: -20px; top: -7px; font: normal 10px var(--mono); color: var(--ink3); }
.cp-ev, .cp-slot { position: absolute; width: calc(20% - 4px); margin-left: 2px; overflow: hidden; border-radius: 5px; font-size: 9.5px; line-height: 1.25; }
.cp-ev { padding: 2px 4px; background: rgba(118, 118, 128, .18); color: rgba(29, 29, 31, .7); }
.cp-slot { display: flex; align-items: center; justify-content: center; box-shadow: inset 0 0 0 1.2px rgba(0, 122, 255, .45); background: rgba(255, 255, 255, .7); color: var(--accent); font-weight: 600; transition: background .25s, box-shadow .25s, color .25s; }
.cp-slot.on { background: var(--accent); box-shadow: 0 0 0 3px rgba(0, 122, 255, .2); color: #fff; }
.cp-ev.hold { display: none; z-index: 2; background: var(--accent); color: #fff; font-weight: 600; box-shadow: 0 0 0 3px rgba(0, 122, 255, .2); }
.cp-ev.hold.on { display: block; }

/* ---------------------------------------------------------------- tone：选中和改写预览 */
.tsel { border-radius: 3px; transition: background .25s, color .25s; }
.tsel.on { background: rgba(0, 122, 255, .2); }
.tsel.preview { background: rgba(0, 122, 255, .08); color: var(--accent); box-shadow: 0 1.5px 0 rgba(0, 122, 255, .45); }
.tsel.rwin { animation: ghIn .34s var(--soft) both; }
.tsel.done { background: none; color: var(--ink); box-shadow: none; }

/* ---------------------------------------------------------------- meeting：会议结束页、待办、群消息卡片 */
.mtg { display: flex; flex-direction: column; height: 100%; background: #fff; }
.mtg-hd { position: relative; display: flex; align-items: center; justify-content: center; height: 40px; flex: none; font-size: 12.5px; color: var(--ink2); box-shadow: inset 0 -1px 0 #eff0f1; }
.mtg-hd .tl { position: absolute; left: 14px; top: 14px; }
.mtg-body { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding-bottom: 20px; text-align: center; }
.mtg-ic { display: flex; align-items: center; justify-content: center; width: 54px; height: 54px; margin-bottom: 6px; border-radius: 16px; background: #3370ff; color: #fff; }
.mtg-ic svg.ic { width: 28px; height: 28px; stroke-width: 1.6; }
.mtg-body h2 { margin: 0; font-size: 20px; }
.mtg-body p { margin: 0; font-size: 12.5px; color: var(--ink2); }
.mtg-av { display: flex; align-items: center; margin-top: 12px; }
.mtg-av .av + .av { margin-left: -6px; box-shadow: 0 0 0 2px #fff; }
.mtg-av span { margin-left: 10px; font-size: 12px; color: var(--ink2); }
.mtg-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; height: 28px; padding: 0 12px; border-radius: 14px; background: #f0f4ff; font-size: 12px; color: #3370ff; }
.mtg-note svg.ic { width: 14px; height: 14px; }
.todo { display: flex; flex-direction: column; gap: 6px; }
.td { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: #f5f6f7; font-size: 13.5px; }
.td b { font-weight: 600; }
.td > span:not(.av) { flex: 1; }
.td em { height: 20px; padding: 0 8px; border-radius: 10px; background: rgba(255, 59, 48, .1); font: 600 11px/20px var(--font); font-style: normal; color: #d70015; }
.doc-card { display: flex; align-items: center; gap: 10px; min-width: 260px; padding: 4px 2px; }
.doc-card svg.ic { width: 26px; height: 26px; color: #3370ff; }
.doc-card b { display: block; font-size: 13.5px; }
.doc-card span { display: block; font-size: 11.5px; color: #646a73; }

/* ---------------------------------------------------------------- form：供应商登记表 */
.sf-page:has(.vform) { padding: 0; background: #f5f6f8; font-family: var(--font); }
.vform { padding: 0 0 20px; }
.fm-top { display: flex; align-items: center; gap: 16px; height: 46px; padding: 0 40px; background: #fff; box-shadow: inset 0 -1px 0 #eceef1; font-size: 12.5px; color: #646a73; }
.fm-top b { font-size: 15px; color: #1f2329; }
.vform h1 { margin: 26px 40px 4px; font-size: 22px; }
.fm-sub { margin: 0 40px 18px; font-size: 12.5px; color: #8f959e; }
.fm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 22px; margin: 0 40px; padding: 22px 24px; border-radius: 12px; background: #fff; box-shadow: 0 0 0 1px #eceef1; }
.ff { display: block; font-size: 12.5px; color: #646a73; }
.ff > span { display: block; margin-bottom: 6px; }
.fi-box { position: relative; display: flex; align-items: center; height: 38px; padding: 0 10px; border-radius: 8px; background: #fff; box-shadow: inset 0 0 0 1px #dee0e3; font-size: 14px; color: #1f2329; transition: box-shadow .25s, background .25s; }
.fv { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.fsrc { flex: none; font-style: normal; }
.fsrc:not(:empty) { height: 18px; padding: 0 7px; border-radius: 9px; background: rgba(0, 122, 255, .1); font: 500 10.5px/18px var(--font); color: var(--accent); }
.ff.f-cur .fi-box { box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 3px rgba(0, 122, 255, .12); }
.ff.f-ok .fi-box { background: rgba(0, 122, 255, .03); }
.ff.f-need .fi-box { box-shadow: inset 0 0 0 1.5px #ff9f0a, 0 0 0 3px rgba(255, 159, 10, .14); }
.ff.f-need .fsrc:not(:empty) { background: rgba(255, 149, 0, .14); color: #c26a00; }
.fm-ft { display: flex; gap: 10px; margin: 18px 40px 0; }
.fm-btn, .fm-save { height: 34px; padding: 0 20px; border-radius: 8px; font-size: 13.5px; line-height: 34px; }
.fm-btn { background: #3370ff; color: #fff; }
.fm-save { background: #fff; box-shadow: inset 0 0 0 1px #dee0e3; }

/* ---------------------------------------------------------------- code：编辑器 */
.cde { display: flex; flex-direction: column; height: 100%; background: #fff; color: #1f2328; }
.ed-tb { position: relative; display: flex; align-items: center; justify-content: center; height: 38px; flex: none; background: #f3f3f5; box-shadow: inset 0 -1px 0 #e4e4e8; }
.ed-tb .tl { position: absolute; left: 14px; top: 13px; }
.ed-title { font-size: 12.5px; color: rgba(0, 0, 0, .55); }
.ed-body { display: flex; flex: 1; min-height: 0; }
.ed-tree { width: 210px; flex: none; padding: 10px 8px; background: #f8f8fa; box-shadow: inset -1px 0 0 #ececf0; font-size: 12.5px; }
.ed-sec { margin: 0 6px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .04em; color: rgba(0, 0, 0, .45); }
.et { display: flex; align-items: center; gap: 6px; height: 24px; padding: 0 6px; border-radius: 5px; }
.et.lv1 { padding-left: 22px; }
.et svg.ic { width: 13px; height: 13px; color: rgba(0, 0, 0, .45); }
.et.sel { background: rgba(0, 122, 255, .12); }
.ed-main { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.ed-tabs { display: flex; height: 34px; flex: none; background: #f3f3f5; box-shadow: inset 0 -1px 0 #e4e4e8; font-size: 12.5px; }
.ed-tabs span { display: flex; align-items: center; padding: 0 16px; color: rgba(0, 0, 0, .5); box-shadow: inset -1px 0 0 #e4e4e8; }
.ed-tabs span.on { background: #fff; color: #1f2328; box-shadow: inset -1px 0 0 #e4e4e8, inset 0 2px 0 var(--accent); }
.ed-code { flex: 1; padding: 12px 0; font: 13.5px/1.75 var(--mono); white-space: pre; }
.cdl { display: flex; }
.cdl .ln { width: 46px; flex: none; padding-right: 16px; font-style: normal; text-align: right; color: rgba(0, 0, 0, .28); }
.cdl i { font-style: normal; }
.cdl .kw { color: #af00db; }
.cdl .fn { color: #795e26; }
.cdl .ty { color: #267f99; }
.cdl .sx { color: #a31515; }
.cdl .cmt { color: #008000; }
.cdl .nu { color: #098658; }
.ed-code .fld { display: inline; }
.ed-code .gh { color: rgba(0, 0, 0, .3); }
.ed-term { height: 210px; flex: none; background: #fafafb; box-shadow: inset 0 1px 0 #e4e4e8; }
.et-hd { display: flex; align-items: baseline; gap: 10px; height: 32px; padding: 0 16px; font-size: 11.5px; line-height: 32px; color: rgba(0, 0, 0, .5); }
.et-hd b { color: #1f2328; font-weight: 600; }
.et-body { padding: 0 16px; font: 12.5px/1.8 var(--mono); }
.tl-l.in { animation: fadeUp .3s var(--soft) both; }
.cde .t-p { color: #2f7d32; }
.cde .t-ok { color: #1f9d48; }
.cde .t-e { color: #d70015; }
.cde .t-d { color: rgba(0, 0, 0, .45); }

/* ---------------------------------------------------------------- research：对比表、读过的标签页 */
.sf-tab.read { position: relative; }
.sf-tab.read::after { content: ""; position: absolute; right: 9px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--green); }
.rtable { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 8px; box-shadow: 0 0 0 1px #dee0e3; font-size: 13.5px; }
.rtable th, .rtable td { height: 44px; padding: 0 12px; box-shadow: inset 0 -1px 0 #eff0f1; text-align: left; }
.rtable th { background: #f5f6f7; font-weight: 500; color: #646a73; }
.rtable tr.cur td { background: rgba(0, 122, 255, .05); }
.rtable tr.us td { background: rgba(52, 199, 89, .06); box-shadow: none; }
.rtable .mini-chip { height: 22px; }
.doc p.sum { margin-top: 14px; padding: 10px 12px; border-radius: 8px; background: #f0f4ff; font-size: 14px; }
.doc p.ph { margin: 0; }
