/* JernejLetica.com Color Picker & Palette Generator V2 */
.color-tool-v2{
    --ct-blue:#0f78a3;
    --ct-blue-dark:#095f82;
    --ct-blue-bright:#28b2e3;
    --ct-blue-soft:#eaf8fd;
    --ct-navy:#1f1932;
    --ct-pink:#ee3697;
    --ct-text:#151c18;
    --ct-muted:#67726c;
    --ct-line:#e3e1ec;
    --ct-soft:#f5f9fd;
    --ct-black:#111;
    width:var(--shell);
    margin-inline:auto;
    padding-top:12px;
    color:var(--ct-text);
}
.color-tool-v2 *{box-sizing:border-box}
.color-tool-v2 [hidden]{display:none!important}
.color-tool-v2 button,
.color-tool-v2 input{font:inherit}
.color-tool-v2__intro{
    max-width:920px;
    margin-bottom:14px;
}
.color-tool-v2__trust{
    display:flex;
    flex-wrap:wrap;
    gap:9px 18px;
    color:var(--ct-muted);
    font-size:13px;
    font-weight:800;
}
.color-tool-v2__trust span::before{
    content:"✓";
    margin-right:6px;
    color:var(--ct-blue-bright);
}
.color-tool-v2__shell{
    border:1px solid var(--ct-line);
    border-radius:20px;
    overflow:hidden;
    background:#fff;
    box-shadow:0 22px 55px rgba(31,25,50,.08);
}
.color-tool-v2__topbar{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:8px 14px;
    align-items:center;
    padding:14px 0 0;
}
.color-tool-v2__top-swatch{
    position:absolute;
    width:1px;
    height:1px;
    overflow:hidden;
    clip-path:inset(50%);
}
.color-tool-v2__top-value{
    display:flex;
    gap:7px;
    align-items:baseline;
    white-space:nowrap;
}
.color-tool-v2__top-value span{
    color:var(--ct-muted);
    font-size:11px;
    font-weight:800;
    text-transform:uppercase;
}
.color-tool-v2__top-value strong{
    font-size:13px;
}
.color-tool-v2__top-variations{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:repeat(10,1fr);
    width:100%;
    height:28px;
    overflow:hidden;
    border-radius:999px;
}
.color-tool-v2__top-variations span{
    position:relative;
    min-width:0;
}
.color-tool-v2__variation-current::after{
    content:"";
    position:absolute;
    inset:50% auto auto 50%;
    width:5px;height:5px;
    border-radius:999px;
    background:#fff;
    transform:translate(-50%,-50%);
    box-shadow:0 0 0 1px rgba(0,0,0,.25);
}
.color-tool-v2__tabs{
    display:flex;
    gap:8px;
    padding:10px 18px;
    border-bottom:1px solid var(--ct-line);
    background:#fafdfe;
}
.color-tool-v2__tab{
    display:flex;
    align-items:center;
    gap:8px;
    min-height:40px;
    padding:0 15px;
    border:1px solid var(--ct-line);
    border-radius:9px;
    background:#fff;
    color:var(--ct-muted);
    font-weight:900;
    cursor:pointer;
}
.color-tool-v2__tab svg{
    width:18px;
    height:18px;
    fill:none;
    stroke:currentColor;
    stroke-width:1.8;
    stroke-linecap:round;
    stroke-linejoin:round;
}
.color-tool-v2__tab[data-mode-tab="manual"]{color:var(--ct-blue)}
.color-tool-v2__tab[data-mode-tab="image"]{color:var(--ct-pink)}
.color-tool-v2__tab.is-active{
    border-color:#9eddf3;
    background:var(--ct-blue-soft);
    color:var(--ct-blue-dark);
}
.color-tool-v2__tab[data-mode-tab="image"].is-active{
    border-color:#f0b2d7;
    background:#fff0f8;
    color:#b82479;
}
.color-tool-v2__panel{
    padding:20px;
}
.color-tool-v2__manual-grid{
    display:grid;
    grid-template-columns:minmax(320px,1.1fr) minmax(280px,.9fr);
    gap:0;
    align-items:stretch;
    overflow:hidden;
    border:1px solid var(--ct-line);
    border-radius:16px;
}
.color-tool-v2__manual-title{
    grid-column:1/-1;
    margin:0;
    padding:18px 18px 0;
    color:var(--ct-navy);
    font-family:Georgia,"Times New Roman",serif;
    font-size:24px;
    line-height:1.15;
}
.color-tool-v2__picker-card,
.color-tool-v2__selected-card,
.color-tool-v2__image-card,
.color-tool-v2__palette-card{
    padding:18px;
    border:0;
    border-radius:0;
    background:#fff;
}
.color-tool-v2__picker-card{border-right:1px solid var(--ct-line)}
.color-tool-v2__picker-card h2,
.color-tool-v2__selected-card h2,
.color-tool-v2__image-card h2,
.color-tool-v2__palette-card h2,
.color-tool-v2__section h2{
    color:var(--ct-navy);
    font-family:Georgia,"Times New Roman",serif;
}
.color-tool-v2__manual-grid>.color-tool-v2__selected-card{
    background:linear-gradient(180deg,#f8fbfe 0%,#f4f8fc 100%);
}
.color-tool-v2__picker-field{
    position:relative;
    height:clamp(300px,32vw,405px);
    border-radius:10px;
    overflow:hidden;
    cursor:crosshair;
    touch-action:none;
}
.color-tool-v2__picker-cursor{
    position:absolute;
    width:24px;height:24px;
    border-radius:999px;
    border:3px solid #fff;
    box-shadow:0 0 0 1px rgba(0,0,0,.5);
    transform:translate(-50%,-50%);
    pointer-events:none;
}
.color-tool-v2__hue{
    width:100%;
    height:16px;
    margin:14px 0 16px;
    appearance:none;
    border-radius:999px;
    background:linear-gradient(
        to right,
        #f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00
    );
}
.color-tool-v2__hue::-webkit-slider-thumb{
    appearance:none;
    width:20px;height:20px;
    border-radius:999px;
    background:#fff;
    border:2px solid #111;
}
.color-tool-v2__hex-row{
    display:grid;
    grid-template-columns:1fr auto;
    gap:9px;
}
.color-tool-v2__hex-row input{
    min-height:44px;
    width:100%;
    padding:9px 12px;
    border:1px solid var(--ct-line);
    border-radius:9px;
    text-transform:uppercase;
}
.color-tool-v2__hex-row input:focus-visible{
    outline:0;
    border-color:var(--ct-blue-bright);
    box-shadow:0 0 0 4px rgba(40,178,227,.12);
}
.color-tool-v2__btn{
    min-height:42px;
    padding:9px 13px;
    border:1px solid var(--ct-blue);
    border-radius:8px;
    background:var(--ct-blue);
    color:#fff;
    font-weight:900;
    cursor:pointer;
}
.color-tool-v2__btn:hover{border-color:var(--ct-blue-dark);background:var(--ct-blue-dark)}
.color-tool-v2__btn--ghost{
    background:#fff;
    color:var(--ct-blue);
}
.color-tool-v2__btn--ghost:hover{background:var(--ct-blue-soft);color:var(--ct-blue-dark)}
.color-tool-v2__btn--black{
    border-color:#111;
    background:#111;
    color:#fff;
}
.color-tool-v2__selected-large{
    min-height:210px;
    display:grid;
    place-items:center;
    border-radius:12px;
    font-size:24px;
    font-weight:900;
    letter-spacing:.02em;
    box-shadow:inset 0 0 0 1px rgba(0,0,0,.06);
}
.color-tool-v2__manual-grid>.color-tool-v2__selected-card .color-tool-v2__selected-large{
    height:clamp(300px,32vw,405px);
    min-height:0;
}
.color-tool-v2__manual-grid>.color-tool-v2__selected-card .color-tool-v2__action-row{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
}
.color-tool-v2__manual-grid>.color-tool-v2__selected-card .color-tool-v2__btn{
    min-width:0;
    padding-inline:8px;
    font-size:12px;
}
.color-tool-v2__value-list{
    display:grid;
    gap:9px;
    margin-top:14px;
}
.color-tool-v2__value-row{
    display:grid;
    grid-template-columns:62px minmax(0,1fr) auto;
    gap:9px;
    align-items:center;
    padding:9px 10px;
    border:1px solid var(--ct-line);
    border-radius:9px;
}
.color-tool-v2__value-row span{
    color:var(--ct-muted);
    font-size:11px;
    font-weight:900;
    text-transform:uppercase;
}
.color-tool-v2__copy{
    min-height:30px;
    padding:0 9px;
    border:1px solid var(--ct-line);
    border-radius:7px;
    background:#fff;
    cursor:pointer;
    font-size:11px;
    font-weight:800;
}
.color-tool-v2__copy:hover{border-color:#9eddf3;background:var(--ct-blue-soft);color:var(--ct-blue-dark)}
.color-tool-v2__action-row{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    margin-top:14px;
}
.color-tool-v2__drop{
    display:block;
    width:100%;
    padding:20px 18px;
    border:1px dashed #b9d9e7;
    border-radius:14px;
    background:#fafdfe;
    text-align:center;
    cursor:pointer;
}
.color-tool-v2__drop.is-dragover,
.color-tool-v2__drop:hover{
    border-color:var(--ct-blue-bright);
    background:var(--ct-blue-soft);
}
.color-tool-v2__drop strong{
    display:block;
    margin-bottom:6px;
    font-size:18px;
}
.color-tool-v2__drop small{
    color:var(--ct-muted);
}
.color-tool-v2__file{
    position:absolute;
    width:1px;height:1px;
    overflow:hidden;
    clip:rect(0 0 0 0);
    clip-path:inset(50%);
    white-space:nowrap;
}
.color-tool-v2__image-grid{
    display:grid;
    grid-template-columns:minmax(0,1fr) 300px;
    gap:0;
    align-items:start;
    margin-top:18px;
    overflow:hidden;
    border:1px solid var(--ct-line);
    border-radius:16px;
}
.color-tool-v2__image-grid>div:first-child{
    display:flex;
    min-width:0;
    padding:18px;
    align-items:center;
    flex-direction:column;
}
.color-tool-v2__image-side{
    min-width:0;
    padding:18px;
    border-left:1px solid var(--ct-line);
    background:linear-gradient(180deg,#f8fbfe 0%,#f4f8fc 100%);
}
.color-tool-v2__image-card{
    padding:0 0 18px;
    background:transparent;
}
.color-tool-v2__image-card h2,
.color-tool-v2__palette-card h2{margin:0;font-size:20px;line-height:1.15}
.color-tool-v2__image-card p{margin:0 0 12px;color:var(--ct-muted);font-size:12px;line-height:1.5}
.color-tool-v2__image-card .color-tool-v2__btn{width:100%}
.color-tool-v2__canvas-wrap{
    width:fit-content;
    max-width:100%;
    border:1px solid var(--ct-line);
    border-radius:12px;
    overflow:hidden;
    background:
        linear-gradient(45deg,#eceeec 25%,transparent 25%),
        linear-gradient(-45deg,#eceeec 25%,transparent 25%),
        linear-gradient(45deg,transparent 75%,#eceeec 75%),
        linear-gradient(-45deg,transparent 75%,#eceeec 75%);
    background-size:24px 24px;
    background-position:0 0,0 12px,12px -12px,-12px 0;
}
.color-tool-v2__canvas{
    display:block;
    width:auto;
    max-width:100%;
    max-height:540px;
    height:auto;
    cursor:crosshair;
}
.color-tool-v2__loupe{
    width:92px;height:92px;
    display:block;
    margin:8px 0 10px;
    border:1px solid var(--ct-line);
    border-radius:10px;
}
.color-tool-v2__image-meta{
    display:flex;
    flex-wrap:wrap;
    gap:10px 16px;
    margin-top:10px;
    color:var(--ct-muted);
    font-size:12px;
    font-weight:800;
}
.color-tool-v2__palette-toolbar{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:12px;
}
.color-tool-v2__palette-card{
    margin-top:0;
    padding:18px 0 0;
    border-top:1px solid var(--ct-line);
    background:transparent;
}
.color-tool-v2__palette-card>.color-tool-v2__action-row{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:7px;
    margin-top:10px;
}
.color-tool-v2__palette-card>.color-tool-v2__action-row .color-tool-v2__btn{
    min-height:38px;
    padding:7px 8px;
    font-size:12px;
}
.color-tool-v2__selected-card--image{
    margin-top:18px;
    padding:18px 0 0;
    border-top:1px solid var(--ct-line);
    background:transparent;
}
.color-tool-v2__selected-card--image h2{margin:0 0 10px;font-size:20px;line-height:1.15}
.color-tool-v2__selected-card--image .color-tool-v2__selected-large{min-height:78px;font-size:18px}
.color-tool-v2__selected-card--image .color-tool-v2__value-list{gap:5px;margin-top:9px}
.color-tool-v2__selected-card--image .color-tool-v2__value-row{
    grid-template-columns:48px minmax(0,1fr) auto;
    gap:6px;
    min-height:34px;
    padding:5px 7px;
    background:#fff;
}
.color-tool-v2__selected-card--image .color-tool-v2__value-row strong{font-size:11px}
.color-tool-v2__selected-card--image .color-tool-v2__copy{min-height:26px;padding-inline:6px}
.color-tool-v2__counter{
    display:flex;
    align-items:center;
    gap:7px;
}
.color-tool-v2__counter button{
    width:32px;height:32px;
    border:1px solid var(--ct-line);
    border-radius:999px;
    background:#fff;
    cursor:pointer;
}
.color-tool-v2__counter button:hover{border-color:#9eddf3;background:var(--ct-blue-soft);color:var(--ct-blue-dark)}
.color-tool-v2__image-palette{
    display:grid;
    grid-template-columns:repeat(auto-fit,minmax(50px,1fr));
    min-height:48px;
    overflow:hidden;
    border-radius:10px;
}
.color-tool-v2__image-palette-swatch{
    min-height:48px;
    border:0;
    cursor:pointer;
    position:relative;
}
.color-tool-v2__image-palette-swatch.is-current::after,
.color-tool-v2__swatch-segment.is-current::after{
    content:"";
    position:absolute;
    inset:50% auto auto 50%;
    width:7px;height:7px;
    border-radius:999px;
    background:currentColor;
    transform:translate(-50%,-50%);
}
.color-tool-v2__below{
    grid-template-columns:repeat(2,minmax(0,1fr));
    margin-top:24px;
    display:grid;
    gap:24px 32px;
}
.color-tool-v2__section{
    min-width:0;
    padding-top:14px;
    border-top:1px solid var(--ct-line);
}
.color-tool-v2__section h2{
    margin:10px 0 16px;
    font-size:22px;
}
.color-tool-v2__harmony-grid{
    display:grid;
    grid-template-columns:1fr;
    gap:15px;
}
.color-tool-v2__harmony-card{
    min-width:0;
}
.color-tool-v2__mini-head{
    display:flex;
    justify-content:space-between;
    gap:12px;
    align-items:center;
    margin-bottom:9px;
}
.color-tool-v2__mini-head button{
    border:0;
    background:transparent;
    color:var(--ct-muted);
    cursor:pointer;
    font-size:11px;
}
.color-tool-v2__swatch-strip{
    display:grid;
    grid-auto-flow:column;
    grid-auto-columns:1fr;
    min-height:58px;
    overflow:hidden;
    border-radius:11px;
}
.color-tool-v2__swatch-segment{
    position:relative;
    min-width:0;
    min-height:58px;
    border:0;
    cursor:pointer;
}
.color-tool-v2__variation-stack{
    display:grid;
    gap:15px;
}
.color-tool-v2__scale-labels{
    display:grid;
    grid-template-columns:repeat(11,1fr);
    margin-top:6px;
    color:var(--ct-muted);
    font-size:10px;
    text-align:center;
}
.color-tool-v2__contrast-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:16px;
}
.color-tool-v2__contrast-card{
    padding:12px;
    border:1px solid var(--ct-line);
    border-radius:12px;
    background:#fff;
}
.color-tool-v2__contrast-sample{
    min-height:64px;
    display:grid;
    place-items:center;
    border-radius:9px;
    font-size:20px;
    font-weight:900;
}
.color-tool-v2__contrast-sample--black{
    background:#000;
    color:#fff;
}
.color-tool-v2__contrast-sample--white{
    background:#fff;
    color:#000;
    border:1px solid var(--ct-line);
}
.color-tool-v2__contrast-meta{
    display:flex;
    justify-content:space-between;
    gap:12px;
    margin-top:9px;
    font-size:12px;
}
.color-tool-v2__contrast-meta span{
    color:var(--ct-muted);
}
.color-tool-v2__contrast-state[data-pass="1"]{
    color:#257942;
}
.color-tool-v2__contrast-state[data-pass="0"]{
    color:#9a3041;
}
.color-tool-v2__message{
    margin-top:12px;
    padding:10px 12px;
    border-radius:8px;
    background:var(--ct-soft);
    color:var(--ct-muted);
    font-size:13px;
}
.color-tool-v2__message--error{
    background:#fff0f1;
    color:#8a2e3e;
}
@media(max-width:1000px){
    .color-tool-v2__manual-grid,
    .color-tool-v2__image-grid{
        grid-template-columns:1fr;
    }
    .color-tool-v2__picker-card{border-right:0;border-bottom:1px solid var(--ct-line)}
    .color-tool-v2__image-side{border-top:1px solid var(--ct-line);border-left:0}
    .color-tool-v2__below{grid-template-columns:1fr}
}
@media(max-width:720px){
    .color-tool-v2__panel{padding:16px}
    .color-tool-v2__harmony-grid,
    .color-tool-v2__contrast-grid{
        grid-template-columns:1fr;
    }
    .color-tool-v2__manual-grid>.color-tool-v2__selected-card .color-tool-v2__action-row{grid-template-columns:1fr}
    .color-tool-v2__picker-field,
    .color-tool-v2__manual-grid>.color-tool-v2__selected-card .color-tool-v2__selected-large{
        height:min(320px,76vw);
    }
    .color-tool-v2__value-row{
        grid-template-columns:58px minmax(0,1fr);
    }
    .color-tool-v2__copy{
        grid-column:1/-1;
    }
}
