/* Daily Life Doc, round 27 (zone SK, part M); round 30 (zone IF): the Instructions editor of the knowledge base
   (js/kb/kb-skill.js): a tinted When to use field (round 36), one tinted field for the steps, and under it the steps marked "Not possible yet". Tinted
   fields, no borders, the knowledge base's type scale (css/kb.css).
   Round 56c (zone A): an app's Description (js/kb/kb-about.js): the editor's row reuses .ksk-row; .kb-about is the
   small muted line under an app's name in the list, .kb-abp the same line under the bar of an app's page. */
.ksk { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; }
.ksk-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 10px; align-items: start; }
.ksk-use { background: var(--field); font-size: var(--t-sm); line-height: 1.5; resize: none; overflow: hidden; min-height: 0; }
.ksk-l { font-size: var(--t-xs); font-weight: 600; color: var(--ink3); padding-top: 11px; }
.ksk-col { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.ksk-text { background: var(--field); font-size: var(--t-sm); line-height: 1.6; min-height: 120px; resize: none; overflow: hidden; }
.ksk-marks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ksk-marks[hidden] { display: none; }
.ksk-marks li { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px 12px; border-radius: 12px; background: var(--field);
  box-shadow: inset 3px 0 0 var(--try); animation: dd-rise .22s var(--ease-out) both; }
.ksk-no { font-size: var(--t-2xs); font-weight: 600; color: var(--try-d); background: var(--try-bg); border-radius: 7px; padding: 2px 8px; }
.ksk-mw { font-size: var(--t-xs); line-height: 1.5; color: var(--ink2); overflow-wrap: anywhere; }
@media (max-width: 480px) {
  .ksk-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .ksk-l { padding-top: 0; }
}
.kbr .ub.kb-no { color: var(--try-d); font-weight: 500; }


/* Round 38 (zone I, decisions 9 and 10): When to use again (no tags), the Copies row under the steps and a client's
   copy of an instruction (js/kb/kb-icopy.js, js/kb/kb-icopy-page.js): the main's steps read only on top, the client's
   lines below, tinted and borderless, who wrote each line on its right. */
.ksk-row[hidden], .kic-w[hidden] { display: none; }
.ksk-use::placeholder { color: var(--ink3); }
.kic-list { flex-direction: row; flex-wrap: wrap; gap: 8px; padding-top: 4px; }
.kic-c, .kic-new { display: inline-flex; align-items: baseline; gap: 6px; min-height: 36px; padding: 8px 14px; border: 0; border-radius: 12px;
  background: var(--field); color: var(--ink); font: inherit; font-size: var(--t-sm); cursor: pointer; text-align: left;
  transition: background .15s var(--ease-out), transform .15s var(--ease-out); }
.kic-c:hover, .kic-new:hover { background: var(--field-h, var(--field)); transform: translateY(-1px); }
.kic-c b { font-weight: 600; }
.kic-c span { color: var(--ink3); font-size: var(--t-xs); }
.kic-new { align-items: center; background: transparent; box-shadow: inset 0 0 0 1px var(--line); color: var(--ink2); font-weight: 500; }
.kic-new svg { width: 16px; height: 16px; }
.xbody.kic { display: flex; flex-direction: column; gap: 22px; padding-top: 18px; animation: dd-rise .22s var(--ease-out) both; }
.kic-t { font-size: var(--t-m, 18px); font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.kic-sec { display: flex; flex-direction: column; gap: 10px; }
.kic-h { margin: 0; font-size: var(--t-xs); font-weight: 600; color: var(--ink2); }
.kic-h span { font-weight: 400; color: var(--ink3); }
.kic-main { margin: 0; padding: 12px 16px 12px 34px; border-radius: 12px; background: var(--field); color: var(--ink2);
  font-size: var(--t-sm); line-height: 1.6; display: flex; flex-direction: column; gap: 4px; }
.kic-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.kic-l { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 8px;
  padding: 4px 6px 4px 4px; border-radius: 12px; background: var(--sage-bg, var(--field)); box-shadow: inset 3px 0 0 var(--sage, var(--app));
  animation: dd-rise .22s var(--ease-out) both; transition: opacity .18s, transform .18s; }
.kic-l.kic-gone { opacity: 0; transform: translateX(8px); }
.kic-l.kic-add { background: transparent; box-shadow: none; grid-template-columns: minmax(0, 1fr); }
.kic .kic-l .kic-in { background: transparent; box-shadow: none; font-size: var(--t-sm); line-height: 1.5; resize: none; overflow: hidden; min-height: 0; }
.kic .kic-add .kic-in { background: var(--field); }
.kic-by { font-size: var(--t-2xs); font-weight: 600; color: var(--ink3); white-space: nowrap; }
.kic-by.you { color: var(--sage-d, var(--ink2)); }
.kic-x { width: 30px; height: 30px; color: var(--ink3); }
.kic-x svg { width: 15px; height: 15px; }
.kic-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 4px;
  font-size: var(--t-xs); color: var(--ink3); }
@media (max-width: 480px) {
  .kic-l { grid-template-columns: minmax(0, 1fr) auto; }
  .kic-by { grid-column: 1; grid-row: 2; padding: 0 0 4px 12px; }
  .kic-x { grid-column: 2; grid-row: 1; }
}

/* Round 56c (zone A): an app's Description. Under the name in the list: one small muted line, at most two lines. */
.kbr .nm .kb-about { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden;
  white-space: normal; font-size: var(--t-xs); line-height: 1.35; color: var(--ink3); margin-top: 1px; }
/* A row with that line lets a long name wrap to a second line instead of cutting it ("Today in mental health" at
   1280 px, where the list stands in two narrow columns; round 56c, fixer FX7). */
.kbr .nm:has(> .kb-about) { white-space: normal; overflow-wrap: break-word; }
/* Under the bar of an app's page: the same muted line, as wide as the preview under it. */
.kb-abp { font-size: var(--t-sm); line-height: 1.45; color: var(--ink3); text-wrap: pretty; }
.kb-abp[hidden] { display: none; }
.kbm .klk-body .kb-abp { align-self: center; width: min(100%, 440px); }
.kbm .kc-body .kb-abp { max-width: 640px; margin: 0 0 12px; padding: 0 6px; } /* in line with the eyebrow under it */
.kb-abw:empty { display: none; }
.kb-abrow { padding-top: 6px; }
