/* The step list of every hub (Print, DTF, KI-Freistellen, Laser, Stick): numbered cards that fold open,
   with a short summary while closed – so every hub feels the same. Works with hub.css and app.css colours. */
.ct-side { padding: 12px 12px 28px !important; }
.step { border: 1px solid var(--line) !important; border-radius: 14px; background: var(--card, var(--panel)); margin: 0 0 10px !important;
  padding: 0 !important; display: block !important; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.step.hidden { display: none !important; }
.step.open { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)) !important; box-shadow: 0 6px 20px rgba(0, 0, 0, .07); }
.step-head { display: flex !important; align-items: center; gap: 12px; margin: 0 !important; padding: 12px 14px; cursor: pointer; user-select: none;
  font-size: 15.5px !important; font-weight: 700; line-height: 1.25; }
.step-head:hover { background: color-mix(in srgb, var(--accent-soft) 60%, transparent); }
.step-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.step-head i { font-style: normal; flex: none; width: 32px !important; height: 32px !important; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft) !important; color: var(--accent) !important; font-size: 15px !important; font-weight: 800; }
.step.open .step-head i { background: var(--accent) !important; color: #fff !important; }
.step.done:not(.open) .step-head i { background: color-mix(in srgb, #2ea043 18%, transparent) !important; color: #2ea043 !important; }
.step-sum { margin-left: auto; min-width: 0; max-width: 48%; font-size: 12.5px; font-weight: 600; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.open .step-sum { display: none; }
.step-chev { flex: none; width: 9px; height: 9px; margin: 0 4px 3px 6px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted);
  transform: rotate(45deg); transition: transform .15s; }
.step.open .step-chev { transform: rotate(225deg); margin-bottom: -4px; }
.step.open .step-sum + .step-chev, .step-sum:empty + .step-chev { margin-left: auto; }
.step[data-fixed] .step-head { cursor: default; }
.step[data-fixed] .step-head:hover { background: none; }
.step[data-fixed] .step-chev { display: none; }
.step-body { display: none; padding: 2px 16px 16px; }
.step.open .step-body { display: block; }
.ct-side .step.open .step-body { display: flex; flex-direction: column; gap: 10px; }

/* a clear question with big answer buttons */
.ask { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; background: rgba(10, 12, 16, .45); backdrop-filter: blur(3px); }
.ask-box { width: min(440px, 100%); background: var(--card, var(--panel)); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); }
.ask-box h2 { margin: 0 0 6px; font-size: 19px; }
.ask-box p { margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.ask-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ask-opts button { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; text-align: left; padding: 14px; border-radius: 12px; cursor: pointer;
  border: 1px solid var(--line); background: none; color: var(--text); font: inherit; }
.ask-opts button b { font-size: 15px; }
.ask-opts button span { font-size: 12.5px; color: var(--muted); }
.ask-opts button:hover, .ask-opts button:focus-visible { border-color: var(--accent); background: var(--accent-soft); outline: none; }
.ask-opts button.first { border-color: var(--accent); }
.ask-cancel { margin-top: 14px; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13.5px; cursor: pointer; padding: 4px 0; }
.ask-cancel:hover { color: var(--text); }

/* the upload field: impossible to miss */
.step .ct-drop, .step #drop { position: relative; border: 2px dashed color-mix(in srgb, var(--accent) 60%, var(--line)) !important; border-radius: 14px;
  background: var(--accent-soft) !important; color: var(--accent) !important; padding: 64px 14px 18px !important; text-align: center; cursor: pointer;
  font-size: 14px; line-height: 1.45; transition: background .15s, border-color .15s, transform .15s; }
.step .ct-drop::before, .step #drop::before { content: ""; position: absolute; left: 50%; top: 16px; width: 38px; height: 38px; margin-left: -19px;
  border-radius: 50%; background: var(--accent); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 35%, transparent);
  -webkit-mask: none; }
.step .ct-drop::after, .step #drop::after { content: ""; position: absolute; left: 50%; top: 25px; width: 20px; height: 20px; margin-left: -10px; background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 19V5M5 12l7-7 7 7'/%3E%3C/svg%3E") center / contain no-repeat; }
.step .ct-drop b, .step #drop b { color: var(--text) !important; font-size: 15px; }
.step .ct-drop small, .step #drop small { color: var(--muted); }
.step .ct-drop:hover, .step .ct-drop.over, .step #drop:hover, .step #drop.over { background: color-mix(in srgb, var(--accent) 22%, transparent) !important;
  border-color: var(--accent) !important; transform: translateY(-1px); }
.step #drop.has, .step .ct-drop.has { padding: 12px 14px 12px 58px !important; text-align: left; font-size: 13px; }
.step #drop.has::before, .step .ct-drop.has::before { left: 12px; top: 50%; margin: -15px 0 0; width: 30px; height: 30px; }
.step #drop.has::after, .step .ct-drop.has::after { left: 19px; top: 50%; margin: -8px 0 0; width: 16px; height: 16px; }

/* Hochrechnen: the same box in every hub */
.up-box { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.up-title { font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.up-tag { font-size: 11px; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border-radius: 999px; padding: 0 7px; }
.up-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.up-row button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 11px; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--line2, var(--line)); background: var(--card, var(--panel)); color: var(--text); font: inherit; font-weight: 700; font-size: 14px; text-align: left; }
.up-row button span { font-weight: 500; font-size: 12px; color: var(--muted); }
.up-row button:hover:not(:disabled) { border-color: var(--accent); }
.up-row button:disabled { opacity: .5; cursor: progress; }
.up-box.locked .up-row button { opacity: .55; }
.up-box .up-msg { margin: 0; font-size: 12.5px; color: var(--muted); }
.up-box .up-msg.up-err { color: var(--bad, #d9363e); }

/* finished steps show a check mark instead of their number; „Weiter ›“ closes a step and opens the next */
.step.done:not(.open) .step-head i { font-size: 0 !important; }   /* hubs that write the number into the <i> */
.step.done:not(.open) .step-head i::before { content: "✓" !important; font-size: 15px; }
.step-next { align-self: flex-end; margin-top: 6px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--accent); background: var(--accent);
  color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.step-next:hover { filter: brightness(1.08); }
.step-body:has(> .step-next) { display: none; }
.step.open .step-body:has(> .step-next) { display: flex; flex-direction: column; }
