/* Incubate360 v3: the Add a startup screen.

   Every class here starts with `itk-`. That prefix is not decoration: a bare `.lg` in the
   sign-in stylesheet once landed on every wide dialog in the product, and scripts/css-clash.mjs
   now guards against it. Nothing in this file may own a plain, generic class name. */

/* `.modal.lg` in app.css is two classes, so a one-class `.itk-box` never beat it and this
   dialog stayed at the standard 680px with its three columns squeezed. Match the weight. */
.modal.itk-box{max-width:980px}
.itk-box .modal-foot{justify-content:space-between;align-items:center;gap:14px}
.itk-footl{display:flex;align-items:center;gap:10px;min-width:0}
.itk-footr{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end}

/* the two doors */
.itk-modes{display:inline-flex;gap:4px;padding:4px;border-radius:11px;background:var(--canvas);
  border:1px solid var(--border);margin-bottom:14px}
.itk-mode{display:inline-flex;align-items:center;gap:7px;padding:7px 13px;border:0;border-radius:8px;
  cursor:pointer;font:inherit;font-size:12.8px;font-weight:600;color:var(--muted);background:none}
.itk-mode svg{width:15px;height:15px}
.itk-mode:hover{color:var(--ink)}
.itk-mode.on{background:var(--card);color:var(--violet);box-shadow:0 1px 3px rgba(11,27,63,.11)}

.itk-lede{display:flex;gap:9px;align-items:flex-start;background:var(--violet-soft,#F1ECFE);
  border:1px solid var(--violet-soft-2,#DCCFFA);border-radius:11px;padding:11px 13px;
  font-size:12.6px;line-height:1.55;color:var(--ink-2);margin-bottom:16px}
.itk-lede>span:first-child{color:var(--violet);display:flex;flex:none;margin-top:1px}

/* a group of fields */
.itk-sec{border:1px solid var(--border);border-radius:14px;padding:14px 15px 4px;margin-bottom:14px;
  background:var(--card)}
.itk-sec-h{display:flex;gap:10px;align-items:flex-start;margin-bottom:13px}
.itk-sec-i{width:29px;height:29px;flex:none;border-radius:9px;display:grid;place-items:center;
  background:var(--violet-soft,#F1ECFE);color:var(--violet)}
.itk-sec-h b{font-size:13.6px;font-family:var(--f-head);letter-spacing:-.2px}
.itk-sec-n{font-size:11.8px;color:var(--muted);margin-top:2px;line-height:1.5}

.itk-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0 14px}
.itk-f{display:flex;flex-direction:column;gap:5px;margin-bottom:13px;min-width:0}
.itk-f.w{grid-column:1 / -1}
/* The label stays on one line. When it wrapped, the input under it dropped by a line and the
   three columns in that row stopped lining up, which reads as a broken form even though nothing
   is broken. The full text is on the title attribute for the rare label that has to be clipped. */
.itk-f label{display:flex;align-items:baseline;gap:6px;font-size:12.2px;font-weight:600;
  color:var(--ink);flex-wrap:nowrap;white-space:nowrap;min-width:0}
.itk-f label>span:first-child{overflow:hidden;text-overflow:ellipsis;min-width:0}
.itk-req{color:var(--danger);font-style:normal;font-weight:700;flex:none}
.itk-opt{font-style:normal;font-size:10px;font-weight:600;color:var(--muted-2,#9AA6BC);
  text-transform:uppercase;letter-spacing:.3px;flex:none;margin-left:auto}
/* on a full-width field the chip would otherwise sit a long way from the words it qualifies */
.itk-f.w .itk-opt{margin-left:0}
.itk-help{font-size:11.2px;color:var(--muted);line-height:1.5}
.itk-err{display:none;font-size:11.6px;color:var(--danger);font-weight:600;line-height:1.45}
.itk-err.on{display:block}

/* A flex item will not shrink below its min-content size unless it is told to, and a <select>'s
   min-content size is its longest option. One country called "Sint Maarten (Dutch part)" was
   therefore holding the dial box open at 260px and squeezing the phone number into 24px. */
.itk-phone{display:flex;gap:7px}
.itk-dial{width:118px;flex:0 0 118px;min-width:0}
.itk-phone>input.inp{flex:1 1 auto;min-width:0}
.itk-place{display:block}

/* the progress line in the footer */
.itk-count{display:flex;align-items:center;gap:9px;font-size:12px;color:var(--muted);font-weight:600}
.itk-bar{width:92px;height:6px;border-radius:99px;background:var(--mut-bg,#EEF1F7);overflow:hidden;display:block}
.itk-bar i{display:block;height:100%;border-radius:99px;background:linear-gradient(90deg,var(--violet),var(--blue));
  transition:width .2s}
.itk-count.full{color:var(--ok,#1B9E6B)}
.itk-go{min-width:190px;justify-content:center}

.itk-banner{display:flex;gap:10px;align-items:flex-start;background:#FFF3F3;border:1px solid #F6D4D4;
  border-radius:12px;padding:12px 14px;margin-bottom:15px;font-size:13px;line-height:1.55;color:#7A1F1F}
.itk-banner>span:first-child{color:var(--danger);display:flex;flex:none;margin-top:1px}
.itk-banner-s{font-size:11.8px;font-weight:600;margin-top:3px;opacity:.85}

/* it worked */
.itk-done{text-align:center;padding:12px 10px 4px}
.itk-done-i{width:64px;height:64px;margin:0 auto 14px;border-radius:20px;display:grid;place-items:center;
  color:#fff;background:linear-gradient(135deg,#12A870,#0E8F5E)}
.itk-done h3{font-size:19px;font-family:var(--f-head);letter-spacing:-.3px}
.itk-done p{font-size:13.2px;color:var(--muted);margin-top:7px;line-height:1.6;max-width:560px;
  margin-left:auto;margin-right:auto}
.itk-cred{margin:17px auto 0;max-width:520px;border:1px solid var(--border);border-radius:13px;overflow:hidden}
.itk-cred-r{display:flex;align-items:center;gap:10px;padding:11px 13px;text-align:left}
.itk-cred-r+.itk-cred-r{border-top:1px solid var(--border-2,#EEF1F7)}
.itk-cred-l{font-size:11.6px;color:var(--muted);width:150px;flex:none;font-weight:600}
.itk-cred-r code{flex:1;font-size:13.4px;font-weight:700;letter-spacing:.2px;word-break:break-all}
.itk-done-n{font-size:11.8px;color:var(--muted);margin-top:12px;line-height:1.55}

/* the spreadsheet door */
.itk-step{display:flex;gap:13px;align-items:flex-start;border:1px solid var(--border);border-radius:14px;
  padding:14px 15px;margin-bottom:12px;background:var(--card)}
.itk-step-n{width:26px;height:26px;flex:none;border-radius:50%;display:grid;place-items:center;
  font-size:12.4px;font-weight:700;color:#fff;background:linear-gradient(135deg,var(--violet),var(--blue))}
.itk-step>div:last-child{flex:1;min-width:0}
.itk-step b{font-size:13.4px}
.itk-file{display:flex;align-items:center;gap:8px;margin-top:10px;font-size:12.2px;color:var(--muted);
  background:var(--canvas);border-radius:9px;padding:8px 11px}
.itk-file svg{width:14px;height:14px}
.itk-file b{font-size:12.4px;color:var(--ink)}
.itk-step textarea.inp{margin-top:9px}

.itk-prev{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:10px;margin:12px 0}
.itk-stat{border:1px solid var(--border);border-radius:11px;padding:11px 13px;background:var(--canvas)}
.itk-stat b{display:block;font-size:21px;font-family:var(--f-head);line-height:1.1}
.itk-stat span{font-size:11.4px;color:var(--muted)}
.itk-stat.ok b{color:var(--ok,#1B9E6B)}
.itk-stat.bad b{color:var(--danger)}
.itk-prev-m{font-size:12.6px;color:var(--ink-2);line-height:1.55;margin-bottom:10px}

.itk-tblwrap{max-height:280px;overflow:auto;border:1px solid var(--border);border-radius:11px}
.itk-tbl{width:100%;border-collapse:collapse;font-size:12.2px}
.itk-tbl th{position:sticky;top:0;background:var(--canvas);text-align:left;font-size:10.8px;
  text-transform:uppercase;letter-spacing:.5px;color:var(--muted);padding:8px 11px;
  border-bottom:1px solid var(--border);z-index:1}
.itk-tbl td{padding:9px 11px;border-bottom:1px solid var(--border-2,#EEF1F7);vertical-align:top}
.itk-tbl tr:last-child td{border-bottom:0}
.itk-tbl code{font-size:12.2px;font-weight:700}
.itk-pb{display:flex;gap:7px;line-height:1.5}
.itk-pb b{color:var(--danger);font-size:11.4px;white-space:nowrap}

@media (max-width:820px){
  .itk-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:560px){
  .itk-grid{grid-template-columns:minmax(0,1fr)}
  .itk-box .modal-foot{flex-direction:column;align-items:stretch}
  .itk-footr{justify-content:stretch}
  .itk-go{width:100%}
}

[data-theme="dark"] .itk-banner{background:#3A1D1D;border-color:#5A2A2A;color:#F3C9C9}
[data-theme="dark"] .itk-tbl th{background:var(--card-2,#141C2E)}
