/* Home & Living label studio: jars on the left, label library on the right */
.hl-labelcta { margin: 4px 0 14px; }
.hl-labelcta__btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 18px; border: 1px dashed var(--hl-ink, #1f2a24); border-radius: 14px; background: var(--hl-white, #fffdf9); color: var(--hl-ink, #1f2a24); font: 600 14px var(--hl-sans, sans-serif); cursor: pointer; transition: background .2s, border-color .2s; }
.hl-labelcta__btn:hover { background: var(--hl-paper, #f6f1ea); border-style: solid; }
.hl-labelcta__btn svg { width: 18px; height: 18px; flex: none; }
.hl-labelcta__btn[hidden] { display: none; }
.hl-labelcta__status { margin: 8px 0 0; color: #b3412e; font-size: 13px; font-weight: 600; }

/* Shell */
.hl-ls { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; padding: 24px; }
.hl-ls[hidden] { display: none; }
.hl-ls__backdrop { position: absolute; inset: 0; background: rgba(20, 26, 22, .6); backdrop-filter: blur(2px); opacity: 0; transition: opacity .2s; }
.hl-ls__panel { position: relative; display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); width: min(1120px, 100%); height: min(86vh, 760px); border-radius: 22px; background: var(--hl-white, #fffdf9); box-shadow: 0 40px 90px rgba(0, 0, 0, .3); overflow: hidden; transform: translateY(14px) scale(.99); opacity: 0; transition: transform .25s, opacity .25s; }
.hl-ls.is-open .hl-ls__backdrop { opacity: 1; }
.hl-ls.is-open .hl-ls__panel { transform: none; opacity: 1; }

/* Label look: black label with white text, or white label with black text */
.hl-ls { --lb-bg: #1f2a24; --lb-ink: #ffffff; --lb-line: rgba(255, 255, 255, .55); }
.hl-ls[data-colour="white"] { --lb-bg: #ffffff; --lb-ink: #1f2a24; --lb-line: rgba(31, 42, 36, .4); }
.hl-ls__ink { font: 600 10.5px/1.25 var(--hl-sans, sans-serif); letter-spacing: .14em; text-transform: uppercase; }

/* ---------- Left: the jars ---------- */
.hl-ls__side { display: flex; flex-direction: column; min-height: 0; background: var(--hl-paper, #f6f1ea); border-right: 1px solid var(--hl-line, #e3dbcf); }
.hl-ls__head { position: relative; display: flex; align-items: center; gap: 12px; padding: 20px 20px 12px; }
.hl-ls__thumb { width: 56px; height: 56px; flex: none; border-radius: 12px; object-fit: cover; background: #fff; }
body .hl-ls h2.hl-ls__title { margin: 0 !important; font: 400 22px/1.1 var(--hl-serif, serif) !important; color: var(--hl-ink, #1f2a24) !important; }
.hl-ls__product { margin: 3px 0 0; font-size: 12px; line-height: 1.35; color: var(--hl-ink-2, #3b463f); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.hl-ls__sub { margin: 2px 0 0; font-size: 12px; color: var(--hl-muted, #6b6f68); }
.hl-ls__x { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 50%; background: var(--hl-white, #fffdf9); font-size: 20px; line-height: 1; color: var(--hl-ink, #1f2a24); cursor: pointer; flex: none; }
.hl-ls__x:hover { border-color: var(--hl-ink, #1f2a24); }
.hl-ls__x--side { display: none; }

.hl-ls__colour { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 0 20px 10px; }
.hl-ls__colour > span { width: 100%; font: 600 10px/1 var(--hl-sans, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--hl-muted, #6b6f68); margin-bottom: 4px; }
.hl-ls__colour label { position: relative; display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 6px 14px 6px 8px; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 999px; background: var(--hl-white, #fffdf9); font-size: 13px; cursor: pointer; }
.hl-ls__colour input { position: absolute; opacity: 0; }
.hl-ls__colour i { width: 16px; height: 16px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .2); }
.hl-ls__colour i.is-black { background: #1f2a24; }
.hl-ls__colour i.is-white { background: #fff; }
.hl-ls__colour label:has(input:checked) { border-color: var(--hl-ink, #1f2a24); box-shadow: 0 0 0 1px var(--hl-ink, #1f2a24); }

.hl-ls__progress { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 20px 12px; font-size: 12px; font-weight: 600; color: var(--hl-ink-2, #3b463f); }
.hl-ls__bar { flex: 1; max-width: 140px; height: 4px; border-radius: 4px; background: var(--hl-line, #e3dbcf); overflow: hidden; }
.hl-ls__bar span { display: block; height: 100%; width: 0; background: var(--hl-green, #2f4236); transition: width .25s; }

.hl-ls__slots { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 18px 12px; align-content: start; padding: 14px 20px 16px; }
.hl-ls__slot { position: relative; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; }
.hl-ls__lid { display: block; width: 70%; height: 12px; border-radius: 5px 5px 2px 2px; background: linear-gradient(#cfb38a, #b8976a); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .08); }
.hl-ls__body { display: flex; align-items: center; justify-content: center; width: 100%; aspect-ratio: 4 / 4.6; margin-top: 2px; padding: 10px 8px; border-radius: 10px 10px 16px 16px; background: linear-gradient(100deg, rgba(255, 255, 255, .95), rgba(236, 240, 238, .9) 45%, rgba(255, 255, 255, .95)); box-shadow: inset 0 0 0 1px rgba(31, 42, 36, .12), 0 6px 14px rgba(31, 42, 36, .06); box-sizing: border-box; transition: box-shadow .2s, transform .2s; }
.hl-ls__body .hl-ls__ink { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 40px; padding: 6px 4px; border-radius: 3px; border: 1px dashed rgba(31, 42, 36, .25); color: var(--hl-muted, #6b6f68); font-size: 9px; text-align: center; word-break: break-word; box-sizing: border-box; }
.hl-ls__slot.is-filled .hl-ls__body .hl-ls__ink { border: 0; background: var(--lb-bg); color: var(--lb-ink); box-shadow: inset 0 0 0 3px var(--lb-bg), inset 0 0 0 4px var(--lb-line), 0 1px 2px rgba(0, 0, 0, .15); }
.hl-ls__slot.is-active .hl-ls__body { box-shadow: inset 0 0 0 2px var(--hl-clay, #8a5636), 0 8px 20px rgba(138, 86, 54, .18); transform: translateY(-2px); }
.hl-ls__num { margin-top: 6px; font-size: 11px; font-weight: 600; color: var(--hl-muted, #6b6f68); }
.hl-ls__slot.is-active .hl-ls__num { color: var(--hl-clay, #8a5636); }
.hl-ls__clear { position: absolute; top: 6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--hl-white, #fffdf9); box-shadow: 0 0 0 1px var(--hl-line, #e3dbcf); font-size: 13px; line-height: 20px; color: var(--hl-muted, #6b6f68); }
.hl-ls__clear:hover { background: #b3412e; color: #fff; box-shadow: none; }

.hl-ls__hint { margin: 0 20px 10px; font-size: 12px; line-height: 1.5; color: var(--hl-muted, #6b6f68); }
.hl-ls__actions { display: flex; flex-direction: column; gap: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--hl-line, #e3dbcf); }
.hl-ls__ghost, .hl-ls__add { width: 100%; height: 46px; padding: 0 18px; border-radius: 999px; font: 600 14px var(--hl-sans, sans-serif); cursor: pointer; }
.hl-ls__ghost { border: 1px solid var(--hl-ink, #1f2a24); background: transparent; color: var(--hl-ink, #1f2a24); }
.hl-ls__ghost[hidden] { display: none; }
.hl-ls__add { border: 0; background: var(--hl-ink, #1f2a24); color: #fff; }
.hl-ls__add:disabled { opacity: .35; cursor: not-allowed; }

/* ---------- Right: label library ---------- */
.hl-ls__main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.hl-ls__tools { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 18px 22px 12px; border-bottom: 1px solid var(--hl-line, #e3dbcf); }
.hl-ls__search { position: relative; margin: 0; }
.hl-ls__search svg { position: absolute; left: 14px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); color: var(--hl-muted, #6b6f68); }
.hl-ls__search input { width: 100%; height: 42px; margin: 0; padding: 0 14px 0 40px; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 999px; background: var(--hl-paper, #f6f1ea); font-size: 14px; color: var(--hl-ink, #1f2a24); box-sizing: border-box; }
.hl-ls__search input:focus { outline: 0; border-color: var(--hl-ink, #1f2a24); background: #fff; }
.hl-ls__tabs { grid-column: 1 / -1; display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.hl-ls__tabs[hidden] { display: none; }
.hl-ls__tab { flex: none; padding: 7px 14px; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 999px; background: transparent; font-size: 13px; color: var(--hl-ink, #1f2a24); cursor: pointer; white-space: nowrap; }
.hl-ls__tab:hover { border-color: var(--hl-ink, #1f2a24); }
.hl-ls__tab.is-on { background: var(--hl-ink, #1f2a24); border-color: var(--hl-ink, #1f2a24); color: #fff; }

.hl-ls__grid { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; align-content: start; padding: 18px 22px 24px; background: linear-gradient(var(--hl-white, #fffdf9), var(--hl-white, #fffdf9)); }
.hl-ls__label { position: relative; display: flex; align-items: center; justify-content: center; min-height: 54px; padding: 8px 10px; border: 0; border-radius: 6px; background: var(--lb-bg); color: var(--lb-ink); box-shadow: inset 0 0 0 4px var(--lb-bg), inset 0 0 0 5px var(--lb-line), 0 1px 2px rgba(0, 0, 0, .1); cursor: pointer; text-align: center; transition: transform .15s, box-shadow .15s; }
.hl-ls[data-colour="white"] .hl-ls__label { box-shadow: inset 0 0 0 4px var(--lb-bg), inset 0 0 0 5px var(--lb-line), 0 0 0 1px var(--hl-line, #e3dbcf), 0 1px 2px rgba(0, 0, 0, .06); }
.hl-ls__label:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 4px var(--lb-bg), inset 0 0 0 5px var(--lb-line), 0 8px 18px rgba(0, 0, 0, .14); }
.hl-ls__label.is-blank .hl-ls__ink { opacity: .55; }
.hl-ls__used { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--hl-clay, #8a5636); color: #fff; font-size: 11px; font-weight: 600; line-height: 20px; box-sizing: border-box; }
.hl-ls__empty { grid-column: 1 / -1; margin: 30px 0; text-align: center; color: var(--hl-muted, #6b6f68); font-size: 14px; }

/* ---------- Tablet ---------- */
@media (max-width: 900px) {
	.hl-ls__panel { grid-template-columns: 280px minmax(0, 1fr); }
	.hl-ls__slots { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); }
}

/* ---------- Phone: jars strip on top, labels below, actions pinned ---------- */
@media (max-width: 680px) {
	.hl-ls { padding: 0; align-items: flex-end; }
	.hl-ls__panel { display: flex; flex-direction: column; width: 100%; height: 94vh; border-radius: 20px 20px 0 0; transform: translateY(40px); }
	.hl-ls__side { display: contents; }
	.hl-ls__head { order: 1; padding: 14px 16px 8px; background: var(--hl-paper, #f6f1ea); }
	.hl-ls__thumb { width: 44px; height: 44px; }
	.hl-ls__x--side { display: inline-grid; margin-left: auto; }
	.hl-ls__x--main { display: none; }
	.hl-ls__colour { order: 2; margin: 0; padding: 0 16px 8px; background: var(--hl-paper, #f6f1ea); }
	.hl-ls__colour > span { display: none; }
	.hl-ls__progress { order: 3; margin: 0; padding: 0 16px 6px; background: var(--hl-paper, #f6f1ea); }
	.hl-ls__slots { order: 4; flex: none; display: flex; gap: 10px; overflow-x: auto; overflow-y: hidden; padding: 8px 16px 12px; background: var(--hl-paper, #f6f1ea); border-bottom: 1px solid var(--hl-line, #e3dbcf); }
	.hl-ls__slot { width: 76px; flex: none; }
	.hl-ls__hint { display: none; }
	.hl-ls__main { order: 5; flex: 1 1 auto; }
	.hl-ls__tools { grid-template-columns: 1fr; padding: 12px 16px 10px; }
	.hl-ls__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 12px 16px 16px; }
	.hl-ls__actions { order: 6; flex-direction: row; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: var(--hl-paper, #f6f1ea); }
	.hl-ls__ghost, .hl-ls__add { height: 44px; font-size: 13px; padding: 0 10px; }
}
.hl-ls[data-lid="dark"] .hl-ls__lid { background: linear-gradient(#3a3f3c, #1f2421); }
.hl-ls[data-lid="cork"] .hl-ls__lid { background: linear-gradient(#c79f73, #a97f55); }
/* Right column fills the full height (tools on top, labels below) */
.hl-ls__panel { align-items: stretch; }
.hl-ls__main { height: 100%; align-self: stretch; justify-content: flex-start; margin: 0 !important; padding: 0 !important; overflow: hidden; }
.hl-ls__main > .hl-ls__tools { flex: none; margin: 0; }
.hl-ls__main > .hl-ls__grid { flex: 1 1 0; height: auto; max-height: none; }
.hl-ls__side { height: 100%; overflow: hidden; }
@media (max-width: 680px) { .hl-ls__main { height: auto; } .hl-ls__side { height: auto; } }

/* ---------- Item shapes: jar, pump bottle, oil bottle, basket ---------- */
.hl-ls[data-lid="metal"] .hl-ls__lid { background: linear-gradient(90deg, #9a9a96, #e3e3df 45%, #8d8d89); }
.hl-ls__lid { position: relative; }

/* Pump bottle (soap, lotion, shampoo) */
.hl-ls[data-shape="pump"] .hl-ls__lid { width: 26%; height: 20px; border-radius: 3px 3px 2px 2px; }
.hl-ls[data-shape="pump"] .hl-ls__lid::before { content: ""; position: absolute; top: -9px; left: 30%; width: 120%; height: 7px; border-radius: 3px 6px 6px 3px; background: inherit; }
.hl-ls[data-shape="pump"] .hl-ls__body { aspect-ratio: 4 / 5.6; margin-top: 0; border-radius: 34px 34px 14px 14px; padding-top: 22px; }

/* Oil and sauce bottle with pourer */
.hl-ls[data-shape="pourer"] .hl-ls__lid { width: 20%; height: 22px; border-radius: 2px; }
.hl-ls[data-shape="pourer"] .hl-ls__lid::before { content: ""; position: absolute; top: -10px; left: 40%; width: 4px; height: 14px; border-radius: 2px; background: #b8a06a; transform: rotate(28deg); transform-origin: bottom; }
.hl-ls[data-shape="pourer"] .hl-ls__body { width: 74%; aspect-ratio: 3 / 6; margin-top: 0; border-radius: 12px 12px 8px 8px; padding: 18px 6px 10px; }
.hl-ls[data-shape="pourer"] .hl-ls__body .hl-ls__ink { font-size: 8.5px; }

/* Basket with name tag */
.hl-ls[data-shape="basket"] .hl-ls__lid { width: 60%; height: 14px; background: transparent !important; border: 3px solid #a98a5f; border-bottom: 0; border-radius: 16px 16px 0 0; box-shadow: none; }
.hl-ls[data-shape="basket"] .hl-ls__body { aspect-ratio: 5 / 4; margin-top: 0; border-radius: 6px 6px 16px 16px; background: repeating-linear-gradient(0deg, #d7c09a 0 6px, #c9ae83 6px 8px), #d7c09a; box-shadow: inset 0 0 0 1px rgba(90, 70, 40, .25); }
.hl-ls[data-shape="basket"] .hl-ls__body .hl-ls__ink { background: rgba(255, 255, 255, .85); }
.hl-ls[data-shape="pourer"] .hl-ls__body { width: 66%; aspect-ratio: 3 / 4.6; }
.hl-ls[data-shape="pourer"] .hl-ls__lid, .hl-ls[data-shape="pump"] .hl-ls__lid { background: linear-gradient(#3a3f3c, #1f2421); }
.hl-ls[data-shape="pourer"][data-lid="metal"] .hl-ls__lid, .hl-ls[data-shape="pump"][data-lid="metal"] .hl-ls__lid { background: linear-gradient(90deg, #9a9a96, #e3e3df 45%, #8d8d89); }
.hl-ls[data-shape="pump"][data-lid="bamboo"] .hl-ls__lid { background: linear-gradient(#cfb38a, #b8976a); }
.hl-ls[data-shape="pump"] .hl-ls__body { aspect-ratio: 4 / 5; }

/* ---------- Write your own label ---------- */
.hl-ls__main > .hl-ls__custom { flex: none; }
.hl-ls__custom { padding: 12px 22px 14px; border-top: 1px solid var(--hl-line, #e3dbcf); background: var(--hl-paper, #f6f1ea); }
.hl-ls__custom > label { display: block; margin: 0 0 6px; font: 600 10px/1 var(--hl-sans, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--hl-muted, #6b6f68); }
.hl-ls__customrow { display: flex; gap: 8px; }
.hl-ls__customrow input { flex: 1; min-width: 0; height: 42px; margin: 0; padding: 0 14px; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 999px; background: #fff; font: 600 13px var(--hl-sans, sans-serif); letter-spacing: .08em; text-transform: uppercase; color: var(--hl-ink, #1f2a24); box-sizing: border-box; }
.hl-ls__customrow input::placeholder { font-weight: 400; letter-spacing: .04em; color: #a3a59f; }
.hl-ls__customrow input:focus { outline: 0; border-color: var(--hl-ink, #1f2a24); }
.hl-ls__customrow button { flex: none; height: 42px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--hl-ink, #1f2a24); color: #fff; font: 600 13px var(--hl-sans, sans-serif); cursor: pointer; }
.hl-ls__customrow button:disabled { opacity: .35; cursor: default; }
.hl-ls__customnote { display: block; margin-top: 6px; font-size: 11.5px; color: var(--hl-muted, #6b6f68); }
.hl-ls__customnote.is-warn { color: #a2442c; }
.hl-ls__empty p { margin: 0 0 12px; }
.hl-ls__emptynote { font-size: 12.5px; }
.hl-ls__useown { padding: 10px 18px; border: 1px dashed var(--hl-ink, #1f2a24); border-radius: 999px; background: #fff; font: 600 13px var(--hl-sans, sans-serif); color: var(--hl-ink, #1f2a24); cursor: pointer; }
.hl-ls__useown:hover { border-style: solid; }
@media (max-width: 680px) {
	.hl-ls__custom { padding: 10px 16px 12px; }
	.hl-ls__customnote { display: none; }
	.hl-ls__customnote.is-warn { display: block; }
}

/* ---------- Personalised text mode (no label lists) ---------- */
.hl-ls--text .hl-ls__tools .hl-ls__search, .hl-ls--text .hl-ls__tabs, .hl-ls--text .hl-ls__grid { display: none !important; }
.hl-ls--text .hl-ls__tools { grid-template-columns: 1fr auto; border-bottom: 0; }
.hl-ls--text .hl-ls__main { justify-content: center !important; }
.hl-ls--text .hl-ls__custom { margin: auto 22px; padding: 26px 24px 22px; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 18px; }
.hl-ls--text .hl-ls__custom > label { font-size: 11px; margin-bottom: 10px; }
.hl-ls--text .hl-ls__customrow input { height: 50px; font: 500 17px var(--hl-serif, serif); letter-spacing: 0; text-transform: none; }
.hl-ls--text .hl-ls__customrow button { height: 50px; padding: 0 26px; }
.hl-ls--text .hl-ls__ink { text-transform: none; letter-spacing: .02em; font-size: 11px; }
@media (max-width: 680px) { .hl-ls--text .hl-ls__custom { margin: 14px 16px; padding: 16px; } .hl-ls--text .hl-ls__customnote { display: block; } }

/* Storage box: wide body with a bamboo lid */
.hl-ls[data-shape="box"] .hl-ls__lid { width: 100%; height: 10px; border-radius: 3px; }
.hl-ls[data-shape="box"] .hl-ls__body { aspect-ratio: 5 / 3.4; border-radius: 4px 4px 8px 8px; padding: 10px 8px; }
/* Carafe: narrow neck, round body */
.hl-ls[data-shape="carafe"] .hl-ls__lid { width: 30%; height: 16px; border-radius: 6px 6px 2px 2px; }
.hl-ls[data-shape="carafe"] .hl-ls__body { width: 82%; aspect-ratio: 3 / 4.6; border-radius: 30% 30% 14px 14px; padding-top: 18px; }

/* Personalised items: live preview of the text on the box */
.hl-ls--text .hl-ls__main { justify-content: flex-start !important; overflow-y: auto !important; }
.hl-ls__preview { flex: none; display: flex; flex-direction: column; align-items: center; margin: 8px 22px 18px; padding: 26px 20px 30px; border-radius: 18px; background: linear-gradient(180deg, #ece6dd, #e2dbd0); }
.hl-ls__previewlid { width: min(360px, 82%); height: 18px; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #d9b98c, #c39b68); box-shadow: inset 0 -2px 0 rgba(0,0,0,.08); }
.hl-ls__previewbox { display: flex; align-items: center; justify-content: center; width: min(340px, 78%); aspect-ratio: 2.35 / 1; padding: 10px 18px; border-radius: 0 0 14px 14px; box-sizing: border-box; box-shadow: 0 18px 30px rgba(0,0,0,.14); }
.hl-ls__preview[data-box="black"] .hl-ls__previewbox { background: linear-gradient(180deg, #2a2d2b, #161817); }
.hl-ls__preview[data-box="white"] .hl-ls__previewbox { background: linear-gradient(180deg, #ffffff, #efece7); box-shadow: 0 18px 30px rgba(0,0,0,.1), inset 0 0 0 1px #e3dbcf; }
.hl-ls__previewink { font: italic 400 clamp(20px, 3vw, 30px)/1.15 var(--hl-serif, serif); text-align: center; word-break: break-word; }
.hl-ls__preview[data-ink="white"] .hl-ls__previewink { color: #f4f1ec; }
.hl-ls__preview[data-ink="black"] .hl-ls__previewink { color: #1f2a24; }
.hl-ls__previewink.is-empty { opacity: .45; }
.hl-ls--text .hl-ls__custom { margin: 0 22px 18px !important; }
@media (max-width: 680px) { .hl-ls__preview { margin: 10px 16px 0; padding: 18px 14px 22px; } .hl-ls--text .hl-ls__custom { margin: 12px 16px !important; } }

/* ---------- Colour picker: one clean two-way switch ---------- */
.hl-ls__colour { display: grid !important; grid-template-columns: 1fr 1fr; gap: 4px !important; margin: 0 20px 12px !important; padding: 4px; border: 1px solid var(--hl-line, #e3dbcf); border-radius: 999px; background: #ebe4da; }
.hl-ls__colourwrap { margin: 0 20px 12px; }
.hl-ls__colourtitle { display: block; margin: 0 0 6px; font: 600 10px/1.2 var(--hl-sans, sans-serif); letter-spacing: .14em; text-transform: uppercase; color: var(--hl-muted, #6b6f68); }
.hl-ls__colourwrap .hl-ls__colour { margin: 0 !important; }
@media (max-width: 680px) { .hl-ls__colourwrap { order: 2; margin: 0; padding: 0 16px 8px; background: var(--hl-paper, #f6f1ea); } .hl-ls__colourtitle { margin-bottom: 4px; } }
.hl-ls__colour label { justify-content: center; gap: 8px !important; height: 36px; padding: 0 12px !important; border: 0 !important; border-radius: 999px; background: transparent !important; box-shadow: none !important; font: 500 13px var(--hl-sans, sans-serif) !important; color: var(--hl-ink-2, #3b463f); transition: background .2s, box-shadow .2s; }
.hl-ls__colour label:has(input:checked) { background: #fff !important; color: var(--hl-ink, #1f2a24); font-weight: 600 !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important; }
.hl-ls__colour input[type="radio"] { position: absolute !important; width: 1px !important; height: 1px !important; margin: 0 !important; padding: 0 !important; opacity: 0 !important; overflow: hidden; clip: rect(0 0 0 0); -webkit-appearance: none; appearance: none; pointer-events: none; }
.hl-ls__colour input[type="radio"]::before, .hl-ls__colour input[type="radio"]::after { display: none !important; }
.hl-ls__colour label:focus-within { outline: 2px solid var(--hl-clay, #8a5636); outline-offset: 1px; }
.hl-ls__colour i { flex: none; width: 14px !important; height: 14px !important; margin: 0 !important; }
.hl-ls__colour i.is-white { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .25); border: 0 !important; }

/* Each item shows its own label colour */
.hl-ls__slot[data-colour="black"] { --lb-bg: #1f2a24; --lb-ink: #ffffff; --lb-line: rgba(255, 255, 255, .55); }
.hl-ls__slot[data-colour="white"] { --lb-bg: #ffffff; --lb-ink: #1f2a24; --lb-line: rgba(31, 42, 36, .4); }
.hl-ls__slot.is-filled[data-colour="white"] .hl-ls__body .hl-ls__ink { box-shadow: inset 0 0 0 3px var(--lb-bg), inset 0 0 0 4px var(--lb-line), 0 0 0 1px rgba(31, 42, 36, .18), 0 1px 2px rgba(0, 0, 0, .1); }

/* Label words never break in the middle */
.hl-ls__ink { word-break: normal !important; overflow-wrap: normal !important; hyphens: none !important; }
.hl-ls__slot .hl-ls__body .hl-ls__ink { overflow: hidden; letter-spacing: .06em; font-size: 9px; line-height: 1.2; padding: 6px 3px; }
.hl-ls__label .hl-ls__ink { letter-spacing: .1em; }

/* ---------- Above everything, smooth sheet on phones ---------- */
.hl-ls { z-index: 2147483000 !important; }
body.hl-lock-body { position: fixed; left: 0; right: 0; width: 100%; overflow: hidden; }
.hl-ls__actions { position: relative; z-index: 2; }
.hl-ls__actions .hl-ls__ghost, .hl-ls__actions .hl-ls__add { flex: 1 1 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hl-ls__colourwrap[data-bound] .hl-ls__colourtitle::after { content: ""; }
@media (max-width: 680px) {
	.hl-ls__panel { height: 92vh; height: 92dvh; opacity: 1 !important; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
	.hl-ls.is-open .hl-ls__panel { transform: translateY(0); }
	.hl-ls__head { position: relative; padding-top: 22px !important; touch-action: none; }
	.hl-ls__head::before { content: ""; position: absolute; top: 8px; left: 50%; width: 40px; height: 4px; margin-left: -20px; border-radius: 4px; background: rgba(31, 42, 36, .2); }
	.hl-ls__colourwrap { display: block !important; }
	.hl-ls__actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px !important; }
	.hl-ls__actions .hl-ls__ghost[hidden] + .hl-ls__add { grid-column: 1 / -1; }
}

/* Phones: the sheet always fits the visible screen (Safari toolbars included), close button always reachable */
@media (max-width: 680px) {
	.hl-ls { height: 100vh; height: 100dvh; inset: auto 0 0 0; top: 0; }
	.hl-ls__panel { height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; min-height: 0; }
	.hl-ls__head { flex: none; }
	.hl-ls__x--side { position: relative; z-index: 3; width: 40px; height: 40px; }
	.hl-ls__main { min-height: 0; flex: 1 1 auto; }
	.hl-ls__actions { padding-bottom: calc(10px + env(safe-area-inset-bottom)) !important; }
}
/* Phones: smaller jars so more labels fit on screen */
@media (max-width: 680px) {
	.hl-ls__slot { width: 62px !important; }
	.hl-ls__slots { padding: 6px 16px 10px !important; }
	.hl-ls .hl-ls__title { font-size: 20px !important; }
	.hl-ls__colour label { height: 34px; }
}
