/* Styles for the start screen (step 1). Tokens only, no raw colors. Built on the .m- kit; #screen is the size container. */

.st-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.st-left, .st-right { display: grid; gap: 14px; min-width: 0; align-content: start; }
.st-inputs { display: grid; gap: 12px; }
/* Below 900px the drafting panel, with the main button, comes first; its file chips already name the inputs. */
.st-right { order: -1; }
@container (min-width: 900px) {
  .st-right { order: 0; }
  .st-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 20px; align-items: start; }
  .st-right { position: sticky; top: 80px; }
}

/* Pack picker */
.st-pack { display: grid; gap: 10px; }
.st-picks { display: grid; gap: 8px; }
.st-pick {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding: 10px 12px;
  border: 1px solid var(--hair); border-radius: 10px; background: var(--m-0); color: var(--white);
  font: 400 14px/1.4 var(--sans); text-align: left;
}
.st-pick > span:first-child { min-width: 0; display: grid; gap: 2px; }
.st-pick.is-on { border: 2px solid var(--white); padding: 9px 11px; background: var(--m-2); box-shadow: inset 3px 0 0 var(--pink); }
.st-pick.is-off { cursor: not-allowed; border-style: dashed; border-color: var(--edge); color: var(--soft); }
.st-pick.is-off b { font-weight: 500; }
.st-off { flex: none; font: 500 12px/1.4 var(--mono); white-space: nowrap; }
@media (max-width: 420px) { .st-pick.is-off { flex-wrap: wrap; } }

/* Inputs */
.st-input { display: grid; gap: 6px; }
.st-input-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.st-input details { margin-top: 6px; border-top: 1px solid var(--hair); padding-top: 8px; }
.st-input summary { cursor: pointer; color: var(--white); font-size: 13.5px; font-weight: 500; padding: 4px 0; text-decoration: underline; text-decoration-color: var(--pink); text-underline-offset: 3px; }
.st-input summary:hover { text-decoration-color: var(--white); }
.st-list { display: grid; gap: 4px; margin-top: 8px; font-size: 13px; }
.st-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 10px; align-items: baseline; padding: 4px 0; border-top: 1px solid var(--hair); }
.st-list li:first-child { border-top: 0; }
.st-clauses { max-height: 280px; overflow-y: auto; }
.st-clauses li { grid-template-columns: 84px minmax(0, 1fr); }
.st-n { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--soft); border-radius: 50%; font: 500 11px/1 var(--mono); color: var(--soft); }
.st-conns { display: grid; gap: 10px; margin-top: 2px; }
.st-conns li { display: grid; gap: 3px; padding-top: 10px; border-top: 1px solid var(--hair); }
.st-conns li:first-child { padding-top: 0; border-top: 0; }
.st-conn-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.st-tools { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.st-tools code { padding: 0 6px; border: 1px solid var(--hair); border-radius: 6px; background: var(--m-2); color: var(--soft); }
.st-mcp { margin-top: 4px; padding: 8px 10px; border: 1px dashed var(--edge); border-radius: 8px; }

/* Drafting panel */
.st-panel { box-shadow: none; }
.st-panel .m-chat { gap: 16px; }
.st-panel .m-msg { max-width: 100%; }
.st-panel .m-msg.is-user { justify-self: stretch; }
.st-panel .m-title { flex: 1 1 auto; }
.st-panel .m-chip { max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 480px) { .st-panel .m-chip { display: none; } }
.st-ai:empty { display: none; }
.st-actions { display: grid; gap: 10px; }
.st-done { display: grid; gap: 8px; padding: 12px 14px; border: 1px solid var(--hair); border-radius: 12px; background: var(--m-1); }
.st-done .m-count b { font-size: 22px; }
.st-fine { margin-top: 18px; }
