/* Blank "create new card" card. Matches Figma: Color Cards page > Color Card > Type=Color Picker.
   Kept outside tailwind.css so it works without rebuilding Tailwind. */
.shelf.blank{height:320px;padding:16px;background:#F2F2F2}
.cp.cp-inline .cp-sb{border-radius:8px}
.cp.cp-inline .cp-row,.cp.cp-inline .cp-fields{margin-top:8px;gap:8px}
.cp.cp-inline .cp-preview{display:none}
.cp.cp-inline .cp-eye{flex:0 0 32px;width:32px;height:32px;border-radius:6px;background:#FDFDFD;border:1.5px solid #E0E0E0;color:#737373}
.cp.cp-inline .cp-eye svg{width:24px;height:24px}
.cp.cp-inline .cp-hue{height:18px;border-radius:6px}
.cp.cp-inline .cp-hue .cp-dot{top:9px;width:13px;height:13px;margin:-6.5px 0 0 -6.5px;border-color:#FDFDFD}
.cp.cp-inline .cp-model{flex:0 0 65px;width:65px;height:32px;padding:0 24px 0 8px;border:1.5px solid #E0E0E0;border-radius:6px;background:#FDFDFD url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23A3A3A3' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 8px center;-webkit-appearance:none;appearance:none;color:#A3A3A3;font:400 16px/24px 'DM Sans',sans-serif}
.cp.cp-inline .cp-inputs{gap:8px}
.cp.cp-inline .cp-inputs input{height:32px;padding:0 8px;border:1.5px solid #E0E0E0;border-radius:6px;background:#FDFDFD;color:#A3A3A3;font:400 16px/24px 'DM Sans',sans-serif}
.cp.cp-inline.is-touched .cp-model,.cp.cp-inline.is-touched .cp-inputs input{color:#525252}
.cp.cp-inline .cp-done{margin-top:8px;height:32px;align-items:center;border-radius:16px;background:#A3A3A3;color:#FDFDFD;font:500 16px/24px 'DM Sans',sans-serif;letter-spacing:normal}
.card-info.blank-info{height:72px}
.blank-swatch{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:#7A7AFF}
.blank-name::placeholder{color:#A3A3A3;opacity:1}
.blank-cancel{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:40px;height:40px;flex-shrink:0;color:#737373}
.blank-cancel svg{width:20px;height:20px;display:block}
.cp .cp-eye .eye-outline{display:none}
.cp.cp-inline .cp-eye .eye-outline{display:block}
.cp.cp-inline .cp-eye .eye-solid{display:none}
/* Hover: the light grays darken to Neutral 500 (#737373) and 600 (#525252) */
.cp.cp-inline .cp-eye,.cp.cp-inline .cp-model,.cp.cp-inline .cp-inputs input,.cp.cp-inline .cp-done{transition:color .15s,border-color .15s,background-color .15s}
.cp.cp-inline .cp-eye:hover{border-color:#737373;color:#525252;filter:none}
.cp.cp-inline .cp-model:hover,.cp.cp-inline .cp-model:focus{border-color:#737373;color:#525252;outline:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7' fill='none'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23525252' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")}
.cp.cp-inline .cp-inputs input:hover,.cp.cp-inline .cp-inputs input:focus{border-color:#737373;color:#525252}
.cp.cp-inline .cp-done:hover{background:#525252}
/* Picker handles: no dark ring, just the soft shadow from Figma (y 1, blur 2, 25%) */
.cp .cp-dot{box-shadow:0 1px 2px rgba(0,0,0,.25)}
/* Color card: name and hex are edited in place; hover/focus underlines them */
.card-edit{cursor:text;outline:none;text-decoration:underline transparent;text-decoration-thickness:1.5px;text-underline-offset:4px;transition:text-decoration-color .15s}
.card-edit:hover,.card-edit:focus{text-decoration-color:currentColor}
/* Selection bar under each color card (replaces the checkbox). 8px below the card, 16px in from each side.
   Hidden at rest, Neutral 400 on hover, Neutral 600 when selected. Also the drag handle. */
.card-wrap{padding-bottom:16px}
.card-wrap>.card.is-checked,.card-wrap>.card{box-shadow:0 1px 4.2px rgba(0,0,0,.25)}
.card-bar{position:absolute;left:16px;right:16px;bottom:0;height:8px;border-radius:4px;background:#A3A3A3;opacity:0;cursor:grab;transition:opacity .15s,background-color .15s}
.card-bar::before{content:"";position:absolute;inset:-6px 0}
.card-bar:active{cursor:grabbing}
.card-wrap:hover .card-bar{opacity:1}
.card-wrap.is-selected .card-bar{opacity:1;background:#525252}
@media (min-width:1180px){#cards{column-gap:48px}}
/* Cards keep their own height in a row. Without this the new-color card stretched to the height of a
   neighbour's wrap (card + bar space) and grew a 16px white bump at the bottom. */
#cards>*{align-self:flex-start}
/* Drag to reorder: the lifted card floats above the page, an empty slot keeps its place in the list */
.card-bar{touch-action:none}
.card-slot{flex-shrink:0}
.card-wrap.is-lifted>.card{box-shadow:0 12px 28px rgba(0,0,0,.22),0 2px 6px rgba(0,0,0,.12);transform:scale(1.02);transition:transform .15s,box-shadow .15s}
.card-wrap.is-lifted .card-bar{opacity:1}
body.is-card-dragging,body.is-card-dragging *{cursor:grabbing!important;user-select:none}
/* Settings with nothing selected: mini swatches of each color card to pick from */
.editing-card.pick-card:not(.is-active)[role=button]{opacity:1}
.editing-card.pick-card{transition:box-shadow .15s}
.editing-card.pick-card:hover,.editing-card.pick-card:focus-visible{box-shadow:inset 0 0 0 1.5px #a3a3a3;outline:none}
.editing-card.pick-card:hover .t-title,.editing-card.pick-card:focus-visible .t-title{font-weight:700}
.select-prompt{display:flex;align-items:center;gap:8px;padding:4px 16px;color:#FDFDFD}
.select-prompt-icon svg{width:24px;height:24px;display:block}
/* 1.2.1: Add Color while a new card is still waiting for its color gives that card a short shake */
@keyframes card-nudge{0%,100%{transform:translateX(0)}20%{transform:translateX(-6px)}40%{transform:translateX(6px)}60%{transform:translateX(-4px)}80%{transform:translateX(4px)}}
.card.is-nudged{animation:card-nudge .4s ease}
/* 1.3.0: sponsored (ad) card. Same size as a color card, grey where the steps go. Bottom padding matches a card's bar space. */
.ad-wrap{position:relative;flex-shrink:0;padding-bottom:16px}
.ad-card{cursor:default;user-select:none}
.ad-area{display:flex;align-items:center;justify-content:center;width:100%;height:304px;background:#E0E0E0}
.ad-tag{padding:2px 10px;border-radius:9999px;background:#A3A3A3;color:#FDFDFD;font:600 12px/1rem 'DM Sans',sans-serif;letter-spacing:.04em}
.ad-swatch{width:32px;height:32px;border-radius:50%;flex-shrink:0;background:#E0E0E0}
.ad-sub{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:14px;letter-spacing:-1.7px} /* hex type (.t-nums), 2px smaller and tighter so the whole line fits */
/* 1.3.0: Remove ads dialog (Upgrade to Pro or enter admin code) */
.ad-dialog-overlay{position:fixed;inset:0;z-index:200;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(23,23,23,.55)}
.ad-dialog{width:100%;max-width:360px;display:flex;flex-direction:column;gap:12px;padding:20px;border-radius:16px;background:#FDFDFD;box-shadow:0 1px 8.4px rgba(0,0,0,.25);font-family:'DM Sans',sans-serif;color:#525252}
.ad-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.ad-dialog-head h2{margin:0;font-size:20px;font-weight:700;line-height:1.75rem;letter-spacing:-.4px;color:#262626}
.ad-dialog-x{flex-shrink:0;width:28px;height:28px;display:grid;place-items:center;background:transparent;border:0;padding:0;color:#737373;cursor:pointer}
.ad-dialog-x svg{width:22px;height:22px}
.ad-dialog-x:hover{color:#262626}
.ad-dialog-text{margin:0;font-size:14px;line-height:1.25rem;color:#737373}
.ad-dialog-pro{height:36px;border:0;border-radius:18px;background:#525252;color:#FDFDFD;font:600 16px/1 'DM Sans',sans-serif;cursor:pointer}
.ad-dialog-pro:hover{background:#262626}
.ad-dialog-or{display:flex;align-items:center;gap:8px;color:#A3A3A3;font-size:12px}
.ad-dialog-or::before,.ad-dialog-or::after{content:"";flex:1;height:1px;background:#E0E0E0}
.ad-dialog-code{display:flex;gap:8px}
.ad-dialog-code .field-text{height:36px;flex:1;min-width:0}
.ad-dialog-unlock{flex-shrink:0;height:36px;padding:0 14px;border:1.5px solid #A3A3A3;border-radius:8px;background:#FDFDFD;color:#525252;font:600 14px/1 'DM Sans',sans-serif;cursor:pointer}
.ad-dialog-unlock:hover{border-color:#525252;color:#262626}
/* Admin-only "Show ads" toggle under the mini swatches (no color selected) */
.admin-toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;height:3.5rem;padding:0 1rem;border-radius:56px;background:#F2F2F2;color:#525252;font:600 16px/1.5rem 'DM Sans',sans-serif;letter-spacing:-.64px}
/* 1.4.0: real Google ad inside the ad card, pinned to the 304 x 304 area. If Google has no ad to show, the grey card stays. */
.ad-area{position:relative;overflow:hidden}
.ad-area ins.adsbygoogle{position:absolute;inset:0}
.ad-area ins.adsbygoogle[data-ad-status="unfilled"]{display:none!important}

/* 1.4.3: privacy policy link under the settings panel */
.privacy-link{font:500 12px/1rem 'DM Sans',sans-serif;color:#404040;text-decoration:underline}
.privacy-link:hover{color:#171717}
