.factory-view * { box-sizing: border-box; }
.factory-view { max-width: 1220px; margin-inline: auto; }
.factory-heading { display: flex; align-items: start; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.factory-heading h1 { margin: 7px 0 12px; font-size: 36px; letter-spacing: -1.5px; line-height: 1.1; }
.factory-heading p { color: #74808e; max-width: 580px; }
.factory-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.factory-toolbar { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 22px; }
.factory-toolbar input { flex: 1 1 240px; }
.factory-toolbar input, .factory-toolbar select, .factory-form input, .factory-form select, .factory-form textarea {
  font: inherit;
  min-width: 0;
  width: 100%;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid #dfe3ec;
  border-radius: 11px;
  color: #252d3b;
}
.factory-toolbar select { width: auto; max-width: 100%; }
.factory-toolbar input:focus, .factory-form :is(input,textarea,select):focus { outline: 2px solid #979cdd; outline-offset: 2px; }
.factory-form label { display: flex; flex-direction: column; gap: 7px; font-size: 12px; font-weight: 700; color: #5c6472; }
.factory-form textarea { resize: vertical; min-height: 100px; line-height: 1.55; }
.factory-form .field-wide { grid-column: 1 / -1; }
.factory-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.factory-panel { background: #fff; border: 1px solid #e3e5ed; border-radius: 20px; padding: 26px; margin-bottom: 20px; }
.factory-panel h2 { font-size: 20px; letter-spacing: -.5px; margin: 0 0 22px; }
.factory-panel h3 { font-size: 15px; margin: 0 0 15px; }
.factory-empty { padding: 65px 25px; text-align: center; background: #fff; border: 1px solid #e4e6ef; border-radius: 22px; }
.factory-empty h2 { font-size: 23px; margin: 0 0 12px; }
.factory-empty p { color: #78808f; font-size: 14px; max-width: 470px; margin: auto; }
.factory-status { font-size: 11px; color: #66627a; background: #efedf8; border-radius: 20px; padding: 5px 9px; white-space: nowrap; }
.factory-table { width: 100%; border-collapse: collapse; text-align: start; background: #fff; border-radius: 16px; overflow: hidden; font-size: 13px; }
.factory-table th { font-size: 11px; font-weight: 650; color: #7b8391; padding: 16px; text-align: start; }
.factory-table td { padding: 18px 16px; border-top: 1px solid #edf0f5; vertical-align: middle; }
.factory-table strong, .factory-table small { display: block; }
.factory-table strong { margin-bottom: 5px; }
.factory-table small { color: #808794; font-size: 11px; overflow-wrap: anywhere; }
.factory-table a { color: #414a83; }
.factory-list-count { margin-bottom: 15px; color: #78808d; font-size: 12px; }
.factory-next { background: #f0eefb; border-color: #e1ddf3; }
.factory-next p { margin: 0 0 16px; color: #69667e; font-size: 13px; }
.factory-error { color: #ad354e; font-size: 13px; margin: 14px 0; }
.factory-success { color: #367261; font-size: 13px; margin: 14px 0; }
.factory-note { color: #7c8290; font-size: 12px; line-height: 1.6; }
.factory-back { display: inline-flex; color: #737b8c; font-size: 12px; margin-bottom: 24px; }
.factory-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.factory-activity-editor { margin-block: 0 20px; padding: 20px; border: 1px solid #e7e9f0; border-radius: 15px; }
.factory-activity-editor legend { font-size: 13px; color: #667083; font-weight: 750; padding-inline: 6px; }
.factory-remove { margin-top: 14px; font-size: 12px; color: #a84c5e; background: none; border: 0; cursor: pointer; }
.factory-form .factory-check { flex-direction: row; align-items: start; gap: 10px; font-weight: 500; line-height: 1.6; margin-bottom: 12px; }
.factory-check input { flex: 0 0 auto; width: 16px; min-height: 16px; margin-top: 3px; padding: 0; }
.factory-progress { width: 100%; height: 7px; accent-color: #8177ce; margin: 14px 0; }
.factory-details > summary { cursor: pointer; font-size: 13px; font-weight: 750; padding-block: 4px; }
.factory-details[open] > summary { margin-bottom: 18px; }
.factory-source { padding-block: 13px; border-bottom: 1px solid #eceef5; font-size: 12px; }
.factory-source a { display: block; color: #414a83; overflow-wrap: anywhere; }
.factory-source pre { white-space: pre-wrap; max-height: 320px; overflow: auto; font: 11px/1.6 inherit; color: #687281; }
.factory-versions { padding: 0; margin: 0; list-style: none; }
.factory-versions li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-block: 12px; border-bottom: 1px solid #eef0f6; font-size: 12px; }
.factory-versions small { display: block; color: #858b97; margin-top: 4px; }
.factory-pagination { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; font-size: 12px; }

@media (max-width:1000px) { .factory-workspace { grid-template-columns:minmax(0,1fr); } }
@media (max-width:700px) {
 .factory-heading { flex-direction:column;gap:12px; }
 .factory-heading h1 { font-size:30px; }
 .factory-panel { padding:20px;border-radius:17px; }
 .factory-form-grid { grid-template-columns:1fr;gap:16px; }
 .factory-activity-editor { padding:14px; }
 .factory-table,.factory-table tbody,.factory-table tr,.factory-table td { display:block; }
 .factory-table thead { position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%); }
 .factory-table tr { padding:12px;border-top:1px solid #e7eaf1; }
 .factory-table td { border:0;padding:7px; }
 .factory-table td[data-label]::before { content:attr(data-label);color:#858b99;font-size:10px;display:block;margin-bottom:4px; }
}
