/* ← site-additions.css */
/* ════════ S · Presets, Skills & Rules ════════ */
.s-codify .grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: start; }
.s-codify .defs { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.s-codify .def { padding: 20px 0; border-top: 1px solid #E4E4E7; display: flex; gap: 16px; }
.s-codify .def:last-child { border-bottom: 1px solid #E4E4E7; }
.s-codify .def .d-ic { width: 36px; height: 36px; border-radius: 9px; flex: none; display: grid; place-items: center; }
.s-codify .def .d-ic svg { width: 18px; height: 18px; }
.s-codify .def .d-ic { background: #EFF6FF; color: #2684FF; }
.s-codify .def h3 { font-size: 16.5px; font-weight: 600; color: #0B1220; margin: 0 0 5px; }
.s-codify .def p { font-size: 14px; line-height: 1.55; color: #52525B; margin: 0 0 9px; text-wrap: pretty; }
.s-codify .def .eg {
  display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; font-weight: 600;
  color: #3F3F46; background: #F7F8FB; border: 1px solid #E8ECF4; border-radius: 7px; padding: 5px 10px;
}
.s-codify .def .eg .tag { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: #9CA1AB; text-transform: uppercase; letter-spacing: 0.06em; }
.s-codify .kquote { grid-column: 1 / -1; margin-top: 8px; padding-top: 30px; border-top: 1px solid #E4E4E7; }
.s-codify .kquote .hl { color: #006ADF; }

/* preset config card (real UI miniature) */
.pcard { background: #FFFFFF; border: var(--nz-card-border); border-radius: var(--nz-radius-card); overflow: hidden; box-shadow: var(--nz-shadow-elevated); }
.pcard .p-head { display: flex; align-items: center; gap: 9px; padding: 14px 16px; border-bottom: 1px solid #EEF0F4; }
.pcard .p-head .p-ic { width: 26px; height: 26px; border-radius: 7px; background: #EFF6FF; color: #2684FF; display: grid; place-items: center; flex: none; }
.pcard .p-head .p-ic svg { width: 15px; height: 15px; }
.pcard .p-head .p-t b { font-size: 13.5px; color: #0B1220; display: block; }
.pcard .p-head .p-t span { font-size: 11px; color: #9CA1AB; }
.pcard .p-head .p-on {
  margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: #166534; background: #DCFCE7; border-radius: 999px; padding: 3px 9px;
}
.pcard .p-on .pdot { width: 6px; height: 6px; border-radius: 50%; background: #16A34A; }
.pcard .p-body { padding: 6px 16px 16px; }
.pcard .p-grp { padding: 13px 0; border-bottom: 1px solid #F1F1F3; }
.pcard .p-grp:last-child { border-bottom: none; }
.pcard .p-lbl { font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: #9CA1AB; margin-bottom: 9px; }
.pcard .p-model { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: #1F2937; }
.pcard .p-model .mdot { width: 8px; height: 8px; border-radius: 50%; background: #2684FF; }
.pcard .p-model .pmono { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: #9CA1AB; font-weight: 400; }
.pcard .p-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.pcard .p-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: #3F3F46;
  background: #F7F8FB; border: 1px solid #E8ECF4; border-radius: 7px; padding: 5px 10px;
}
.pcard .p-chip svg { width: 12px; height: 12px; color: #9CA1AB; flex: none; }
.pcard .p-skill { display: flex; align-items: center; gap: 9px; padding: 7px 0; }
.pcard .p-skill .s-ic { width: 22px; height: 22px; border-radius: 6px; background: #EFF6FF; color: #2684FF; display: grid; place-items: center; flex: none; }
.pcard .p-skill .s-ic svg { width: 12px; height: 12px; }
.pcard .p-skill .s-nm { font-size: 13px; font-weight: 600; color: #1F2937; }
.pcard .p-skill .s-tog { margin-left: auto; width: 30px; height: 17px; border-radius: 999px; background: #2684FF; position: relative; flex: none; }
.pcard .p-skill .s-tog::after { content: ''; position: absolute; top: 2px; right: 2px; width: 13px; height: 13px; border-radius: 50%; background: #fff; }
.pcard .p-skill.off .s-tog { background: #D4D7DE; }
.pcard .p-skill.off .s-tog::after { right: auto; left: 2px; }
.pcard .p-skill.off .s-ic { background: #F4F4F5; color: #B4BAC4; }
.pcard .p-skill.off .s-nm { color: #9CA1AB; }
.pcard .p-rule { display: flex; align-items: flex-start; gap: 8px; padding: 6px 0; font-size: 12.5px; line-height: 1.45; color: #3F3F46; }
.pcard .p-rule svg { width: 13px; height: 13px; color: #2684FF; flex: none; margin-top: 2px; }
.pcard .p-rule b { color: #0B1220; font-weight: 600; }

/* ← site-additions.css · responsive */
@media (max-width: 980px) {
  .s-codify .grid { grid-template-columns: 1fr; gap: 36px; }
}
