/* tools/shell.css · a tool page inside the app.
   The rail (krail.js, krail.css) stands where the marketing menu was, so a tool is one tap from
   Send, Request, Albums, Transfers and every other tool. The tool comes first: the name, the place
   to drop files, then the words. One file for every tool page, loaded last. */

/* the tool first · the long paragraph moves under the thing it describes */
.kapp-hero{display:flex; flex-direction:column;}
.kapp-hero > .ws-k{order:0;}
.kapp-hero > .ws-h1{order:1;}
.kapp-hero > .drop{order:2;}
.kapp-hero > .kapp-proof{order:3;}
.kapp-hero > .kapp-lede{order:4; margin-top:26px; max-width:68ch; font-size:14.5px; color:rgba(255,255,255,.55);}
.kapp-hero > .drop, .ws.kapp-page .kapp-hero > .drop{margin:22px 0 0; width:100%; max-width:none; box-sizing:border-box;}

/* the marketing menu is not this page's menu */
.topnav [data-m="hide"]{display:none !important;}
.topnav a[href="/#founding"]{height:auto !important; border:0 !important; box-shadow:none !important; padding:0 !important; background:none !important; color:rgba(255,255,255,.55) !important; font-weight:500 !important;}
.topnav a[href="/#founding"]:hover{color:#fff !important;}

@media (min-width:1024px){
  html body{padding-left:var(--krail-w, 132px);}
  /* the rail carries the mark · the bar says which tool this is */
  .topnav > a[aria-label="Kepla home"]{display:none !important;}
  .topnav .navtag-bar{display:none;}
  .topnav{height:56px !important;}
  /* square on a desk, as the rest of the app is */
  .ws .drop, .ws .drop .ico, .ws .btn-w, .ws .btn-o, .ws .btn-g, .ws .seg, .ws .seg button, .ws .fmts span{border-radius:0 !important;}
}
@media (max-width:1023px){
  /* room for the tab bar */
  html body{padding-bottom:var(--krail-tab);}
  .topnav a[href="/#founding"]{display:none !important;}
}

/* ---- every tool, in place (tools/rail.js) · opened from All tools in the rail ---- */
.ktall{position:fixed; z-index:69; top:0; bottom:0; left:var(--krail-w, 132px); width:340px; max-width:calc(100vw - var(--krail-w, 132px)); box-sizing:border-box; display:flex; flex-direction:column; background:#141417; border-right:1px solid rgba(255,255,255,.1); color:#F2F2F3; font-family:-apple-system,BlinkMacSystemFont,'SF Pro','Helvetica Neue',sans-serif;}
.ktall[hidden]{display:none;}
.ktall-h{display:flex; align-items:center; justify-content:space-between; padding:22px 22px 0;}
.ktall-h b{font-size:17px; font-weight:600; letter-spacing:-.2px;}
.ktall-p{margin:0; padding:6px 22px 0; color:rgba(255,255,255,.55); font-size:13px; line-height:1.4;}   /* the one promise, said once, the same on every tool */
.ktall-x{width:36px; height:36px; margin-right:-8px; display:grid; place-items:center; background:none; border:0; color:rgba(255,255,255,.6); cursor:pointer;}
.ktall-x:hover{color:#fff;}
.ktall-x svg{width:16px; height:16px;}
/* the tool pages style every search box their own way · these say !important so this one is the same on all of them */
.ktall input.ktall-q{flex:none; display:block; width:auto; margin:16px 22px 0 !important; height:42px !important; box-sizing:border-box !important; padding:0 14px !important; border:1px solid rgba(255,255,255,.18) !important; border-radius:0 !important; background:rgba(255,255,255,.04) !important; color:#fff !important; font:inherit; font-size:14px !important; outline:none !important; box-shadow:none !important; -webkit-appearance:none; appearance:none;}
.ktall-q::placeholder{color:rgba(255,255,255,.4);}
.ktall input.ktall-q:focus{border-color:rgba(255,255,255,.5) !important;}
.ktall-q::-webkit-search-cancel-button{-webkit-appearance:none;}
.ktall-l{flex:1 1 auto; min-height:0; overflow-y:auto; padding:6px 0 12px; -webkit-overflow-scrolling:touch;}
.ktall-k{padding:18px 22px 6px; color:rgba(255,255,255,.45); font-size:12px; font-weight:500;}
.ktall-r{display:block; padding:10px 22px; color:rgba(255,255,255,.86); font-size:14.5px; text-decoration:none;}
.ktall-r:hover, .ktall-r:focus-visible{background:rgba(255,255,255,.06); color:#fff; outline:none;}
.ktall-r.on{color:#fff; font-weight:600; box-shadow:inset 2px 0 0 #DFFF3F;}
.ktall-r[hidden], .ktall-g[hidden], .ktall-none[hidden]{display:none;}
.ktall-none{padding:22px; color:rgba(255,255,255,.5); font-size:14px;}
.ktall-f{flex:none; padding:14px 22px; border-top:1px solid rgba(255,255,255,.08); color:rgba(255,255,255,.6); font-size:13px; text-decoration:none;}
.ktall-f:hover{color:#fff;}
@media (max-width:1023px){
  /* a full screen above the tab bar, as the transfer's own panels are */
  .ktall{left:0; right:0; width:auto; max-width:none; bottom:var(--krail-tab); border-right:0; background:#0E0E10; padding-top:env(safe-area-inset-top);}
  .ktall-h b{font-size:28px; font-weight:700; letter-spacing:-.6px;}
  .ktall input.ktall-q{height:48px !important; font-size:16px !important; border:0 !important; border-radius:12px !important; background:#1C1C1F !important;}
  .ktall-r{padding:14px 22px; font-size:16px;}
  .ktall-k{font-size:13px;}
}

/* the older tool pages wear a second header (.kh) · the same three things are done to it */
.kh a.kh-l{display:none !important;}
.kh .kh-cta{height:auto !important; background:none !important; border:0 !important; box-shadow:none !important; border-radius:0 !important; padding:0 !important; color:rgba(255,255,255,.55) !important; font-weight:500 !important;}
.kh .kh-cta:hover{color:#fff !important;}
@media (min-width:1024px){
  .kh .kh-logo{display:none !important;}
  .kh .navtag-bar{display:none;}
  .kh{height:56px !important;}
}
@media (max-width:1023px){ .kh .kh-cta{display:none !important;} }
/* inside the transfer (tool-handoff.js marks the page) there is already a rail · this one stays out */
html.kembed .krail, html.kembed .ktall{display:none !important;}
html.kembed body{padding-left:0 !important; padding-bottom:0 !important;}
/* the older pages' footer breaks out to the full window · with the rail beside it that ran off the right edge */
@media (min-width:1024px){ footer.kf, .ws-head.bhead, .bhead{width:auto !important; max-width:none !important; margin-left:0 !important; margin-right:0 !important; left:auto !important; transform:none !important;} }

/* square on a desk, on every tool · the things a hand presses or types into, and the boxes they sit in.
   Round things that are round on purpose (a radio, a checkbox, a slider, a spinner) are left alone. */
@media (min-width:1024px){
  body > :not(.krail):not(.ktall) :is(button, a.btn-w, a.btn-o, a.cta, .copybtn, input:not([type=radio]):not([type=checkbox]):not([type=range]), select, textarea, .drop, .seg, .calc-in, .calc-out, .calc, .calc-card, .tx-g):not(.kskip){border-radius:0 !important;}
}

/* a phone · some tools pin a bar to the bottom of the screen (the result of a calculator, Convert).
   The tab bar is there now, so each of them stands on top of it instead of on top of each other.
   A tool that takes the whole screen once it has files covers the tab bar too, and is left alone.
   Not inside the transfer, where there is no tab bar of ours. */
@media (max-width:1023px){
  html:not(.kembed) .calc-out{bottom:var(--krail-tab) !important; padding-bottom:12px !important;}
  html:not(.kembed) .ws-go, html:not(.kembed) .ws-done{bottom:var(--krail-tab) !important; padding-bottom:10px !important;}
}

/* ---- one width for every tool, on a desk ----
   Each tool page set its own: the converters ran from the left edge to the right, the calculators and
   the border tool sat in a centred column, Sign a PDF was a centred poster. Every one of them now
   starts where the header's tool name starts and ends at the same right edge. */
@media (min-width:1024px){
  /* the header's tool name starts on the same line as the content under it */
  .kh{max-width:none !important; padding:0 56px !important;}
  .topnav .navtag, .kh .navtag{margin-left:0 !important;}
  /* the older pages are an article column (.wrap) with the tool breaking out of it on both sides ·
     the column starts at the left edge now, and the tool runs from there to the right edge */
  .wrap{margin-left:32px !important; margin-right:auto !important;}
  .wrap > .ws-head, .wrap > .calc, .wrap > .ws-head.bhead{width:auto !important; margin-left:0 !important; margin-right:max(-568px, calc(1004px - 100vw)) !important; padding-left:0 !important; padding-right:0 !important;}
  .bhead-in{max-width:none !important; padding:0 !important;}
  .wrap > .ws-head > p, .wrap > .ws-head .ws-sub{max-width:72ch;}
  /* Sign a PDF · the same head as every other tool: the name, small, on the left, the place to drop under it */
  .sg-hero{max-width:none !important; margin:0 !important; padding:34px 0 24px !important; text-align:left !important;}
  .sg-h1{font-size:28px !important; font-weight:600 !important; letter-spacing:-.8px !important; line-height:1.08 !important;}
  .sg-lede{margin:12px 0 0 !important; max-width:62ch !important; font-size:16px !important;}
  .sg-drop{max-width:640px !important; margin:22px 0 0 !important; border-radius:0 !important;}
  .sg-drop *, .sg-btn, .sg-dl{border-radius:0 !important;}
  .sg-hero > ul, .sg-hero .sg-ticks, .sg-hero > div:not(.sg-drop){justify-content:flex-start !important; margin-left:0 !important;}
}

/* ---- the tools home: find a tool first ----
   The box to find a tool and the list were two screens down, under a headline, a paragraph and two
   cards. They lead now; the paragraph and the cards follow the list. */
section.ws.tx{display:flex; flex-direction:column;}
section.ws.tx > .tx-open{display:contents;}
section.ws.tx .tx-eyebrow{order:0;}
section.ws.tx .tx-h1{order:1; font-size:44px !important; letter-spacing:-1.6px !important; line-height:1.05 !important; max-width:18ch;}
section.ws.tx > .tx-find{order:2; margin-top:22px !important;}
section.ws.tx > .tx-groups{order:3;}
section.ws.tx .tx-lede{order:4; margin-top:44px !important; font-size:16px !important; max-width:68ch;}
section.ws.tx > .tx-lead{order:5; margin-top:28px;}
section.ws.tx > .tx-lr{order:6;}
@media (max-width:767px){ section.ws.tx .tx-h1{font-size:32px !important; letter-spacing:-1px !important;} }

/* ---- nothing under 12px ----
   The format chips, the small capital labels and the link lists were 10 to 11px. */
.ws .fmts span, .fmts span{font-size:12px !important;}
.morelinks, .morelinks a, .morelinks span{font-size:12.5px !important;}
.navtag-t{font-size:12px !important;}
.tx-gh, .tx-card-k, .cz-t th{font-size:12px !important;}
body > :not(.krail):not(.ktall) [style*="font-size:11px"], body > :not(.krail):not(.ktall) [style*="font-size: 11px"], body > :not(.krail):not(.ktall) [style*="font-size:10.5px"], body > :not(.krail):not(.ktall) [style*="font-size:10px"]{font-size:12px !important;}

/* a very wide window · the newer pages centred themselves in a 1440px frame while the older ones stayed
   left, so past about 1570px the two kinds of page began at different places. Every page starts at
   the rail now and stops at the same width. */
@media (min-width:1024px){
  [data-m="root"]{margin-left:0 !important; margin-right:auto !important;}
  .kh{max-width:1440px !important; margin:0 !important;}
  /* three pages capped their own tool at another width, or centred it */
  .kapp-hero{max-width:1328px !important; margin-left:0 !important; margin-right:auto !important;}
  .tbwrap{max-width:1328px !important;}
}
.kf-alts a{font-size:12px !important;}
/* ---- no gradients · the white buttons were a white-to-grey fade, the closing box had a lime glow ---- */
a.btn-w{background-image:none !important; background-color:#FFFFFF !important;}   /* only the white link button · the selected segments are grey with white words and must stay so */
.ctabox{background-image:none !important;}

/* ---- the empty tool, on a desktop, is the send page's screen: the same ground, the same card, the headline beside it ----
   One framed card that takes the files on the left, what the tool is on the right, and nothing else above the fold.
   Once files are in, the working view is what it was (body.kapp-open, or .ws.has on the RAW pages). */
@media (min-width:1024px){
  html:not(.kembed) body:has(section#ws[data-band]:not(.tx)) .topnav, html:not(.kembed) body:has(section#ws[data-band]:not(.tx)) .kh-o{background:#111114 !important; border-bottom-color:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important;}
  html:not(.kembed) section#ws.ws.kapp-page, html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx){position:relative; background:#111114; min-height:calc(100vh - 57px); box-sizing:border-box; padding-top:24px !important; padding-bottom:56px !important; overflow:hidden;}
  html:not(.kembed) section#ws.ws.kapp-page{display:flex; flex-direction:column; justify-content:center;}   /* a column: what a run adds under the card (the rating, what to do next) goes under it, never beside it */
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > :not(.ws-head):not(.drop):not(.ws-body){grid-column:1 / -1;}
  html:not(.kembed) section#ws.ws.kapp-page::before, html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx)::before{content:""; position:absolute; inset:0; pointer-events:none;
    background-image:radial-gradient(rgba(255,255,255,.16) 1px, transparent 1.3px), radial-gradient(rgba(255,255,255,.07) 1px, transparent 1.3px);
    background-size:84px 84px, 28px 28px; background-position:14px 14px, 14px 14px;
    -webkit-mask-image:radial-gradient(ellipse 62% 70% at 72% 42%, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%);
    mask-image:radial-gradient(ellipse 62% 70% at 72% 42%, #000 0%, rgba(0,0,0,.6) 45%, transparent 100%);}
  /* the two columns · the shared tools keep their parts in .kapp-hero, the RAW pages in the section itself */
  html:not(.kembed) .kapp-hero, html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page){position:relative; display:grid !important; grid-template-columns:436px minmax(0,1fr); column-gap:clamp(40px, 5vw, 96px);}
  html:not(.kembed) .kapp-hero{width:100%; grid-template-rows:1fr auto auto auto 1fr;}
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page){align-items:center;}
  html:not(.kembed) .kapp-hero > .ws-k, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .ws-head > .ws-k, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .ws-head > .ws-steps{display:none !important;}
  /* the card */
  html:not(.kembed) .kapp-hero > .drop, html:not(.kembed) .ws.kapp-page .kapp-hero > .drop, html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx) > .drop{grid-column:1; grid-row:1 / 6; align-self:center; width:436px; max-width:none; margin:0 !important; min-height:0 !important; padding:38px 22px 26px !important; box-sizing:border-box;
    background:#1A1A1E !important; border:1px solid rgba(255,255,255,.16) !important; box-shadow:0 48px 100px rgba(0,0,0,.62), 0 6px 24px rgba(0,0,0,.4);}
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop{grid-row:1;}
  html:not(.kembed) .kapp-hero > .drop:hover, html:not(.kembed) .kapp-hero > .drop.on, html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx) > .drop:hover, html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx) > .drop.on{border-color:rgba(255,255,255,.55) !important;}
  html:not(.kembed) .kapp-hero > .drop .row, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .drop .row{flex-direction:column; align-items:stretch; width:100%; gap:6px;}
  html:not(.kembed) .kapp-hero > .drop .row > *, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .drop .row > *{width:100%; justify-content:center; box-sizing:border-box;}
  /* the words */
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx) > .ws-head{grid-column:2; grid-row:1; max-width:none; justify-self:end; text-align:right;}
  html:not(.kembed) .kapp-hero > .ws-h1, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .ws-head > .ws-h1{grid-column:2; grid-row:2; justify-self:end; margin:0 0 0 auto !important; max-width:660px; text-align:right; font-size:clamp(38px, 4.2vw, 62px) !important; font-weight:600 !important; letter-spacing:-2.4px !important; line-height:1.02 !important;}
  html:not(.kembed) .kapp-hero > .kapp-lede, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .ws-head > .ws-sub{grid-column:2; grid-row:3; justify-self:end; margin:22px 0 0 auto !important; max-width:500px; text-align:right; font-size:18px !important; line-height:1.55; color:rgba(255,255,255,.78) !important;}
  html:not(.kembed) .kapp-hero > .kapp-proof{grid-column:2; grid-row:4; justify-self:end; justify-content:flex-end; flex-wrap:wrap; margin:26px 0 0 !important; max-width:560px; gap:8px 26px !important;}
}

/* ---- the RAW card is the tool itself, the way the send card is ----
   On the empty desktop screen the card holds everything the work needs: add the files, then source, quality,
   size, metadata and names, then Convert. The options are the tool's own panel, shown before the first file
   instead of after it, so the settings can be made first and nothing on the screen is only a picture.
   Short screens keep the simple card. */
@media (min-width:1024px) and (min-height:840px){
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page){grid-template-rows:auto auto; align-content:center; row-gap:0;}
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page)::after{content:""; grid-column:1; grid-row:1 / 3; z-index:0; align-self:stretch; background:#1A1A1E; border:1px solid rgba(255,255,255,.16); box-shadow:0 48px 100px rgba(0,0,0,.62), 0 6px 24px rgba(0,0,0,.4);}
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx) > .ws-head{grid-row:1 / 3; align-self:center;}
  /* the top of the card: the files */
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop{grid-row:1; z-index:1; background:none !important; border:0 !important; box-shadow:none; -webkit-backdrop-filter:none; backdrop-filter:none; padding:22px 22px 4px !important; align-items:stretch; text-align:left;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .drop .big{font-size:15px; font-weight:600; letter-spacing:0;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .drop .sub{max-width:none; margin-top:4px; font-size:13px;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .row{display:grid; grid-template-columns:1fr 1fr; gap:8px; margin-top:14px;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .row > #chooseBtn, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .row > #folderBtn{height:56px; padding:0; background:#232327 !important; background-image:none !important; color:#fff !important; border:1px solid rgba(255,255,255,.2) !important; font-size:14px; font-weight:600;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .row > #chooseBtn:hover, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .row > #folderBtn:hover{border-color:rgba(255,255,255,.55) !important;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .row > #sampleBtn{grid-column:1 / 3; height:auto; padding:6px 0 0; justify-content:flex-start; font-size:13px; color:rgba(255,255,255,.62);}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page) > .drop .fmts{display:none;}
  /* the rest of the card: the tool's own options and its button */
  html:not(.kembed) section#ws.ws[data-stage="empty"]:not(.has):not(.tx) > .ws-body{display:block !important; grid-column:1; grid-row:2; z-index:1; margin:0; padding:10px 22px 22px; max-width:none;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .ws-body > .ws-main, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-stephead, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-set > summary, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-pre, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-note{display:none !important;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-side{position:static; width:auto;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-side .panel, html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-set{padding:0 !important; background:none !important; box-shadow:none !important; border:0 !important;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-side .panel{border-top:1px solid rgba(255,255,255,.1) !important;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-side :not(input[type="checkbox"]):not(input[type="range"]), html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) > .drop .row > *{border-radius:0 !important;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-go{margin-top:6px; animation:none;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-side .seg{display:flex; max-width:100%; box-sizing:border-box;}
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) .ws-side .seg button{flex:1;}
  /* nothing to convert yet: the button waits, as Get link does on the send card */
  html:not(.kembed) section#ws[data-stage="empty"]:not(.has):not(.tx) #convertAll{background:rgba(255,255,255,.08) !important; color:rgba(255,255,255,.45) !important; pointer-events:none; height:50px;}
}

/* on a screen wider than the page, the ground runs on to the edges instead of stopping in a band */
@media (min-width:1024px){ html:not(.kembed) body:has(section#ws.ws[data-stage="empty"]:not(.has):not(.tx):not(.kapp-page)), html:not(.kembed) body:not(.kapp-open):has(section#ws.ws.kapp-page){background:#111114;} }

/* ---- White border opens on the same screen as the other tools: the card on the left, what it is on the right ---- */
@media (min-width:1024px){
  html:not(.kembed) .wrap > .ws-head.bhead{position:relative; min-height:calc(100vh - 57px); margin-top:0 !important; padding-top:24px !important; padding-bottom:56px !important; box-sizing:border-box; display:flex; align-items:center; background:#111114; box-shadow:0 0 0 100vmax #111114; clip-path:inset(0 -100vmax);}
  html:not(.kembed) .bhead > .bhead-in{position:relative; width:100%; max-width:none; margin:0; display:grid; grid-template-columns:436px minmax(0,1fr); grid-template-rows:1fr auto auto 1fr; column-gap:clamp(40px, 5vw, 96px);}
  html:not(.kembed) .bhead-in > .ws-k, html:not(.kembed) .bhead-in > .ws-steps{display:none !important;}
  html:not(.kembed) .bhead-in > .drop.bland{grid-column:1; grid-row:1 / 5; align-self:center; width:436px; margin:0 !important; padding:38px 22px 26px !important; box-sizing:border-box; background:#1A1A1E !important; border:1px solid rgba(255,255,255,.16) !important; box-shadow:0 48px 100px rgba(0,0,0,.62), 0 6px 24px rgba(0,0,0,.4);}
  html:not(.kembed) .bhead-in > .drop.bland:hover, html:not(.kembed) .bhead-in > .drop.bland:focus-visible{border-color:rgba(255,255,255,.55) !important;}
  html:not(.kembed) .bhead-in > .drop.bland .row{flex-direction:column; align-items:stretch; width:100%;}
  html:not(.kembed) .bhead-in > .drop.bland .row > *{width:100%; justify-content:center; box-sizing:border-box; height:46px !important; background:#DFFF3F !important; color:#17171A !important;}
  html:not(.kembed) .wrap > .bhead .bhead-in > .ws-h1{grid-column:2; grid-row:2; justify-self:end; margin:0 !important; max-width:660px; text-align:right; font-size:clamp(38px, 4.2vw, 62px) !important; font-weight:600 !important; letter-spacing:-2.4px !important; line-height:1.02 !important;}
  html:not(.kembed) .bhead-in > .ws-sub{grid-column:2; grid-row:3; justify-self:end; margin:22px 0 0 !important; max-width:500px; text-align:right; font-size:18px !important; line-height:1.55; color:rgba(255,255,255,.78) !important;}
  html:not(.kembed) body:has(.wrap > .ws-head.bhead) .kh-o{background:#111114 !important; border-bottom-color:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important;}
}

/* ---- Sign a PDF opens on the same screen as the other tools: the card on the left, what it is on the right ---- */
@media (min-width:1024px){
  html:not(.kembed) section.sg:has(#sgHero:not([hidden])){position:relative; background:#111114; box-shadow:0 0 0 100vmax #111114; clip-path:inset(0 -100vmax);}
  html:not(.kembed) body:has(#sgHero:not([hidden])) .topnav, html:not(.kembed) body:has(#sgHero:not([hidden])) .kh-o{background:#111114 !important; border-bottom-color:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important;}
  html:not(.kembed) #sgHero:not([hidden]){max-width:none; margin:0; padding:24px 0 56px; min-height:calc(100vh - 57px); box-sizing:border-box; display:grid; grid-template-columns:436px minmax(0,1fr); grid-template-rows:1fr auto auto 1fr; column-gap:clamp(40px, 5vw, 96px); text-align:right;}
  html:not(.kembed) #sgHero > .sg-drop{grid-column:1; grid-row:1 / 5; align-self:center; width:436px; max-width:none; margin:0; box-sizing:border-box; flex-direction:column; align-items:center; gap:14px; padding:38px 22px 26px; text-align:center;
    background:#1A1A1E !important; border:1px solid rgba(255,255,255,.16); border-radius:0 !important; box-shadow:0 48px 100px rgba(0,0,0,.62), 0 6px 24px rgba(0,0,0,.4) !important;}
  html:not(.kembed) #sgHero > .sg-drop:hover{border-color:rgba(255,255,255,.55);}
  html:not(.kembed) #sgHero > .sg-drop .sg-drop-ico{border-radius:0 !important;}
  html:not(.kembed) #sgHero > .sg-drop .sg-drop-t{align-items:center; text-align:center;}
  html:not(.kembed) #sgHero > .sg-drop .sg-drop-t b{font-size:22px; letter-spacing:-.4px;}
  html:not(.kembed) #sgHero > .sg-drop .sg-drop-go{width:100%; height:46px; box-sizing:border-box; justify-content:center; border-radius:0 !important; margin-top:6px;}
  html:not(.kembed) #sgHero > .sg-h1{grid-column:2; grid-row:2; justify-self:end; margin:0 !important; max-width:660px; text-align:right !important; font-size:clamp(38px, 4.2vw, 62px) !important; font-weight:600 !important; letter-spacing:-2.4px !important; line-height:1.02 !important;}
  html:not(.kembed) #sgHero > .sg-lede{grid-column:2; grid-row:3; justify-self:end; margin:22px 0 0 !important; max-width:500px !important; text-align:right !important; font-size:18px !important; line-height:1.55; color:rgba(255,255,255,.78) !important;}
  html:not(.kembed) #sgHero > .sg-proof{display:none;}
}
/* the rail and the top bar already say where this is */
@media (min-width:1024px){ html:not(.kembed) .ws-k{display:none !important;} }

/* ---- the shared tools' options are in the card, under the drop zone, before the first file (tools/app.js moves them) ---- */
html:not(.kembed) .kapp-pre[hidden]{display:none !important;}
@media (min-width:1024px){
  /* two rows, the card's two halves, centred as one · the words sit at the seam */
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero{grid-template-rows:auto auto; align-content:center;}
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .ws-h1{grid-row:1; align-self:end; padding-bottom:22px;}
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .kapp-lede{grid-row:2; align-self:start; margin-top:0 !important;}
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .drop{grid-row:1; align-self:end; border-bottom:0 !important; padding-bottom:20px !important; clip-path:inset(-200px -200px 0 -200px);}
  html:not(.kembed) .kapp-hero > .kapp-pre{grid-column:1; grid-row:2; align-self:start; width:436px; box-sizing:border-box; padding:0 22px 20px; background:#1A1A1E; border:1px solid rgba(255,255,255,.16); border-top:0;
    box-shadow:0 48px 100px rgba(0,0,0,.62), 0 6px 24px rgba(0,0,0,.4); clip-path:inset(0 -200px -200px -200px);}
  html:not(.kembed) .kapp-pre > .kapp-opt{display:grid; grid-template-columns:76px minmax(0,1fr); gap:4px 12px; align-items:center; padding:12px 0; border-top:1px solid rgba(255,255,255,.1); text-align:left;}
  html:not(.kembed) .kapp-pre > .kapp-opt .fl{font-size:12.5px; font-weight:500; letter-spacing:0; text-transform:none; color:rgba(255,255,255,.6);}
  html:not(.kembed) .kapp-pre > .kapp-opt > :not(.fl){grid-column:2; min-width:0;}
  html:not(.kembed) .kapp-pre > .kapp-opt .seg{display:flex; max-width:100%; box-sizing:border-box; flex-wrap:wrap;}
  html:not(.kembed) .kapp-pre > .kapp-opt .seg button{flex:1 1 auto;}
  html:not(.kembed) .kapp-pre > .kapp-opt .hint{max-width:none; font-size:12px; color:rgba(255,255,255,.42);}
  html:not(.kembed) .kapp-pre > .kapp-opt .hint:empty{display:none;}
  /* with the options in it the card is a working surface: the picture and the list of formats step aside */
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .drop > .ico, html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .drop > .fmts{display:none;}
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .drop{padding-top:28px !important;}
  html:not(.kembed) section.ws.kapp-page.kapp-has-pre .kapp-hero > .drop .big{font-size:20px;}
}

/* ---- Text behind photo opens on the same screen as the other tools: the card on the left, what it is on the right ----
   Its heading and its drop zone are two blocks one after the other; while no photo is open the second is drawn over the first. */
@media (min-width:1024px){
  html:not(.kembed) .ws-headband:has(+ div #tbEditor[hidden]){position:relative; min-height:calc(100vh - 57px); padding:24px 56px 56px !important; box-sizing:border-box; display:flex; align-items:center; justify-content:flex-end; background:#111114; box-shadow:0 0 0 100vmax #111114; clip-path:inset(0 -100vmax);}
  html:not(.kembed) body:has(#tbEditor[hidden]) .topnav, html:not(.kembed) body:has(#tbEditor[hidden]) .kh-o{background:#111114 !important; border-bottom-color:transparent !important; -webkit-backdrop-filter:none !important; backdrop-filter:none !important;}
  html:not(.kembed) body:has(#tbEditor[hidden]){background:#111114;}
  html:not(.kembed) .ws-headband:has(+ div #tbEditor[hidden]) > .ws-head{max-width:calc(100% - 436px - clamp(40px, 5vw, 96px)); margin:0; text-align:right;}
  html:not(.kembed) .ws-headband:has(+ div #tbEditor[hidden]) .ws-steps{display:none !important;}
  html:not(.kembed) .ws-headband:has(+ div #tbEditor[hidden]) .ws-h1{margin:0 0 0 auto !important; max-width:660px; text-align:right; font-size:clamp(38px, 4.2vw, 62px) !important; font-weight:600 !important; letter-spacing:-2.4px !important; line-height:1.02 !important;}
  html:not(.kembed) .ws-headband:has(+ div #tbEditor[hidden]) .ws-sub{margin:22px 0 0 auto !important; max-width:500px; text-align:right; font-size:18px !important; line-height:1.55; color:rgba(255,255,255,.78) !important;}
  html:not(.kembed) .ws-headband + div[data-band]:has(#tbEditor[hidden]){position:relative; margin-top:calc(57px - 100vh); min-height:calc(100vh - 57px); padding:24px 56px 56px !important; box-sizing:border-box; display:flex; align-items:center; pointer-events:none;}
  html:not(.kembed) .ws-headband + div[data-band]:has(#tbEditor[hidden]) > .tbwrap{width:436px; max-width:none; margin:0; pointer-events:auto;}
  html:not(.kembed) #tbDrop{padding:38px 22px 26px !important; background:#1A1A1E !important; border:1px solid rgba(255,255,255,.16) !important; border-radius:0 !important; box-shadow:0 48px 100px rgba(0,0,0,.62), 0 6px 24px rgba(0,0,0,.4) !important;}
  html:not(.kembed) #tbDrop:hover, html:not(.kembed) #tbDrop.over{border-color:rgba(255,255,255,.55) !important;}
  html:not(.kembed) #tbDrop .tbdropico{display:flex !important; width:44px; height:44px; margin:0 auto 16px; border-radius:0 !important; background:#232327 !important; color:#DFFF3F; box-shadow:inset 0 0 0 1px rgba(255,255,255,.12);}
  html:not(.kembed) #tbDrop .tbdropico svg{width:20px; height:20px;}
  html:not(.kembed) #tbDrop .tbdroph{font-size:22px;}
  html:not(.kembed) #tbDrop .tbdropb > *{width:100%; height:46px !important; box-sizing:border-box; justify-content:center; border-radius:0 !important; background:#DFFF3F !important; background-image:none !important; color:#17171A !important;}
}
/* square corners on a desktop: the selected file in the working list was the one rounded thing left */
@media (min-width:1024px){ html:not(.kembed) .kapp #cards > *{border-radius:0 !important;} }
@media (min-width:1024px){ html:not(.kembed) .tnext > a, html:not(.kembed) .tnext > button{border-radius:0 !important;} }

/* ---- files in, app closed: Open is the button, adding more is the quiet one ---- */
.drop.has-files #chooseBtn{background:transparent !important; background-image:none !important; color:#fff !important; border:1px solid rgba(255,255,255,.22) !important; box-shadow:none !important;}
.drop.has-files #sampleBtn{display:none;}
/* ---- RAW at work, on a desktop: square, and the step is named once (the strip above already names it) ---- */
@media (min-width:1024px){
  html:not(.kembed) section#ws.ws:not(.kapp-page) :is(.panel, .ws-set, .rcard, .rcard .th, .rcard button, .rcard .badge, .rcard [class*="tag"], .ws-go .btn-w, .ws-done .btn-w, .ws-done .btn-o, .ws-done button, .seg, .seg button, select, input[type="text"]){border-radius:0 !important;}
  html:not(.kembed) section#ws.ws.has .ws-stephead{display:none;}
}
html:not(.kembed) .kemb-only{display:none;}
/* ---- RAW with files in: the work starts at the top. The headline sold the tool, and it is in use now ---- */
html:not(.kembed) section#ws.ws.has:not(.kapp-page) > .ws-head :is(.ws-h1, .ws-sub){display:none;}
html:not(.kembed) section#ws.ws.has:not(.kapp-page) > .ws-head .ws-steps{margin-top:0;}
/* ---- the one block under every tool that names the paid app: same words, same look, on all 23 pages ---- */
.tcta{border-top:1px solid rgba(255,255,255,.08); padding:72px 56px 84px; text-align:left;}
.wrap > .tcta{margin-top:64px; padding:56px 0 72px;}
.tcta h2{margin:0 !important; color:#fff; font:600 32px/1.12 -apple-system,BlinkMacSystemFont,'SF Pro','Helvetica Neue',Helvetica,Arial,sans-serif; letter-spacing:-1.1px;}
.tcta p{margin:12px 0 0 !important; max-width:540px; color:rgba(255,255,255,.62); font-size:15.5px; line-height:1.6;}
.tcta-a{display:flex; flex-wrap:wrap; gap:12px; margin-top:28px;}
.tcta-a a{display:inline-flex; align-items:center; justify-content:center; height:46px; padding:0 22px; font-size:14.5px; font-weight:600; text-decoration:none; border-radius:0;}
.tcta-a a.tcta-go{background:#DFFF3F; color:#111114;}
.tcta-a a.tcta-all{color:#fff; box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);}
.tcta-a a.tcta-all:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);}
@media (max-width:1023px){ .tcta{padding:56px 24px 64px;} .tcta h2{font-size:27px; letter-spacing:-.8px;} .tcta-a a{border-radius:12px; flex:1 1 150px;} }
/* ---- a phone: Sign a PDF pins its four buttons to the bottom, where the tab bar now is. They stand on it. Messages too. ---- */
@media (max-width:1023px){
  html:not(.kembed) .sg-tools{bottom:calc(var(--krail-tab, 64px) + 10px) !important;}
  html:not(.kembed) .toast, html:not(.kembed) .sg-toast{bottom:calc(var(--krail-tab, 64px) + 16px) !important;}
}
/* ---- Sign a PDF: the foot of a page, signed. It is drawn in the tool's own handwriting and wears the tool's own frame. ---- */
.sg-vis{display:none;}
html:not(.kembed) .sg-vis{position:relative; display:block; flex:0 0 100%; width:100%; box-sizing:border-box; height:190px; padding:26px 28px 0; background:#F4F4F2; overflow:hidden; text-align:left; border-radius:10px;}
html:not(.kembed) .sg-drop:has(.sg-vis){flex-wrap:wrap;}
html:not(.kembed) .sg-drop:has(.sg-vis) .sg-drop-ico{display:none;}
.sg-vis-l{display:block; width:100%; height:5px; margin:0 0 9px; background:rgba(17,17,20,.11);}
.sg-vis-row{display:block; height:74px; margin-top:4px; position:relative;}
.sg-vis-sig{position:absolute; left:-9px; bottom:9px; display:inline-block; padding:2px 12px 0 8px; border:1px solid transparent;}
.sg-vis-ink{display:block; font:400 44px/1.1 "KSign Delafield", cursive; color:#14161F; white-space:nowrap; clip-path:inset(-20% 100% -20% 0);}
.sg-vis-sig i{position:absolute; right:-6px; bottom:-6px; width:11px; height:11px; border-radius:50% !important; background:#DFFF3F; box-shadow:0 0 0 1.5px #14161F; opacity:0;}
.sg-vis-rule{display:block; height:1px; background:rgba(17,17,20,.4); width:62%;}
.sg-vis-cap{display:block; margin-top:7px; font:600 8.5px/1 -apple-system,BlinkMacSystemFont,'SF Pro','Helvetica Neue',Helvetica,Arial,sans-serif; letter-spacing:.14em; text-transform:uppercase; color:rgba(17,17,20,.5);}
.sg-vis.go .sg-vis-ink{clip-path:inset(-20% 0 -20% 0); transition:clip-path 1.5s cubic-bezier(.45,.05,.3,1) .35s;}
.sg-vis.go .sg-vis-sig{border-color:rgba(20,22,31,.75); transition:border-color .3s ease 2.05s;}
.sg-vis.go .sg-vis-sig i{opacity:1; transition:opacity .3s ease 2.05s;}
@media (prefers-reduced-motion:reduce){ .sg-vis.go .sg-vis-ink, .sg-vis.go .sg-vis-sig, .sg-vis.go .sg-vis-sig i{transition:none;} }
@media (min-width:1024px){
  html:not(.kembed) .sg-vis{flex:none; border-radius:0; height:208px; margin:-14px 0 8px;}
  html:not(.kembed) #sgHero > .sg-lede{max-width:560px !important;}
  html:not(.kembed) #sgHero > .sg-drop:has(.sg-vis){padding-top:36px;}
}
