/* セキュリティ。style.css と flow.css の上に重ねる */
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.wcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 7px; }
.vs { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 700; }
.vs i { font-style: normal; font-family: var(--latin); font-size: 11px; color: var(--muted); }
.wcard p { margin: 0; font-size: 13px; color: var(--ink2); }
.wcard .an { font-size: 12.5px; color: var(--muted); }
.wcard .why { font-size: 12.5px; color: #92400e; background: #fffbeb; border-radius: 8px; padding: 6px 10px; }

.prlist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 8px; counter-reset: pr; }
.prlist li { counter-increment: pr; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px 11px 46px; position: relative; }
.prlist li::before { content: counter(pr); position: absolute; left: 14px; top: 11px; width: 22px; height: 22px; border-radius: 6px; background: var(--ink); color: #fff; font-family: var(--latin); font-weight: 600; font-size: 12px; display: grid; place-items: center; }
.prlist b { display: block; font-size: 14px; }
.prlist span { font-size: 12.5px; color: var(--ink2); }

.atgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.atcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 7px; min-width: 0; transition: border-color .2s, box-shadow .2s; }
.atcard.lit { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
.athead { display: flex; align-items: flex-start; gap: 8px; }
.athead h3 { margin: 0; font-size: 15.5px; line-height: 1.35; flex: 1; }
.ow { font-family: var(--latin); font-size: 11px; font-weight: 600; color: #fff; background: #b91c1c; border-radius: 6px; padding: 2px 7px; flex: none; }
.atcard .an { margin: 0; font-size: 12.5px; color: var(--muted); }
.atcard .hm { margin: 0; font-size: 13px; color: var(--ink2); }
.atcard .hm b, .atcard .df b, .atcard .hw b { color: #b91c1c; font-size: 11.5px; margin-right: 4px; }
.atcard .df b { color: var(--k-test); }
.atcard ul { margin: 0; padding-left: 1.1em; font-size: 12.5px; color: var(--ink2); }
.exm { margin-top: auto; padding-top: 8px; border-top: 1px dashed var(--line); font-size: 12px; color: var(--ink2); }
.exm b { color: var(--muted); margin-right: 4px; }
.exm a { color: #1d4ed8; }

.owlist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.owitem { appearance: none; font: inherit; color: inherit; text-align: left; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; cursor: pointer; display: grid; grid-template-columns: 46px 1fr; gap: 2px 10px; align-items: baseline; }
.owitem:hover { border-color: #94a3b8; }
.owitem.on { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .18); }
.owitem .n { font-family: var(--latin); font-weight: 600; font-size: 15px; color: #b91c1c; grid-row: span 2; }
.owitem .t { font-weight: 700; font-size: 14px; }
.owitem .t small { font-family: var(--latin); font-weight: 500; font-size: 11px; color: var(--muted); margin-left: 6px; }
.owitem .o { font-size: 12.5px; color: var(--ink2); }
.owitem:focus-visible, .mlist input:focus-visible { outline: 3px solid #2563eb; outline-offset: 2px; }

.sdrow { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.sdstep { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; position: relative; }
.sdstep b { display: block; font-size: 13.5px; margin-bottom: 4px; color: var(--k-design); }
.sdstep span { font-size: 12px; color: var(--ink2); }
.sdstep:not(:last-child)::after { content: "→"; position: absolute; right: -9px; top: 12px; color: #94a3b8; font-weight: 700; background: var(--bg); line-height: 1; }

.tlgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.tlcard { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px; }
.tlcard b { font-size: 14px; }
.tlcard .ex { display: block; font-size: 11.5px; color: var(--muted); margin: 2px 0 4px; }
.tlcard span { font-size: 12.5px; color: var(--ink2); }

.mlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.mlist label { display: flex; gap: 10px; align-items: flex-start; padding: 7px 4px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.mlist label:hover { background: var(--line2); }
.mlist input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--k-test); flex: none; }
.mlist input:checked + span { color: var(--muted); text-decoration: line-through; }
.mcount { margin-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--k-test); }

/* Laravel でよくある穴・漏れたかもと思ったら */
.lvgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.lvcard { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.lvcard h3 { margin: 0; font-size: 15px; }
.lvcard > p { margin: 0; font-size: 13px; color: var(--ink2); }
.lvcode { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lvcode b { display: block; font-size: 11.5px; padding: 3px 10px; }
.lvcode.bad b { background: #fef2f2; color: #b91c1c; }
.lvcode.good b { background: #ecfdf5; color: #047857; }
.lvcode pre { margin: 0; padding: 8px 11px; background: #0f172a; color: #e2e8f0; font-family: var(--latin); font-size: 11.5px; line-height: 1.6; overflow-x: auto; }
.lvlink { font-size: 12.5px !important; }
.lvlink a, .lvsrc a, .lkflow a { color: #1d4ed8; }
.lvsrc { margin-top: auto !important; font-size: 12px !important; }
.lkflow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: lk; }
.lkflow li { counter-increment: lk; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--ink2); }
.lkflow li::before { content: counter(lk); width: 24px; height: 24px; border-radius: 50%; background: #b91c1c; color: #fff; font: 600 12px/24px var(--latin); text-align: center; }
.lkflow b { font-size: 15px; color: var(--ink); }
.lkflow i { margin-top: auto; font-style: normal; font-size: 11px; font-weight: 700; color: var(--muted); }
.lkflow li > a { margin-top: auto; font-size: 12px; }
@media (max-width: 1100px) { .lvgrid { grid-template-columns: 1fr; } .lkflow { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .lkflow { grid-template-columns: 1fr; } }
@media (max-width: 1100px) {
  .atgrid, .tlgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sdrow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sdstep::after { display: none; }
}
@media (max-width: 760px) {
  .atgrid, .tlgrid, .owlist { grid-template-columns: 1fr; }
  .sdrow { grid-template-columns: 1fr 1fr; }
}

.subh { margin: 18px 0 10px; font-size: 15px; }
.ow.llm { background: #6d28d9; }
.owitem[data-n^="LLM"] .n { color: #6d28d9; }
.atcard { scroll-margin-top: 16px; }
.atcard:target { border-color: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, .2); }
