/* 週次 › アイデア（2026-10-30 2段目・F3）。見本 mock-ideas.html の部品。セレクタは #tab-ideas の中に限る */
#tab-ideas .card-head .cnt { font-size: 12px; color: var(--muted); white-space: nowrap; }
#tab-ideas .card-head .tag { font-size: 11px; font-weight: 700; color: var(--g-weekly); background: var(--sunken); border-radius: var(--radius); padding: 1px 6px; }
#tab-ideas .ihead, #tab-ideas .irow > summary { display: grid; align-items: center; column-gap: 14px; padding: 0 var(--card-pad); }
#tab-ideas .phead, #tab-ideas .prow > summary { grid-template-columns: 52px minmax(0, 1fr) 128px 104px 104px 72px 148px; }
#tab-ideas .mhead, #tab-ideas .mrow > summary { grid-template-columns: minmax(0, 1fr) 72px 48px 48px 120px 48px 76px 120px; }
#tab-ideas .ihead { height: 36px; font-size: 12px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
#tab-ideas .ihead span { overflow: hidden; text-overflow: ellipsis; }
#tab-ideas .irow { border-bottom: 1px solid var(--line-soft); }
#tab-ideas .irow > summary { min-height: 46px; list-style: none; cursor: pointer; white-space: nowrap; }
#tab-ideas .irow > summary::-webkit-details-marker { display: none; }
#tab-ideas .irow > summary:hover { background: var(--sunken); }
#tab-ideas .irow > summary > span { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#tab-ideas .irow[open] > summary { background: var(--sunken); }
#tab-ideas .pid { font-size: 12px; font-weight: 700; color: var(--g-weekly); font-variant-numeric: tabular-nums; }
#tab-ideas .ptitle, #tab-ideas .mtitle { font-size: 14px; }
#tab-ideas .psrc, #tab-ideas .pwho, #tab-ideas .site, #tab-ideas .added, #tab-ideas .exp, #tab-ideas .due { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#tab-ideas .due-today { color: var(--ng); font-weight: 600; }
#tab-ideas .irow .st { justify-self: start; }
#tab-ideas .irow .btn-ai { justify-self: end; white-space: nowrap; }
#tab-ideas .score { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
#tab-ideas .score.none { color: var(--subtle); }
#tab-ideas .fails { display: flex; gap: 4px; }
#tab-ideas .fail { font-size: 11px; color: var(--ng); background: var(--ng-bg); border-radius: var(--radius); padding: 0 5px; height: 18px; display: inline-flex; align-items: center; }
#tab-ideas .pass { font-size: 12px; color: var(--subtle); }
#tab-ideas .why { padding: 4px var(--card-pad) 14px calc(var(--card-pad) + 66px); font-size: 13px; line-height: 1.7; color: var(--text); background: var(--sunken); display: flex; gap: 12px; }
#tab-ideas .why + .why { padding-top: 0; }
#tab-ideas .why.wlink a { font-size: 12px; color: var(--primary); text-decoration: none; }
#tab-ideas .why.wlink a:hover { text-decoration: underline; }
#tab-ideas .mrow .why { padding-left: var(--card-pad); }
#tab-ideas .wl { font-size: 11px; font-weight: 700; color: var(--muted); flex: 0 0 auto; padding-top: 2px; min-width: 44px; }
#tab-ideas .inone { padding: 14px var(--card-pad); font-size: 13px; color: var(--muted); border-bottom: 1px solid var(--line-soft); }

/* 古い週・採否済みの畳み */
#tab-ideas .ifold { border-bottom: 1px solid var(--line-soft); }
#tab-ideas .ifold:last-child { border-bottom: 0; }
#tab-ideas .ifold > summary { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 var(--card-pad); list-style: none; cursor: pointer; white-space: nowrap; font-size: 13px; color: var(--muted); }
#tab-ideas .ifold > summary::-webkit-details-marker { display: none; }
#tab-ideas .ifold > summary:hover { background: var(--sunken); }
#tab-ideas .ifold .fl { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
#tab-ideas .ifold .fc { font-size: 12px; font-variant-numeric: tabular-nums; }
#tab-ideas .ifold .fa { margin-left: auto; font-size: 12px; color: var(--primary); }
#tab-ideas .ifold[open] > summary .fa { visibility: hidden; }
#tab-ideas .ifold[open] > summary { border-bottom: 1px solid var(--line-soft); }
#tab-ideas .ifold .irow:last-child { border-bottom: 0; }
#tab-ideas .ideas-p { overflow: hidden; }

/* 絞り込み */
#tab-ideas .filters { display: flex; align-items: center; gap: 16px; padding: 12px var(--card-pad); border-bottom: 1px solid var(--line-soft); }
#tab-ideas .seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; flex: 0 0 auto; }
#tab-ideas .seg button { font-weight: 400; height: 28px; padding: 0 12px; font-size: 12px; border: 0; background: var(--card); color: var(--muted); cursor: pointer; white-space: nowrap; }
#tab-ideas .seg button + button { border-left: 1px solid var(--line); }
#tab-ideas .seg button.is-on { background: var(--primary-glow); color: var(--primary); font-weight: 600; }
#tab-ideas .chips { display: flex; gap: 6px; flex-wrap: wrap; min-width: 0; }
#tab-ideas .chip { flex: 0 0 auto; font-weight: 400; height: 26px; padding: 0 10px; font-size: 12px; border: 1px solid var(--line); background: var(--card); border-radius: var(--radius); color: var(--text); cursor: pointer; white-space: nowrap; }
#tab-ideas .chip span { color: var(--muted); margin-left: 2px; }
#tab-ideas .chip.is-on { border-color: var(--primary); color: var(--primary); }
#tab-ideas .nobtn { display: block; }
#tab-ideas .morebar { padding: 10px var(--card-pad) 14px; }
#tab-ideas .morebar button { border: 0; background: none; color: var(--primary); font-size: 12px; cursor: pointer; padding: 0; }
#tab-ideas .ifoot { margin: 12px 4px 0; font-size: 12px; color: var(--muted); }

@media (max-width: 1100px) {
    #tab-ideas .psrc { display: none; }
    #tab-ideas .phead, #tab-ideas .prow > summary { grid-template-columns: 52px minmax(0, 1fr) 104px 104px 72px 148px; }
    #tab-ideas .phead span:nth-child(3) { display: none; }
}
@media (max-width: 768px) {
    #tab-ideas .ihead { display: none; }
    #tab-ideas .card-head { flex-wrap: wrap; }
    #tab-ideas .card-head .sub { margin-left: 0; width: 100%; white-space: normal; }
    #tab-ideas .prow > summary { grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-areas: "id t t" ". who st" ". due ai"; row-gap: 6px; padding-top: 12px; padding-bottom: 12px; }
    #tab-ideas .pid { grid-area: id; align-self: start; padding-top: 2px; }
    #tab-ideas .ptitle { grid-area: t; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
    #tab-ideas .psrc { display: none; }
    #tab-ideas .pwho { grid-area: who; }
    #tab-ideas .due { grid-area: due; }
    #tab-ideas .prow .st { grid-area: st; justify-self: end; }
    #tab-ideas .prow .btn-ai, #tab-ideas .prow .nobtn { grid-area: ai; justify-self: end; }
    #tab-ideas .due::before { content: '期限 '; }
    #tab-ideas .due.no-due { visibility: hidden; }
    #tab-ideas .mrow > summary { grid-template-columns: auto auto minmax(0, 1fr) auto; grid-template-areas: "t t t t" "site added score st" "fails fails exp ai"; row-gap: 6px; padding-top: 12px; padding-bottom: 12px; }
    #tab-ideas .mtitle { grid-area: t; }
    #tab-ideas .site { grid-area: site; }
    #tab-ideas .added { grid-area: added; }
    #tab-ideas .score { grid-area: score; }
    #tab-ideas .fails { grid-area: fails; }
    #tab-ideas .mrow .st { grid-area: st; justify-self: end; }
    #tab-ideas [data-stage=approved] .exp { visibility: hidden; }
    #tab-ideas .exp { grid-area: exp; justify-self: end; }
    #tab-ideas .exp::before { content: '失効 '; }
    #tab-ideas .mrow .btn-ai, #tab-ideas .mrow .nobtn { grid-area: ai; }
    #tab-ideas .filters { flex-direction: column; align-items: flex-start; gap: 10px; }
    #tab-ideas .chips { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
    #tab-ideas .why, #tab-ideas .mrow .why { padding-left: var(--card-pad); }
}

/* 作るもの: SNS 投稿のバッジ・数値の内訳（2026-11-02） */
#tab-ideas .fails.sns { gap: 3px; flex-wrap: nowrap; }
#tab-ideas .sns-b { font-size: 10px; font-weight: 700; height: 18px; min-width: 22px; padding: 0 4px; border-radius: var(--radius); display: inline-flex; align-items: center; justify-content: center; }
#tab-ideas .sns-b.s-ok { color: var(--ok); background: var(--ok-bg); }
#tab-ideas .sns-b.s-unk { color: var(--subtle); background: var(--sunken); }
#tab-ideas .sns-b.s-none { color: var(--subtle); background: transparent; box-shadow: inset 0 0 0 1px var(--line); text-decoration: line-through; }
#tab-ideas .pubsum { flex-basis: 100%; font-size: 12px; color: var(--muted); padding-top: 6px; }
#tab-ideas .nums .nhead { font-size: 13px; font-weight: 600; }
#tab-ideas .nums .nmeta { font-size: 12px; color: var(--muted); font-weight: 400; margin-left: 8px; }
#tab-ideas .ntable { border-collapse: collapse; margin-top: 6px; width: 100%; }
#tab-ideas .ntable td { font-size: 12px; padding: 3px 8px 3px 0; vertical-align: top; }
#tab-ideas .ntable .ax { white-space: nowrap; color: var(--muted); }
#tab-ideas .ntable .num { font-variant-numeric: tabular-nums; font-weight: 700; text-align: right; padding-right: 12px; }
#tab-ideas .ntable .rs { color: var(--text); }
#tab-ideas .advs { margin-top: 6px; font-size: 12px; display: flex; gap: 10px; flex-wrap: wrap; }
#tab-ideas .nwhy { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* 一覧のまま読める細かい値（2026-11-03） */
#tab-ideas .mrow > summary .mline { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 12px; color: var(--muted); padding-top: 2px; }
#tab-ideas .mline .ax-list, #tab-ideas .mline .adv-list { display: inline-flex; gap: 4px; flex-wrap: wrap; }
#tab-ideas .mline .ax { border: 1px solid var(--line); border-radius: var(--radius); padding: 0 6px; background: var(--card); white-space: nowrap; }
#tab-ideas .mline .ax b { color: var(--text); font-variant-numeric: tabular-nums; }
#tab-ideas .mline .ax.s1, #tab-ideas .mline .ax.s2 { border-color: var(--ng-dot); } #tab-ideas .mline .ax.s1 b, #tab-ideas .mline .ax.s2 b { color: var(--ng); }
#tab-ideas .mline .ax.s4, #tab-ideas .mline .ax.s5 { border-color: var(--ok-dot); } #tab-ideas .mline .ax.s4 b, #tab-ideas .mline .ax.s5 b { color: var(--ok); }
#tab-ideas .mline .adv-list span { white-space: nowrap; }
#tab-ideas .mline .adv-list .ng { color: var(--ng); font-weight: 600; } #tab-ideas .mline .adv-list .ok { color: var(--ok); }
#tab-ideas .mline .vd { color: var(--warn); font-weight: 600; } #tab-ideas .mline .vd.ok { color: var(--ok); }
#tab-ideas .mline .bf { color: var(--warn); background: var(--warn-bg); border-radius: var(--radius); padding: 0 6px; font-weight: 600; }
#tab-ideas .mline .iss { flex-basis: 100%; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#tab-ideas .nissues { margin-top: 8px; font-size: 12px; }
#tab-ideas .nissues .nlab { color: var(--muted); margin-bottom: 2px; }
#tab-ideas .nissues ol { margin: 0; padding-left: 20px; line-height: 1.6; }
#tab-ideas .nissues li { overflow-wrap: anywhere; }
@media (max-width: 768px) { #tab-ideas .mrow > summary .mline { grid-area: auto; grid-column: 1 / -1; } }
#tab-ideas .vchip { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 600; padding: 0 6px; border-radius: var(--radius); background: var(--unk-bg); color: var(--muted); vertical-align: 1px; }
#tab-ideas .vchip.ok { background: var(--ok-bg); color: var(--ok); }
#tab-ideas .mline .lab { color: var(--text); font-weight: 600; white-space: nowrap; }
#tab-ideas .mline .stop { flex-basis: 100%; color: var(--warn); }
