/* FOJI 拍摄单（public/modules/foji-make.js）。颜色用 foji-theme.css 的 --foji-* 和底盘的变量；尺寸、圆角跟一条片页走。 */
.fm-page{container-type:inline-size}
.fm-page .foji-head{align-items:flex-start}
.fm-actions{display:flex;flex:none;gap:8px;flex-wrap:wrap;justify-content:flex-end}
.fm-actions.fm-left{justify-content:flex-start;margin-top:10px}
.fm-sample,.fm-tag{display:inline-block;margin:6px 0 0;padding:0 10px;border-radius:999px;background:var(--fill);color:var(--secondary);font-size:12px;line-height:22px;font-weight:500}
.fm-tag{margin:0 0 0 6px;padding:0 8px;line-height:18px;font-size:11px}
.fm-code{margin:0 0 16px;padding:10px 14px;border:1px dashed var(--border);border-radius:12px;font-size:13px;line-height:20px;color:var(--text)}
.fm-code b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.fm-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:16px;align-items:start}
.fm-rows{display:flex;flex-direction:column;gap:10px;min-width:0;container-type:inline-size}
.fm-row{display:grid;grid-template-columns:28px minmax(0,1fr) auto;gap:12px;padding:12px 14px;border:1px solid var(--border-soft);border-radius:12px;background:var(--container)}
.fm-row.is-add{border-style:dashed;border-color:var(--border)}
.fm-n{width:28px;height:28px;display:grid;place-items:center;border-radius:8px;background:var(--fill);color:var(--secondary);font-size:12px;font-weight:600;font-variant-numeric:tabular-nums}
.fm-main{min-width:0}
.fm-what{display:flex;align-items:center;gap:6px;font-size:14px;line-height:22px;font-weight:600}
.fm-what small{margin-left:auto;color:var(--muted);font-size:12px;font-weight:500;font-variant-numeric:tabular-nums;white-space:nowrap}
.fm-main p{display:flex;gap:6px;margin:4px 0 0;font-size:13px;line-height:20px;color:var(--text)}
.fm-k{flex:none;min-width:44px;color:var(--muted);font-size:12px}
.fm-main p.fm-who{color:var(--secondary);font-size:12px;line-height:18px}
/* 参考镜头：只放小图，片名和数放悬停，点进去是那条片（12-02） */
.fm-refs{display:flex;gap:6px;align-items:flex-start;min-width:126px}
.fm-thumb{display:block;flex:none;width:60px;border-radius:6px;overflow:hidden;background:var(--fill)}
.fm-thumb img{display:block;width:60px;height:107px;object-fit:cover}
a.fm-thumb{cursor:pointer;transition:box-shadow .15s}
a.fm-thumb:hover{box-shadow:0 0 0 2px var(--border)}
.fm-side{display:flex;flex-direction:column;gap:12px;min-width:0}
.fm-side p{margin:0;font-size:13px;line-height:20px;color:var(--secondary)}
.fm-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.fm-steps li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:8px;font-size:13px;line-height:20px}
.fm-steps li::before{content:"";width:10px;height:10px;margin-top:5px;border-radius:50%;border:2px solid var(--border);box-sizing:border-box}
.fm-steps li.is-done::before{background:var(--foji-violet);border-color:var(--foji-violet)}
.fm-steps small{display:block;color:var(--muted);font-size:12px;line-height:18px}
.fm-list{display:flex;flex-direction:column;gap:12px;max-width:1100px}
.fm-table{width:100%;border-collapse:collapse;font-size:13px;line-height:20px}
.fm-table th,.fm-table td{padding:8px 10px;border-bottom:1px solid var(--border-soft);text-align:left;vertical-align:top}
.fm-table th{color:var(--muted);font-size:12px;font-weight:500}
.fm-table a{color:var(--foji-violet);font-weight:600;font-variant-numeric:tabular-nums}
.fm-copybox{width:100%;box-sizing:border-box;font-size:12px;line-height:18px}
/* 按页面自己的宽度排，不按窗口：左栏开着时内容区可能只有 700 多 px */
@container (max-width:960px){.fm-grid{grid-template-columns:1fr}.fm-side{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr))}}
@container (max-width:640px){.fm-page .foji-head{flex-direction:column}.fm-actions{justify-content:flex-start}.fm-table{display:block;overflow-x:auto}}
@container (max-width:560px){.fm-row{grid-template-columns:28px minmax(0,1fr)}.fm-refs{grid-column:2;flex-wrap:wrap}}
/* v0.2（12-02）：只给少数那几镜小标签；镜头条用一条片页的 .foji-strip；规矩写成短标签。不用红、紫、黄来分（白：“也不需要红色紫色的颜色区分”） */
.fm-page .foji-head>div:first-child{flex:1;min-width:0}
.fm-glance b{color:var(--text);font-weight:600;font-variant-numeric:tabular-nums}
.fm-strip{max-width:640px;margin-top:12px}
.fm-strip .foji-strip{margin-top:0}
.fm-strip .foji-legend>span{display:inline-flex;align-items:center}
.fm-row.is-lib .fm-main p:not(.fm-use){color:var(--secondary)}
.fm-takes>span:last-child{display:flex;flex-direction:column;gap:2px}
.fm-takes b{display:inline-block;width:14px;color:var(--text);font-weight:700}
.fm-rule+.fm-rule{margin-top:12px}
.fm-rule h3,.fm-accept h3{margin:0 0 6px;font-size:12px;line-height:18px;font-weight:500;color:var(--muted)}
.fm-side .foji-chips span{background:var(--fill);color:var(--text)}
.fm-side .foji-chips span[title]{cursor:help}
.fm-accept ul{list-style:none;margin:0 0 10px;padding:0;display:flex;flex-direction:column;gap:4px}
.fm-accept ul:last-child{margin-bottom:0}
.fm-accept li{display:grid;grid-template-columns:14px minmax(0,1fr);gap:6px;font-size:13px;line-height:20px;color:var(--text)}
.fm-accept li::before{content:"";width:10px;height:10px;margin-top:5px;border:1.5px solid var(--border);border-radius:3px;box-sizing:border-box}
@container (max-width:560px){.fm-refs{min-width:0}.fm-what{flex-wrap:wrap}}
/* 怎么看有没有用：数 + 短标签（11-14） */
.fm-stats{display:flex;flex-wrap:wrap;align-items:flex-end;gap:8px 28px;margin:4px 0 0}
.fm-stats b{display:block;font-size:20px;line-height:26px;font-weight:600;font-variant-numeric:tabular-nums}
.fm-stats small{font-size:12px;line-height:18px;color:var(--muted)}
.fm-stats-tag{align-self:center;padding:1px 10px;border:1px solid #0000000f;border-radius:999px;background:#ffffffb3;font-size:12px;line-height:20px;font-style:normal;color:#000000a6}
