/* Corner system for the illustrations (Vlad, 11 Nov 2026).
   Loaded after canvas.css on / and /sena. The real Sena screens (.dk-next on home,
   .dk-action on /sena) keep the product's own shapes and are never touched here.

   HOME — square is the language. Every shape in an illustration has sharp corners:
   cards, panels, chips, tags, status marks, avatars. One exception: the phone body
   and everything on its screen: a physical object with a real phone UI.

   /SENA — softness follows the role, the same everywhere:
     page card ............................ 6px   (the frame, the least soft)
     panel in a scene (window, list, doc,
       tile, photo frame, app tile) ....... 8px
     small tile (file format, app icon,
       photo thumb in a row) .............. 4px
     label, chip, tag, button, node, tab .. pill
     dot, status, avatar, marker, point ... circle
     progress track and fill .............. pill
     machine markup (detection box, scan
       frame), paper, stamp, data area ..... 0     (precise or physical: stays sharp)
     phone ................................ as drawn (physical object) */

/* ---------- HOME: all square (the default; /?corners=soft shows the soft variant below) ---------- */
html:not(.cvs-soft) .dk-set-home:not(.dk-next) *:not(.c-phone):not(.c-phone *),
html:not(.cvs-soft) .dk-set-home:not(.dk-next) *:not(.c-phone):not(.c-phone *)::before,
html:not(.cvs-soft) .dk-set-home:not(.dk-next) *:not(.c-phone):not(.c-phone *)::after {
  border-radius: 0 !important;
}

/* range sliders (edge, A tested move): square thumb and track. One rule per pseudo,
   a vendor pseudo voids the whole selector list in other engines. */
html:not(.cvs-soft) .dk-set-home input[type='range']::-webkit-slider-thumb { border-radius: 0 !important; }
html:not(.cvs-soft) .dk-set-home input[type='range']::-webkit-slider-runnable-track { border-radius: 0 !important; }
html:not(.cvs-soft) .dk-set-home input[type='range']::-moz-range-thumb { border-radius: 0 !important; }
html:not(.cvs-soft) .dk-set-home input[type='range']::-moz-range-track { border-radius: 0 !important; }

/* ---------- /SENA: softness by role ---------- */
/* page card */
.dk-set-sena :is(.bcard, .pbc, .sbc, .cmpc) { border-radius: 6px !important; }

/* panel in a scene */
.dk-set-sena .cvs :is(.c-blk5, .c-cal, .c-ov, .c-fl, .c-hub, .c-team, .c-term, .c-vsc,
  .c-ghostb, .c-lock, .c-appt, .c-phf, .c-cd.c-grp) { border-radius: 8px !important; }
.dk-set-sena .cvs .c-appt { overflow: hidden; }
.dk-set-sena .cvs .c-phf img { border-radius: inherit; }
/* the calendar's month band is the panel's header */
.dk-set-sena .cvs .c-cm { border-radius: 7px 7px 0 0 !important; }
/* a panel's header row and its first/last list rows follow the panel's corners */
.dk-set-sena .cvs .c-ovh { border-radius: 7px 7px 0 0 !important; }
.dk-set-sena .cvs .c-lst > :first-child { border-top-left-radius: 7px !important; border-top-right-radius: 7px !important; }
.dk-set-sena .cvs .c-lst > :last-child { border-bottom-left-radius: 7px !important; border-bottom-right-radius: 7px !important; }

/* small tile */
.dk-set-sena .cvs :is(.c-ic, .c-appi, .c-cami, .c-rc, .c-shr) { border-radius: 4px !important; }
.dk-set-sena .cvs :is(.c-fl, .c-blk5) img { border-radius: 4px; }

/* label, chip, tag, button, node, tab — pill */
.dk-set-sena .cvs :is(.c-ch, .c-chipw, .c-ptag2, .c-cause, .c-node3, .c-flag, .c-sbadge,
  .c-rcar, .c-lane, .c-qcnt, .c-more2, .c-sw, .c-cd:not(.c-grp)) { border-radius: 999px !important; }

/* dot, status, avatar, marker — circle */
.dk-set-sena .cvs :is(.c-sq, .c-vsb, .c-livedot, .c-qm, .c-av41) { border-radius: 50% !important; }

/* progress track and fill — pill */
.dk-set-sena .cvs :is(.c-tr, .c-tr2, .c-fill) { border-radius: 999px !important; }

/* machine markup, paper, stamp, data area — sharp */
.dk-set-sena .cvs :is(.c-det2, .c-ptag, .c-res, .c-paper, .c-qdoc, .c-stamp, .c-qst, .c-fin, .c-rln, .c-lr, .c-vline, .c-mt) { border-radius: 0 !important; }
.dk-set-sena .cvs .c-lst > .c-lr:last-child { border-bottom-left-radius: 7px !important; border-bottom-right-radius: 7px !important; }

/* ---------- HOME, soft variant (/?corners=soft, Vlad 11 Nov: compare with the square one) ----------
   The same role scale as /sena. Real Sena screens and the phone stay as they are. */
html.cvs-soft .dk-set-home :is(.bcard) { border-radius: 6px !important; }
/* panel in a scene */
html.cvs-soft .dk-set-home .cvs :is(.c-blk5, .c-cd, .c-ov, .c-fl, .c-team, .c-cal, .c-ghostb, .c-lock, .c-phf, .c-ab, .c-term, .c-ov) { border-radius: 8px !important; }
html.cvs-soft .dk-set-home .cvs :is(.c-ovh, .c-bw) { border-radius: 7px 7px 0 0 !important; }
html.cvs-soft .dk-set-home .cvs .c-lst > :first-child { border-top-left-radius: 7px !important; border-top-right-radius: 7px !important; }
html.cvs-soft .dk-set-home .cvs .c-lst > :last-child { border-bottom-left-radius: 7px !important; border-bottom-right-radius: 7px !important; }
/* small tile */
html.cvs-soft .dk-set-home .cvs :is(.c-ic, .c-ict, .c-qp, .c-ph, .c-cd.c-slot) { border-radius: 4px !important; }
html.cvs-soft .dk-set-home .cvs :is(.c-qp, .c-ph) { overflow: hidden; }
/* label, chip, tag, button, node, tab: pill */
html.cvs-soft .dk-set-home .cvs :is(.c-chipw, .c-flag, .c-tag, .c-qt, .c-src, .c-ch, .c-opt, .c-chip, .c-seg, .c-seg button, .c-tagn, .c-cause, .c-chip.c-city, .c-p.c-stp, .c-thin) { border-radius: 999px !important; }
html.cvs-soft .dk-set-home :is(.b-idx2) { border-radius: 999px !important; }
/* dot, status, avatar, marker: circle */
html.cvs-soft .dk-set-home .cvs :is(.c-sq, .c-qm, .c-av41, .c-sv i, .c-thin::before) { border-radius: 50% !important; }
html.cvs-soft .dk-set-home .cvs .c-thin::before { border-radius: 50% !important; }
html.cvs-soft .dk-set-home .cvs svg :is(.c-ck rect, rect.c-nd, rect.c-pop, rect.c-pulse) { rx: 50%; ry: 50%; }
/* progress track and fill: pill */
html.cvs-soft .dk-set-home .cvs :is(.c-tr, .c-fill, .c-sbar, .c-bar) { border-radius: 999px !important; }
/* machine markup, paper, stamp, data: sharp */
html.cvs-soft .dk-set-home .cvs :is(.c-paper, .c-stamp, .c-slipi, .c-det, .c-mt, .c-lr, .c-qr, .c-bars i, .c-water) { border-radius: 0 !important; }
html.cvs-soft .dk-set-home .cvs .c-lst > .c-qr:last-child, html.cvs-soft .dk-set-home .cvs .c-lst > .c-lr:last-child { border-bottom-left-radius: 7px !important; border-bottom-right-radius: 7px !important; }
html.cvs-soft .dk-set-home .cvs :is(.c-srow, .c-sres) { border-radius: 8px !important; }
html.cvs-soft .dk-set-home .cvs :is(.c-cami) { border-radius: 4px !important; }
html.cvs-soft .dk-set-home .cvs :is(.c-sdot, .c-eth, .c-win i) { border-radius: 50% !important; }
html.cvs-soft .dk-set-home .cvs :is(.c-efill, .c-eline) { border-radius: 999px !important; }

/* soft variant: buttons follow the same scale (Vlad, 11 Nov): buttons pill, form fields 8px */
html.cvs-soft .btn, html.cvs-soft .btn::before, html.cvs-soft .btn::after { border-radius: 999px !important; }
html.cvs-soft main :is(input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea) { border-radius: 8px !important; }
html.cvs-soft main :is(button[type="submit"], input[type="submit"]) { border-radius: 999px !important; }
