/* /portalis/setup — Portalis OS Setup, in Portalis OS (os.css): one window
   holding a wizard after the 2000/XP installers. the stages down a deep
   teal rail on the left (XP's), then the wizard itself (2000's): welcome and
   finish with the boxed copy as a tall picture panel, the other steps under
   a white header strip with the disc on the right, an etched rule and the
   footer's Back, Next and Cancel. */

.su {
  width: min(840px, calc(100% - 32px));
  margin: 3.4em auto 2.5em;
}

.su__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); }

/* the stages: XP's rail, in ink teal with the title's gloss at its head;
   done ones ticked, the current one in halo gold */
.su__rail {
  padding: 18px 14px;
  background: var(--os-gloss) 0 0 / 100% 120px no-repeat, linear-gradient(var(--os-t1), #0b4251 70%, var(--os-t2));
  color: #cfe9ee;
  font-size: 12px;
}
.su__stages { margin: 0; padding: 0; list-style: none; }
.su__stages li {
  position: relative;
  margin: 0 0 12px;
  padding: 0 0 0 20px;
  line-height: 1.3;
  opacity: 0.6;
}
.su__stages li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 3px;
  width: 9px;
  height: 9px;
  background: #0b4251;
  border: 1px solid #7fb3bd;
}
.su__stages li.is-done { opacity: 0.85; }
.su__stages li.is-done::before { background: var(--os-t3); border-color: #fff; }
.su__stages li.is-now { opacity: 1; color: #fff; font-weight: bold; }
.su__stages li.is-now::before { background: linear-gradient(135deg, #fff3c4, var(--os-gold) 50%, var(--os-gold2)); border-color: #fff; box-shadow: 0 0 6px rgba(242, 193, 78, 0.8); }
.su__eta {
  margin: 22px 0 0;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 12px;
  line-height: 1.35;
  color: #fff;
}
.su__eta b { display: block; font: 26px/1 vtFont, monospace; color: var(--os-gold); }

/* the wizard: its page, then the footer under an etched rule */
.su__wiz { display: flex; flex-direction: column; min-height: 440px; min-width: 0; margin: 0; }
.su__page { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #fff; }
.su__foot {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  padding: 11px 12px 12px;
  border-top: 1px solid var(--os-sh);
  box-shadow: inset 0 1px 0 #fff;
}
.su__foot #su-cancel { margin-left: 10px; }
.su__foot [hidden] { display: none; }

/* the os's links, not the club's black hover */
.os-win a,
.os-win a:visited { color: var(--os-t2); }
.os-win a:hover,
.os-win a:focus-visible { background: none; color: var(--os-t1); text-decoration: underline; outline: none; }

/* welcome and finish: the box on the left, the words on white */
.su__hero { flex: 1; display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.su__pic {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 300px;
  object-fit: cover;
  object-position: 50% 30%;
  background: #0f4352;
}
.su__words { padding: 22px 26px 18px; font-size: 13px; }
.su__big {
  margin: 0 0 16px;
  padding: 0;
  background: none;
  border: 0;
  font: 30px/1.05 vtFont, monospace;
  color: var(--os-t1);
  letter-spacing: 0.01em;
  text-align: left;
  white-space: normal;
}
.su__big::before,
.su__big::after { content: none; }
.su p { margin: 0 0 0.8em; line-height: 1.45; }
.su__ed { font-weight: bold; color: var(--os-t1); }

/* the other steps: the white strip, title, subtitle, the disc */
.su__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 12px 22px;
  background: #fff;
  border-bottom: 1px solid var(--os-sh);
  box-shadow: 0 1px 0 #fff;
}
.su__head div { flex: 1; min-width: 0; }
.su__h {
  display: block;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--os-ink);
  font: bold 13px/1.3 var(--os-ui);
  letter-spacing: 0;
}
.su__sub { margin: 3px 0 0 16px !important; font-size: 12px; color: #4a5551; }
.su__disc { width: 44px; height: 44px; flex: none; }
.su__in { flex: 1; padding: 14px 22px 10px 38px; background: var(--os-face); font-size: 13px; min-width: 0; }

/* the licence: a sunken white box that has to be read to the end */
.su__eula {
  height: 15em;
  margin: 0 0 10px;
  padding: 8px 12px;
  overflow-y: auto;
  background: #fff;
  border: 1px solid;
  border-color: var(--os-sh) #fff #fff var(--os-sh);
  box-shadow: 0 0 0 1px var(--os-line);
  font-size: 12px;
}
.su__eula:focus-visible { outline: 1px solid var(--os-gold); }
.su__eula h3 { margin: 0 0 0.6em; font: bold 12px/1.3 var(--os-ui); text-decoration: none; text-align: center; color: var(--os-t1); }
.su__eula ol { margin: 0; padding-left: 1.6em; }
.su__eula li { margin: 0 0 0.6em; padding: 0; line-height: 1.4; }
.su__eula li::before { content: none; }
.su__eula li::marker { color: var(--os-t2); font-weight: bold; }
.su__eula b { color: var(--os-t1); }
.su__eula .end { margin: 1em 0 0; text-align: center; font-style: italic; color: #5d6763; }

/* the two radios: the refusal lives in a field of its own, and runs */
.su__rads { position: relative; height: 84px; }
.su__rad { position: absolute; left: 0; display: flex; align-items: center; gap: 6px; white-space: nowrap; user-select: none; }
.su__rad input { margin: 0; }
.su__rad--yes { top: 4px; }
.su__rad--no { top: 32px; transition: left 0.12s ease-out, top 0.12s ease-out; }
.su__rad.is-off { color: var(--os-sh); text-shadow: 1px 1px 0 #fff; }
.su__note { min-height: 1.4em; margin: 6px 0 0 !important; font-size: 12px; color: var(--os-t2); }

/* the product key */
.su__keyrow { margin: 10px 0 14px; }
.su__keyrow label { display: block; margin: 0 0 6px; }
.su__alt { font-size: 12px; }
.su__link {
  padding: 0;
  background: none;
  border: 0;
  font: inherit;
  color: var(--os-t2);
  text-decoration: underline;
  cursor: pointer;
}
.su__link:hover,
.su__link:focus-visible { color: var(--os-t1); outline: 1px dotted var(--os-t1); }
.su__sample { display: flex; align-items: center; gap: 12px; margin: 0 0 12px; padding: 8px 10px; background: #fff; border: 1px solid var(--os-sh); font-size: 12px; }
.su__sample i { flex: none; width: 54px; height: 34px; background: linear-gradient(90deg, var(--os-t1), var(--os-t2)); border: 1px solid #fff; box-shadow: 0 0 0 1px var(--os-line), inset 0 -6px 0 var(--os-gold); }

/* collecting information: label, field, and Setup's correction under it */
.su__form { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 12px; align-items: center; margin: 4px 0 10px; }
.su__form label { font-size: 12px; }
.su__form .os-field { width: 100%; min-width: 0; }
.su__form .os-field.is-fixed { background: #fff8de; border-color: var(--os-gold2); }
.su__fine { font-size: 11px !important; color: #5d6763; }

/* editions: a table of ticks, mostly meaningless */
.su__cmp { width: 100%; border-collapse: collapse; margin: 0 0 10px; font-size: 12px; background: #fff; table-layout: fixed; }
.su__cmp th,
.su__cmp td { padding: 4px 6px; border: 1px solid #c4d9dc; text-align: center; vertical-align: middle; }
.su__cmp th:first-child,
.su__cmp td:first-child { text-align: left; width: 34%; }
.su__cmp thead th { background: linear-gradient(#fff, #e4f3f4); color: var(--os-t1); font-weight: bold; vertical-align: top; }
.su__cmp thead small { display: block; font-weight: normal; font-style: italic; color: #5d6763; }
.su__cmp thead label { display: flex; flex-direction: column; align-items: center; gap: 3px; cursor: pointer; }
.su__cmp .is-pick { background: #fff8de; }
.su__cmp thead .is-pick { background: linear-gradient(#fff, #ffe7a0); }
.su__cmp tbody tr:nth-child(even) td { background-color: #f4fafa; }
.su__cmp tbody tr:nth-child(even) td.is-pick { background-color: #fff3cc; }
.su__cmp .y { color: var(--os-t2); font-weight: bold; }
.su__cmp .n { color: #b5452c; font-weight: bold; }
.su__cmp .q { color: #5d6763; font-size: 11px; }
.su__scroll { overflow-x: auto; }

/* installing: the teal bar in segments, as DRIVERFIX's */
.su__prog {
  height: 20px;
  margin: 6px 0;
  padding: 2px;
  background: #fff;
  border: 1px solid;
  border-color: var(--os-sh) #fff #fff var(--os-sh);
  box-shadow: 0 0 0 1px var(--os-line);
}
.su__prog i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(to right, #1fa0b8 0 8px, transparent 8px 10px); }
.su__task { margin: 0 !important; font-size: 12px; font-weight: bold; color: var(--os-t1); }
.su__file { margin: 0 !important; font: 11px/1.4 "Lucida Console", Consolas, "Courier New", monospace; color: #5d6b6a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su__left { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 2px 0 12px; font-size: 12px; }

/* the billboard: did you know, in the title's teal and gloss */
.su__bill {
  position: relative;
  display: flex;
  gap: 14px;
  min-height: 150px;
  padding: 16px 18px;
  background: var(--os-gloss) 0 0 / 100% 70px no-repeat, linear-gradient(100deg, var(--os-t1), var(--os-t2) 75%, #2a96ab);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(69, 240, 255, 0.35);
}
.su__bill canvas { width: 54px; height: 54px; flex: none; }
.su__bill div { min-width: 0; }
.su__bill .k { margin: 0 0 4px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--os-t3); }
.su__bill .t { margin: 0 0 6px; font: 26px/1.05 vtFont, monospace; color: var(--os-gold); text-shadow: 1px 1px 0 rgba(0, 20, 30, 0.6); }
.su__bill .b { margin: 0; font-size: 13px; line-height: 1.45; color: #e6f6f8; }
.su__bill.is-in div { animation: su-in 0.5s ease-out; }
@keyframes su-in { from { opacity: 0; transform: translateX(14px); } }
.su__dots { position: absolute; right: 12px; bottom: 8px; display: flex; gap: 4px; }
.su__dots i { width: 6px; height: 6px; background: rgba(255, 255, 255, 0.3); }
.su__dots i.on { background: var(--os-gold); }
.su__skip { display: flex; justify-content: flex-end; margin: 10px 0 0; }

/* the finish: the restart choice */
.su__choice { display: grid; gap: 6px; margin: 12px 0; }
.su__choice label { display: flex; align-items: center; gap: 6px; }
.su__choice .is-off { color: #8a928e; }
.su__root { padding: 8px 10px; background: #fff8de; border: 1px solid var(--os-gold2); }

.su__dlg { display: flex; gap: 12px; align-items: flex-start; }
.su__dlg canvas,
.su__dlg img { width: 36px; height: 36px; flex: none; margin-top: 10px; }

@media (max-width: 760px) {
  .su__body { grid-template-columns: 1fr; }
  /* the rail turns into one line: the stage you're on */
  .su__rail { padding: 7px 12px; background: var(--os-gloss) 0 0 / 100% 100% no-repeat, linear-gradient(90deg, var(--os-t1), #0b4251); }
  .su__stages li { display: none; margin: 0; }
  .su__stages li.is-now { display: block; }
  .su__eta { display: none; }
}

@media (max-width: 640px) {
  .su { width: 100%; margin: 2.2em 0 0; }
  .os-shadow { filter: none; }
  .su__wiz { min-height: 0; }
  /* the picture panel stacks into a band over the words */
  .su__hero { grid-template-columns: 1fr; }
  .su__pic { height: 150px; min-height: 0; object-position: 50% 26%; }
  .su__words { padding: 16px; }
  .su__big { font-size: 26px; }
  .su__in { padding: 12px 14px 10px; }
  .su__head { padding: 10px 12px 10px 14px; }
  .su__sub { margin-left: 0 !important; }
  .su__disc { width: 36px; height: 36px; }
  .su__eula { height: 13em; }
  .su__form { grid-template-columns: 1fr; gap: 2px; }
  .su__form label { margin-top: 6px; }
  .su__cmp { font-size: 11px; }
  .su__cmp th, .su__cmp td { padding: 3px 2px; }
  .su__cmp td { overflow-wrap: anywhere; }
  .su__cmp thead th { font-size: 10px; }
  .su__cmp th:first-child, .su__cmp td:first-child { width: 28%; }
  .su__bill { padding: 12px; gap: 10px; }
  .su__bill canvas { width: 38px; height: 38px; }
  .su__bill .t { font-size: 22px; }
  .su__foot { padding: 10px; }
  .su__foot .os-btn { min-width: 0; flex: 1; padding: 7px 6px; }
  .su__foot #su-cancel { margin-left: 4px; }
}

/* the dialogs at the size of a message box, not a page */
#su-modal .os-dlg { width: min(400px, 100%); }
