/* kit.css - the shared UI kit of Calidad Automation (2026-10-26): step-by-step guide, big choice cards (icon or looping preview),
   price on the create button, upload, progress page, result page, "Nästa steg" hints and job cards with the progress ring.
   Built from the Ruttvideo 360 guide and Levande bild; uses the theme tokens from app.css. Usage: app/kit.php + assets/kit.js. */
.k{ max-width:1080px; margin:0 auto 28px; }
.k [hidden]{ display:none !important; }
.k-steps{ display:flex; align-items:center; margin:6px 0 30px; list-style:none; padding:0; }
.k-steps li{ flex:1; display:flex; align-items:center; gap:10px; color:var(--text-dim); font-size:14.5px; }
.k-steps li:not(:last-child)::after{ content:''; flex:1; height:2px; background:var(--border-strong); margin:0 12px; border-radius:2px; }
.k-steps li.done:not(:last-child)::after{ background:var(--ok); }
.k-steps .n{ flex:none; width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; border:2px solid var(--border-strong); font-weight:700; font-size:15px; background:var(--bg); }
.k-steps li.on{ color:var(--text); font-weight:700; }
.k-steps li.on .n{ border-color:var(--accent); background:var(--accent); color:#0c0e12; box-shadow:0 0 0 5px rgba(196,124,43,.18); }
.k-steps li.done .n{ border-color:var(--ok); background:var(--ok); color:#0c0e12; }
.k-steps li.done{ cursor:pointer; }
.k-title{ font-family:'Cormorant Garamond',serif; font-size:40px; font-weight:600; margin:0 0 4px; line-height:1.1; }
.k-lead{ color:var(--text-dim); font-size:16.5px; margin:0 0 26px; }
.k-cards{ display:grid; gap:18px; } .k-cards.three{ grid-template-columns:repeat(3,1fr); } .k-cards.two{ grid-template-columns:repeat(2,1fr); }
.k-card{ position:relative; display:flex; flex-direction:column; align-items:flex-start; gap:10px; text-align:left; font:inherit; background:var(--bg-card); border:2px solid var(--border-strong); border-radius:18px; padding:26px 24px 22px; color:var(--text); cursor:pointer; min-height:220px; }
.k-card:hover:not(:disabled){ border-color:var(--accent-d); background:var(--bg-hover); }
.k-card:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.k-card:disabled{ opacity:.5; cursor:not-allowed; }
.k-card[aria-checked="true"]{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(196,124,43,.16); }
.k-card .ico{ width:64px; height:64px; border-radius:16px; display:flex; align-items:center; justify-content:center; background:rgba(196,124,43,.13); color:var(--accent); }
.k-card h3{ font-family:'DM Sans',sans-serif; font-size:20px; font-weight:700; margin:4px 0 0; }
.k-card p{ margin:0; color:var(--text-dim); font-size:14.5px; line-height:1.45; }
.k-card .pick{ position:absolute; top:16px; right:16px; width:28px; height:28px; border-radius:50%; border:2px solid var(--border-strong); }
.k-card[aria-checked="true"] .pick{ background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/16px no-repeat; border-color:var(--accent); }
.k-card .price{ margin-top:auto; font-size:22px; font-weight:700; color:var(--text); }
.k-card .price small{ font-size:13px; font-weight:400; color:var(--text-dim); display:block; }
.k-card .price.free{ color:var(--ok); }
.k-nav{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top:34px; padding-top:22px; border-top:1px solid var(--border); }
.k-btn{ min-height:54px; min-width:170px; font:inherit; font-size:17px; font-weight:700; border-radius:12px; padding:0 26px; display:inline-flex; align-items:center; justify-content:center; gap:10px; border:0; cursor:pointer; text-decoration:none; }
.k-btn.pri{ background:var(--accent); color:#0c0e12; } .k-btn.pri:hover:not(:disabled){ background:var(--accent-hover); }
.k-btn.sec{ background:transparent; color:var(--text); border:1px solid var(--border-strong); }
.k-btn:disabled{ opacity:.45; cursor:not-allowed; }
.k-btn.huge{ min-height:72px; min-width:320px; font-size:22px; }
.k-btn.small{ min-height:42px; min-width:0; font-size:15px; padding:0 16px; }
.k-hint{ color:var(--text-dim); font-size:14px; text-align:center; }
.k-link{ background:none; border:0; color:var(--accent); font:inherit; font-size:14.5px; cursor:pointer; padding:4px 0; text-decoration:underline; }
.k-file{ position:absolute; width:1px; height:1px; opacity:0; overflow:hidden; }
.k-msg{ color:var(--text-dim); font-size:14.5px; margin:10px 0 0; min-height:1px; } .k-msg.err{ color:var(--err); }
.k-small{ display:block; color:var(--text-dim); font-size:13px; margin-top:6px; }
.k-note{ background:var(--bg-card); border:1px solid var(--border-strong); border-radius:14px; padding:14px 18px; font-size:15.5px; }
.k-icon-btn{ background:transparent; border:1px solid transparent; color:var(--text-dim); cursor:pointer; padding:6px; border-radius:8px; min-width:36px; min-height:36px; display:inline-flex; align-items:center; justify-content:center; }
.k-icon-btn:hover{ border-color:var(--border-strong); color:var(--text); }
.k-drop{ position:relative; width:150px; min-height:112px; border:2px dashed var(--border-strong); border-radius:10px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:var(--text-dim); font-size:13.5px; text-align:center; cursor:pointer; text-transform:none; letter-spacing:0; margin:0; }
.k-drop:hover, .k-drop.hot{ border-color:var(--accent); background:rgba(196,124,43,.07); color:var(--text); }
.k-drop.wide{ width:100%; min-height:150px; font-size:15px; border-radius:16px; margin-bottom:16px; padding:16px; }
.k-drop.wide strong{ color:var(--text); font-size:18px; }
.k-url{ display:flex; gap:12px; } .k-url input{ flex:1; min-width:0; background:var(--bg-input); border:1px solid var(--border-strong); border-radius:12px; color:var(--text); font:inherit; font-size:17px; padding:14px 16px; margin:0; }
.k-seg{ display:inline-flex; border:1px solid var(--border-strong); border-radius:10px; overflow:hidden; margin-top:12px; }
.k-seg button{ padding:8px 14px; font:inherit; font-size:14px; color:var(--text-dim); background:transparent; border:0; cursor:pointer; }
.k-seg button.on{ background:var(--accent); color:#0c0e12; font-weight:700; }
.k-sec{ font-size:13px; letter-spacing:1.4px; text-transform:uppercase; color:var(--text-dim); margin:30px 0 10px; font-weight:700; }
.k-ticks{ display:grid; grid-template-columns:repeat(2,1fr); gap:10px 18px; }
.k-tk{ display:flex; align-items:flex-start; gap:14px; background:var(--bg-card); border:1px solid var(--border-strong); border-radius:14px; padding:14px 16px; }
.k-tk .box{ flex:none; width:28px; height:28px; border-radius:8px; border:2px solid var(--border-strong); background:transparent; cursor:pointer; padding:0; margin-top:1px; }
.k-tk .box[aria-checked="true"]{ background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/16px no-repeat; border-color:var(--accent); }
.k-tk .box:disabled{ opacity:.4; cursor:not-allowed; }
.k-tk.off{ opacity:.55; }
.k-tk .ic{ flex:none; color:var(--accent); margin-top:2px; }
.k-tk strong{ display:block; font-size:16px; cursor:pointer; } .k-tk > div > span{ color:var(--text-dim); font-size:13.5px; }
.k-tk select{ margin:8px 0 0; width:auto; max-width:100%; }
.k-adv{ margin-top:26px; border:1px solid var(--border-strong); border-radius:14px; padding:0 18px; background:var(--bg-card); }
.k-adv summary{ cursor:pointer; min-height:52px; display:flex; align-items:center; gap:10px; font-weight:700; color:var(--text-dim); flex-wrap:wrap; }
.k-adv summary span{ font-weight:400; font-size:13.5px; }
.k-adv[open] summary{ color:var(--text); border-bottom:1px solid var(--border); }
.k-adv-body{ padding:16px 0 18px; display:flex; flex-direction:column; gap:18px; }
.k-lab{ display:block; font-size:13px; color:var(--text-dim); margin-bottom:6px; text-transform:none; letter-spacing:0; }
.k-row{ display:flex; gap:10px; flex-wrap:wrap; } .k-row select{ width:auto; margin:0; }
.k-adv textarea{ margin-top:10px; }
.k-sum{ background:var(--bg-card); border:1px solid var(--border-strong); border-radius:18px; overflow:hidden; }
.k-sum-row{ display:flex; align-items:center; gap:18px; padding:16px 22px; border-bottom:1px solid var(--border); }
.k-sum-row .k{ width:170px; color:var(--text-dim); font-size:14.5px; flex:none; } .k-sum-row .v{ flex:1; font-size:16px; }
.k-sum-row .mini{ display:inline-flex; gap:4px; vertical-align:middle; margin-right:8px; } .k-sum-row .mini img{ width:46px; height:34px; object-fit:cover; border-radius:5px; }
.k-total{ display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px; background:rgba(196,124,43,.08); flex-wrap:wrap; }
.k-total .amt{ font-size:36px; font-weight:700; line-height:1; } .k-total .lab{ color:var(--text-dim); font-size:14.5px; margin-bottom:6px; }
.k-total .why{ max-width:440px; color:var(--text-dim); font-size:14px; }
.k-payer{ display:flex; align-items:center; gap:10px; margin-top:10px; font-size:14.5px; color:var(--text-dim); } .k-payer select{ width:auto; margin:0; }
.k-create{ text-align:center; margin-top:28px; }
.k-create p{ color:var(--text-dim); font-size:14.5px; margin:12px auto 0; max-width:620px; }
.k-rights{ display:inline-flex; align-items:center; gap:10px; font-size:15.5px; margin:0 0 16px; text-transform:none; letter-spacing:0; color:var(--text); cursor:pointer; }
.k-rights input{ width:22px; height:22px; margin:0; accent-color:var(--accent); }
.k-upl{ max-width:620px; margin:18px auto 0; }
.k-bar{ height:16px; border-radius:10px; background:var(--bg-input); border:1px solid var(--border-strong); overflow:hidden; margin:18px 0 10px; }
.k-bar i{ display:block; height:100%; width:0; border-radius:10px; background:linear-gradient(90deg, var(--accent-d), var(--accent), #e7a35a, var(--accent)); background-size:200% 100%; animation:kflow 2s linear infinite; transition:width .6s; }
@keyframes kflow{ to{ background-position:-200% 0; } }
/* progress page + result page */
.k-prog{ background:var(--bg-card); border:1px solid var(--border-strong); border-radius:20px; padding:30px 34px; }
.k-bar-meta{ display:flex; justify-content:space-between; gap:10px; color:var(--text-dim); font-size:15px; flex-wrap:wrap; } .k-bar-meta strong{ color:var(--text); font-size:20px; }
.k-psteps{ list-style:none; padding:0; margin:26px 0 0; display:grid; grid-template-columns:repeat(auto-fit,minmax(160px,1fr)); gap:12px; }
.k-psteps li{ border:1px solid var(--border-strong); border-radius:14px; padding:14px 14px 12px; color:var(--text-dim); font-size:14.5px; display:flex; flex-direction:column; gap:8px; }
.k-psteps .st{ width:30px; height:30px; border-radius:50%; border:2px solid var(--border-strong); display:flex; align-items:center; justify-content:center; font-weight:700; font-size:14px; }
.k-psteps li.done{ color:var(--text); }
.k-psteps li.done .st{ background:var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/15px no-repeat; border-color:var(--ok); color:transparent; }
.k-psteps li.now{ color:var(--text); border-color:var(--accent); box-shadow:0 0 0 4px rgba(196,124,43,.14); font-weight:700; }
.k-psteps li.now .st{ border-color:var(--accent); border-top-color:transparent; animation:kspin 1s linear infinite; color:transparent; }
@keyframes kspin{ to{ transform:rotate(360deg); } }
@media (prefers-reduced-motion: reduce){ .k-psteps li.now .st, .k-bar i{ animation:none; } }
.k-psteps small{ font-weight:400; color:var(--text-dim); font-size:12.5px; }
.k-close{ display:flex; gap:14px; align-items:center; margin-top:24px; padding:16px 20px; border-radius:14px; background:rgba(94,179,106,.09); border:1px solid rgba(94,179,106,.35); font-size:16px; color:var(--ok); }
.k-close div{ color:var(--text); } .k-close span{ color:var(--text-dim); font-size:14px; display:block; }
.k-ask{ border:2px solid #e9b44c; border-radius:18px; padding:22px 24px; background:rgba(233,180,76,.07); }
.k-ask h2{ font-family:'DM Sans',sans-serif; font-size:19px; font-weight:700; margin:0 0 8px; } .k-ask p{ margin:0 0 16px; font-size:15.5px; }
.k-ask .k-row{ gap:12px; }
.k-done-head{ display:flex; align-items:center; gap:16px; margin-bottom:6px; }
.k-done-head .ok{ flex:none; width:52px; height:52px; border-radius:50%; background:var(--ok); color:#0c0e12; display:flex; align-items:center; justify-content:center; }
.k-vids{ display:grid; grid-template-columns:2.2fr 1fr; gap:18px; align-items:start; margin-top:22px; }
.k-vids.one{ grid-template-columns:1fr; max-width:760px; } .k-vids.one .k-vid.v916{ max-width:380px; }
.k-vid{ background:var(--bg-card); border:1px solid var(--border-strong); border-radius:18px; padding:14px; }
.k-vid video{ display:block; width:100%; border-radius:12px; background:#000; }
.k-vid.v916 video{ aspect-ratio:9/16; object-fit:cover; } .k-vid.v169 video{ aspect-ratio:16/9; } .k-vid.v360 video{ aspect-ratio:2/1; }
.k-vid h3{ font-family:'DM Sans',sans-serif; font-size:16px; font-weight:700; margin:12px 4px 2px; } .k-vid .meta{ color:var(--text-dim); font-size:13px; margin:0 4px 10px; }
.k-vid .k-btn{ width:100%; min-height:48px; font-size:15.5px; min-width:0; }
.k-copy{ display:flex; } .k-copy input{ flex:1; min-width:0; background:var(--bg-input); border:1px solid var(--border-strong); border-right:0; border-radius:10px 0 0 10px; padding:11px 14px; font:14px 'JetBrains Mono',monospace; color:var(--text); margin:0; }
.k-copy button{ border-radius:0 10px 10px 0; min-height:44px; padding:0 18px; background:var(--accent); color:#0c0e12; border:0; font:inherit; font-weight:700; cursor:pointer; display:inline-flex; align-items:center; gap:6px; white-space:nowrap; }
.k-notes{ margin-top:18px; background:var(--bg-card); border:1px solid var(--border-strong); border-radius:18px; padding:16px 20px; }
.k-notes h3{ font-family:'DM Sans',sans-serif; font-size:16px; font-weight:700; margin:0 0 8px; }
.k-notes ul{ margin:0; padding:0; list-style:none; display:flex; flex-direction:column; gap:8px; }
.k-notes li{ display:flex; gap:10px; font-size:14.5px; } .k-notes li .i{ flex:none; width:22px; height:22px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; }
.k-notes li .i.info{ background:#3a4150; color:#cfd6e4; } .k-notes li .i.flag{ background:#e9b44c; color:#000; }
.k-costline{ display:flex; justify-content:space-between; color:var(--text-dim); font-size:14.5px; margin-top:12px; padding-top:12px; border-top:1px solid var(--border); } .k-costline strong{ color:var(--text); }
.k-adv ul{ margin:0; padding-left:18px; font-size:14.5px; line-height:1.6; }
@media (max-width:760px){
  .k-title{ font-size:31px; } .k-lead{ font-size:15px; }
  .k-steps li .t{ display:none; } .k-steps li.on .t{ display:inline; font-size:14px; } .k-steps li.on{ flex:2; } .k-steps li:not(:last-child)::after{ margin:0 6px; }
  .k-steps .n{ width:32px; height:32px; font-size:14px; }
  .k-cards.three, .k-cards.two, .k-ticks, .k-vids{ grid-template-columns:1fr; }
  .k-card{ min-height:0; padding:18px; flex-direction:row; flex-wrap:wrap; align-items:center; }
  .k-card .ico{ width:52px; height:52px; } .k-card h3{ flex:1; font-size:18px; margin:0; padding-right:30px; } .k-card p, .k-card .price{ flex-basis:100%; }
  .k-nav .k-btn{ min-width:0; flex:1; } .k-hint{ display:none; }
  .k-btn.huge{ min-width:0; width:100%; }
  .k-sum-row{ flex-wrap:wrap; gap:4px 12px; } .k-sum-row .k{ width:100%; }
  .k-url{ flex-direction:column; } .k-prog{ padding:20px; }
}

/* "Nästa steg": one calm line telling a beginner what happens now and what to do next */
.k-next{ display:flex; gap:12px; align-items:flex-start; margin-top:18px; padding:14px 18px; border-radius:14px; background:rgba(196,124,43,.08); border:1px solid rgba(196,124,43,.3); font-size:15px; }
.k-next .ar{ flex:none; width:28px; height:28px; border-radius:50%; background:var(--accent); color:#0c0e12; display:flex; align-items:center; justify-content:center; font-weight:700; }
.k-next strong{ display:block; font-size:15.5px; } .k-next span{ color:var(--text-dim); font-size:14px; }
/* the chosen file (step 1 after choosing) and the summary card on the last step */
.k-pickarea{ display:flex; flex-direction:column; gap:14px; align-items:stretch; }
.k-cam{ align-self:center; position:relative; }
/* "Ta ett foto med mobilen" only on phones and tablets (touch screen without a mouse); a computer keeps choose file / drag and drop */
@media (hover:hover) and (pointer:fine){ .k-cam{ display:none !important; } }
label.k-btn{ text-transform:none; letter-spacing:0; margin:0; }   /* a file button is a <label>; app.css would print it in capitals */
.k-chosen{ display:flex; gap:20px; align-items:center; background:var(--bg-card); border:1px solid var(--border-strong); border-radius:18px; padding:16px; }
.k-chosen img{ width:min(420px, 55%); max-height:320px; object-fit:contain; border-radius:12px; background:#000; }
.k-chosen strong{ display:block; font-size:17px; word-break:break-all; } .k-chosen span{ display:block; color:var(--text-dim); font-size:14px; margin:4px 0 8px; }
.k-sumcard{ display:flex; gap:18px; align-items:center; background:var(--bg-card); border:1px solid var(--border-strong); border-radius:16px; padding:14px; }
.k-sumcard img{ width:180px; height:120px; object-fit:cover; border-radius:10px; } .k-sumcard strong{ display:block; font-size:22px; margin:2px 0 4px; }
.k-create .k-payer{ justify-content:center; margin:0 0 14px; } .k-create .k-rights{ display:flex; justify-content:center; margin:0 auto 16px; }
.k-title:focus{ outline:none; }   /* focus moves here for screen readers when the step changes */
/* choice cards with a looping preview (like GIFs); click = large preview, "Välj" in the preview chooses */
.k-pgrid{ display:grid; grid-template-columns:repeat(4, 1fr); gap:14px; }
.k-pcard{ position:relative; display:flex; flex-direction:column; text-align:left; font:inherit; color:var(--text); background:var(--bg-card); border:2px solid var(--border-strong);
  border-radius:14px; padding:0; overflow:hidden; cursor:pointer; }
.k-pcard:hover{ border-color:var(--accent-d); } .k-pcard:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.k-pcard.on{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(196,124,43,.16); }
.k-media{ display:block; aspect-ratio:16/9; background:#000; overflow:hidden; }
.k-media video, .k-media img{ width:100%; height:100%; object-fit:cover; display:block; }
.k-noprev{ display:flex; align-items:center; justify-content:center; height:100%; color:var(--text-dim); font-size:14px; }
.k-pcard-text{ display:block; padding:9px 11px 11px; } .k-pcard-text strong{ display:block; font-size:15px; margin-bottom:1px; }
.k-pcard-text span{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; color:var(--text-dim); font-size:12.5px; line-height:1.35; min-height:2.7em; }
.k-pcard-text em{ display:block; font-style:normal; color:var(--accent); font-weight:700; margin-top:4px; font-size:12.5px; }
.k-pcard .pick{ position:absolute; top:8px; right:8px; width:24px; height:24px; border-radius:50%; border:2px solid #fff9; background:#0006; }
.k-pcard.on .pick{ background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/16px no-repeat; border-color:var(--accent); }
.k-modal[hidden]{ display:none !important; }
.k-modal{ position:fixed; inset:0; z-index:50; background:rgba(0,0,0,.78); display:flex; align-items:center; justify-content:center; padding:20px; }
.k-modal-box{ position:relative; width:min(1100px, 100%); max-height:100%; overflow:auto; background:var(--bg-card); border:1px solid var(--border-strong); border-radius:20px; }
.k-modal-box video{ display:block; width:100%; max-height:70vh; background:#000; object-fit:contain; }
.k-modal-text{ display:flex; flex-wrap:wrap; align-items:center; gap:10px 20px; padding:18px 22px 22px; }
.k-modal-text h2{ font-family:'DM Sans',sans-serif; font-size:22px; font-weight:700; margin:0; flex-basis:100%; } .k-modal-text p{ margin:0; color:var(--text-dim); flex:1; min-width:240px; font-size:16px; }
.k-x{ position:absolute; top:10px; right:10px; z-index:2; width:44px; height:44px; border-radius:50%; border:0; background:#000a; color:#fff; font-size:26px; cursor:pointer; line-height:44px; }
/* job cards with the progress ring, like a download on a phone: I kö / working (% + step) / done (check mark, then the thumbnail
   that plays on hover) / failed (red ring, short reason, "Försök igen") - driven by Kit.jobs() */
.k-jobs{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:14px; }
.k-job{ display:flex; flex-direction:column; border:1px solid var(--border-strong); border-radius:12px; overflow:hidden; background:var(--bg-input); }
.k-job:hover{ border-color:var(--accent-d); }
.k-job-media{ position:relative; display:block; aspect-ratio:4/3; background:#000; overflow:hidden; }
.k-job-img, .k-job-vid{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; display:block; }
.k-job-vid{ opacity:0; transition:opacity .25s; } .k-job-media:hover .k-job-vid{ opacity:1; }
.k-job:not(.s-done) .k-job-img{ filter:brightness(.42) saturate(.6); transition:filter .5s; }
.k-job-ph{ background:#16191f url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='M10 9.5v5l4-2.5z'/%3E%3C/svg%3E") center/42px no-repeat; }
.k-job:not(.s-done) .k-job-ph{ filter:none; }
.k-job-text{ display:block; text-decoration:none; color:var(--text); padding:8px 10px 10px; }
.k-job-text strong{ display:block; font-size:14.5px; } .k-job-line{ display:block; color:var(--text-dim); font-size:12.5px; }
.k-job.s-failed .k-job-line, .k-job.s-stuck .k-job-line{ color:var(--err); }
.k-job-fail:empty{ display:none; } .k-job-fail{ padding:0 10px 10px; } .k-job-fail p{ margin:0 0 8px; font-size:12px; color:var(--text-dim); line-height:1.35; }
.k-retry{ font:inherit; font-size:13px; font-weight:700; padding:7px 12px; border-radius:8px; border:0; background:var(--accent); color:#0c0e12; cursor:pointer; }
.k-ring{ position:absolute; inset:0; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:4px; color:#fff; }
.k-job.s-done .k-ring, .k-job.s-removed .k-ring, .k-job.s-cancelled .k-ring, .k-job.s-draft .k-ring{ display:none; }
.k-ring-svg{ width:84px; height:84px; transform:rotate(-90deg); overflow:visible; }
.k-ring-track{ fill:none; stroke:rgba(255,255,255,.22); stroke-width:6; }
.k-ring-fill{ fill:none; stroke:var(--accent); stroke-width:6; stroke-linecap:round; transition:stroke-dashoffset .35s linear, stroke .3s; }
.k-job.s-queue .k-ring-track{ stroke-dasharray:4 7; animation:kringq 6s linear infinite; transform-origin:40px 40px; }
@keyframes kringq{ to{ transform:rotate(360deg); } }
.k-job.s-failed .k-ring-fill, .k-job.s-stuck .k-ring-fill{ stroke:var(--err); }
.k-ring-pct{ position:absolute; top:50%; left:50%; transform:translate(-50%, -78%); font-weight:700; font-size:17px; }
.k-ring-step{ position:absolute; top:50%; left:0; right:0; transform:translateY(52px); text-align:center; font-size:12px; color:#e9e4dc; padding:0 6px; }
.k-job.s-queue .k-ring-pct{ display:none; }
.k-job.s-failed .k-ring-pct, .k-job.s-stuck .k-ring-pct{ color:var(--err); font-size:24px; }
.k-ring-check{ fill:none; stroke:#fff; stroke-width:6; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:44; stroke-dashoffset:44; transform:rotate(90deg); transform-origin:40px 40px; }
.k-job.s-checked .k-ring-fill{ stroke:var(--ok); }
.k-job.s-checked .k-ring-check{ animation:kringc .45s ease-out forwards; }
.k-job.s-checked .k-ring-pct, .k-job.s-checked .k-ring-step{ opacity:0; transition:opacity .2s; }
@keyframes kringc{ to{ stroke-dashoffset:0; } }
@media (prefers-reduced-motion: reduce){ .k-ring-fill{ transition:none; } .k-job.s-queue .k-ring-track{ animation:none; } .k-job.s-checked .k-ring-check{ animation:none; stroke-dashoffset:0; } }
@media (max-width:760px){
  .k-pgrid{ grid-template-columns:repeat(2, 1fr); gap:10px; }
  .k-chosen{ flex-direction:column; align-items:stretch; } .k-chosen img{ width:100%; }
  .k-sumcard img{ width:110px; height:80px; }
  .k-modal{ padding:0; } .k-modal-box{ border-radius:0; height:100%; }
}
@media (min-width:761px) and (max-width:1000px){ .k-pgrid{ grid-template-columns:repeat(3, 1fr); } }
/* "Hämta från webbplats" (kitSources + kitWebPick, driven by Kit.webPick) */
.k-sources{ display:grid; grid-template-columns:1.6fr 1fr; gap:14px; align-items:stretch; }
.k-sources .k-drop.wide{ margin:0; min-height:180px; }
.k-src{ display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-align:center; font:inherit; color:var(--text-dim); background:var(--bg-card);
  border:2px solid var(--border-strong); border-radius:16px; padding:16px; cursor:pointer; min-height:180px; }
.k-src:hover{ border-color:var(--accent); color:var(--text); } .k-src svg{ color:var(--accent); } .k-src strong{ color:var(--text); font-size:18px; } .k-src span{ font-size:14px; }
.k-wp{ background:var(--bg-card); border:1px solid var(--border-strong); border-radius:18px; padding:18px 20px; }
.k-wp-head{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:12px; } .k-wp-head strong{ font-size:18px; }
.k-wp .k-url{ margin:0; } .k-wp .k-small{ margin:8px 0 0; }
.k-found-head{ display:flex; flex-wrap:wrap; align-items:baseline; gap:6px 10px; margin:18px 0 10px; } .k-found-head strong{ font-size:17px; } .k-found-head span{ color:var(--text-dim); font-size:14px; }
.k-found{ display:grid; grid-template-columns:repeat(auto-fill, minmax(170px, 1fr)); gap:12px; max-height:560px; overflow:auto; }
.k-found button{ position:relative; display:block; padding:0; border:2px solid transparent; border-radius:12px; background:transparent; cursor:pointer; text-align:left; color:var(--text); font:inherit; }
.k-found button:hover{ border-color:var(--accent-d); } .k-found button[aria-pressed="true"]{ border-color:var(--accent); }
.k-found button:disabled{ opacity:.5; cursor:wait; }
.k-found img{ width:100%; height:130px; object-fit:cover; border-radius:10px; display:block; background:#0004; }
.k-found .tick{ position:absolute; top:8px; left:8px; width:26px; height:26px; border-radius:7px; background:#000a; border:2px solid #fff8; }
.k-found button[aria-pressed="true"] .tick{ background:var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230c0e12' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 4.5 4.5L19 7'/%3E%3C/svg%3E") center/15px no-repeat; border-color:var(--accent); }
.k-found .cap{ display:block; font-size:12.5px; color:var(--text-dim); margin:4px 2px 0; }
.k-found-add{ display:flex; gap:12px; align-items:center; margin-top:14px; }
.k-found-more{ display:flex; justify-content:center; margin-top:12px; } .k-wp [hidden]{ display:none !important; }
.k-wp .k-upl{ text-align:center; } .k-wp [data-k="wp-stop"]{ margin-top:10px; }
@media (max-width:760px){ .k-sources{ grid-template-columns:1fr; } .k-src, .k-sources .k-drop.wide{ min-height:130px; } .k-found{ grid-template-columns:repeat(2, 1fr); } }

/* the music chooser (kitMusic + Kit.music, 2026-10-28): compact genre cards, a click chooses and plays the 15 s preview */
.k-music{ display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:12px; margin-top:12px; }
.k-mcard{ position:relative; display:flex; align-items:center; gap:12px; background:var(--bg-card); border:2px solid var(--border-strong); border-radius:14px; padding:12px 14px 14px; cursor:pointer; color:var(--text); overflow:hidden; min-width:0; }
.k-mcard:hover{ border-color:var(--accent-d); background:var(--bg-hover); }
.k-mcard:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; }
.k-mcard[aria-checked="true"]{ border-color:var(--accent); box-shadow:0 0 0 4px rgba(196,124,43,.16); }
.k-mcard .t{ display:flex; flex-direction:column; min-width:0; flex:1; }
.k-mcard .t strong{ font-size:15.5px; line-height:1.25; overflow-wrap:break-word; hyphens:auto; }
.k-mcard .t small{ color:var(--text-dim); font-size:13px; }
.k-mcard .pr, .k-mcard .tw{ white-space:nowrap; } .k-mcard .pr:not(:empty)::before{ content:" · "; }
.k-mcard .bar{ position:absolute; left:0; right:0; bottom:0; height:3px; }
.k-mcard .bar i{ display:block; height:100%; width:0; background:var(--accent); transition:width .25s linear; }
.k-play{ flex:none; width:40px; height:40px; border-radius:50%; border:0; background:rgba(196,124,43,.15); color:var(--accent); display:flex; align-items:center; justify-content:center; cursor:pointer; padding:0; }
.k-play i{ width:0; height:0; border-style:solid; border-width:8px 0 8px 13px; border-color:transparent transparent transparent currentColor; margin-left:3px; }
.k-mcard.playing .k-play{ background:var(--accent); color:#0c0e12; }
.k-mcard.playing .k-play i{ width:12px; height:14px; border:0; margin:0; border-left:4px solid currentColor; border-right:4px solid currentColor; }
.k-play.off{ background:transparent; color:var(--text-dim); cursor:default; }
.k-mcard.none .k-play.off i{ width:16px; height:16px; border:2px solid currentColor; border-radius:50%; margin:0; position:relative; }
.k-mcard.none .k-play.off i::after{ content:""; position:absolute; left:50%; top:-2px; bottom:-2px; width:2px; background:currentColor; transform:translateX(-50%) rotate(45deg); }
@media (max-width:640px){ .k-music{ grid-template-columns:1fr; } }
@media (prefers-reduced-motion: reduce){ .k-mcard .bar i{ transition:none; } }

/* the music box of a result page (2026-10-28): the current track, Ny låt / Byt musik (kitMusic), the earlier tracks */
.k-mbox{ margin:22px 0; padding:18px 20px; border:1px solid var(--border-strong); border-radius:16px; background:var(--bg-card); }
.k-mbox h2{ margin:0 0 12px; font-size:20px; } .k-mbox h3{ margin:18px 0 8px; font-size:16px; }
.k-mrow, .k-mhist li{ display:flex; align-items:center; gap:14px; flex-wrap:wrap; }
.k-mrow > div, .k-mhist li > div{ display:flex; flex-direction:column; min-width:150px; flex:1; }
.k-mbox audio{ height:36px; max-width:100%; }
.k-mbox .k-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:12px; } .k-mbox form{ margin:0; }
.k-mhist{ list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:10px; }
.k-mhist li{ padding:10px 12px; border:1px solid var(--border); border-radius:12px; }

/* "Tidigare skapade" - the drawer for a tool's earlier work (kitDrawer() in app/kit.php, Kit.drawers() in kit.js, 2026-11-02):
   closed it is one calm row with the title and the count; opened, the list loads a page at a time */
.k-drawer{ padding:0; overflow:hidden; }
.k-drawer > summary{ list-style:none; display:flex; align-items:center; gap:8px; cursor:pointer; padding:18px 22px; font:600 19px/1.3 'DM Sans', sans-serif; color:var(--text); user-select:none; }
.k-drawer > summary::-webkit-details-marker{ display:none; }
.k-drawer > summary:hover{ background:var(--bg-hover); }
.k-drawer > summary:focus-visible{ outline:2px solid var(--accent); outline-offset:-2px; border-radius:inherit; }
.k-drawer-n{ color:var(--text-dim); font-weight:500; }
.k-drawer-chev{ margin-left:auto; width:10px; height:10px; border-right:2px solid var(--text-dim); border-bottom:2px solid var(--text-dim); transform:rotate(45deg); transition:transform .2s ease; margin-top:-4px; }
.k-drawer[open] > summary .k-drawer-chev{ transform:rotate(225deg); margin-top:4px; }
.k-drawer-body{ padding:4px 22px 20px; border-top:1px solid var(--border-strong); }
.k-drawer-list{ margin-top:16px; }
.k-drawer-list:empty{ margin-top:0; }
.k-drawer-wait{ display:flex; align-items:center; gap:10px; color:var(--text-dim); margin:16px 0 0; }
.k-drawer-wait i{ width:16px; height:16px; border-radius:50%; border:2px solid var(--border-strong); border-top-color:var(--accent); animation:k-drawer-spin .8s linear infinite; }
@keyframes k-drawer-spin{ to{ transform:rotate(360deg); } }
.k-drawer-empty, .k-drawer-err{ margin:16px 0 0; }
.k-drawer-foot{ margin:16px 0 0; } .k-drawer-foot:has(.k-drawer-more[hidden]){ display:none; }
@media (prefers-reduced-motion: reduce){ .k-drawer-chev{ transition:none; } .k-drawer-wait i{ animation-duration:2s; } }
@media (max-width:680px){ .k-drawer > summary{ padding:16px; font-size:17px; } .k-drawer-body{ padding:4px 16px 16px; } }
/* rows in a drawer that mixes kinds of earlier work (app/earlier.php): picture or icon, title and date, state */
.k-erows, .k-drawer-list:has(> .k-erow){ display:grid; gap:8px; }
.k-erow{ display:grid; grid-template-columns:52px 1fr auto; gap:14px; align-items:center; padding:10px 12px; border:1px solid var(--border-strong); border-radius:12px; background:var(--bg-input); color:var(--text); text-decoration:none; }
.k-erow:hover{ border-color:var(--accent-d); background:var(--bg-hover); }
.k-erow-pic img, .k-erow-ico{ width:52px; height:40px; border-radius:8px; object-fit:cover; display:flex; align-items:center; justify-content:center; background:rgba(196,124,43,.12); color:var(--accent); }
.k-erow-ico.txt{ background:rgba(108,155,210,.14); color:#8fb6e3; }
.k-erow-t{ display:flex; flex-direction:column; gap:2px; min-width:0; } .k-erow-t strong{ overflow-wrap:anywhere; } .k-erow-t small{ color:var(--text-dim); font-size:13px; }
.k-erow-st{ font-size:12.5px; font-weight:700; padding:3px 10px; border-radius:999px; white-space:nowrap; background:var(--bg-card); color:var(--text-dim); }
.k-erow-st.ok{ color:#7cc48a; background:rgba(124,196,138,.12); } .k-erow-st.err{ color:#e07a6e; background:rgba(224,122,110,.12); } .k-erow-st.warn{ color:#d9a441; background:rgba(217,164,65,.12); }
@media (max-width:520px){ .k-erow{ grid-template-columns:44px 1fr; } .k-erow-st{ grid-column:2; justify-self:start; } .k-erow-pic img, .k-erow-ico{ width:44px; height:36px; } }
.k-drawer [hidden]{ display:none !important; }   /* the loading line and the button are display:flex/inline: [hidden] must still win */
.k-drawer-table{ margin-top:12px; } .k-drawer-body > .table-wrap{ margin-top:12px; }   /* a drawer whose items are table rows (kitDrawer 'head') */


/* "Lägg i schemat" (2026-11-02): the action slot of a finished job card (Kit.jobs) and the row under a result page's files
   (slButton() in app/schedule-link.php) - to the profile's Publiceringsschema, or "Anslut sociala medier" when nothing is connected */
.k-job-act:empty, .k-job:not(.s-done) .k-job-act{ display:none; }
.k-job-act{ padding:0 10px 10px; margin-top:-4px; }
.k-job-actlink{ display:inline-flex; align-items:center; gap:6px; font-size:12.5px; font-weight:700; color:var(--accent); text-decoration:none; line-height:1.3; }
.k-job-actlink svg{ flex:none; }
.k-job-actlink:hover{ text-decoration:underline; } .k-job-actlink:focus-visible{ outline:2px solid var(--accent); outline-offset:2px; border-radius:4px; }
.k-job-actlink.is-in{ color:var(--ok); }
.k-job-actlink.is-connect{ color:var(--text-dim); font-weight:600; text-decoration:underline; }
.k-sched{ display:flex; align-items:center; gap:10px 14px; flex-wrap:wrap; margin:18px 0 4px; }
.k-sched .k-btn.is-in{ border-color:rgba(94,179,106,.55); }
.k-sched .k-btn.is-in svg{ color:var(--ok); }
.k-sched-why{ color:var(--text-dim); font-size:13.5px; }
.k-sched .k-link + .k-sched-why{ margin-left:-8px; }
.bl-pacts .k-btn.bl-in{ border-color:rgba(94,179,106,.55); color:var(--ok); }   /* a published blog post already in the schedule (app/blog-view.php) */
