/* Kockguiden: scoped, modeless help. The dock reserves room for safe areas. */
.jb-chef {
	--jb-chef-green: #0c2922;
	--jb-chef-ink: #183a30;
	--jb-chef-ivory: #fffdf6;
	--jb-chef-cyan: #9fe8de;
	--jb-chef-lift: 0px;
	--jb-chef-keyboard: 0px;
	--jb-chef-viewport: 100vh;
	position: fixed;
	z-index: 45;
	right: max(16px, env(safe-area-inset-right, 0px));
	bottom: calc(16px + env(safe-area-inset-bottom, 0px) + var(--jb-chef-keyboard) + var(--jb-chef-lift));
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	gap: 10px;
	max-width: calc(100vw - 32px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
	color: var(--jb-chef-ink);
	font-family: var(--sans, ui-sans-serif, system-ui, sans-serif);
	font-size: 14px;
	line-height: 1.5;
	pointer-events: none;
}
.jb-chef *, .jb-chef *::before, .jb-chef *::after { box-sizing: border-box; }
.jb-chef [hidden] { display: none !important; }
.jb-chef button, .jb-chef a { -webkit-tap-highlight-color: transparent; }
.jb-chef button { font: inherit; cursor: pointer; }
.jb-chef button:focus-visible, .jb-chef a:focus-visible, .jb-chef [tabindex]:focus-visible { outline: 3px solid #217c72; outline-offset: 3px; }
.jb-chef__launcher {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	min-height: 54px;
	max-width: 175px;
	padding: 4px 16px 4px 4px;
	border: 1px solid #88b6a6;
	border-radius: 40px;
	color: var(--jb-chef-ivory);
	background: var(--jb-chef-green);
	box-shadow: 0 5px 22px rgb(0 22 17 / 18%);
	pointer-events: auto;
}
.jb-chef__launcher > span:last-child { font-size: 12px; font-weight: 720; letter-spacing: .01em; }
.jb-chef__launcher:hover { background: #174337; border-color: var(--jb-chef-cyan); }
.jb-chef__avatar, .jb-chef__portrait { flex: 0 0 auto; display: block; overflow: hidden; background: #10291f; color: var(--jb-chef-cyan); text-align: center; font-weight: 800; }
.jb-chef__avatar { width: 44px; height: 44px; border: 1px solid rgb(159 232 222 / 40%); border-radius: 50%; line-height: 44px; }
.jb-chef__avatar img, .jb-chef__portrait img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 0%; transform: scale(1.8); transform-origin: 50% 16%; }
.jb-chef__panel {
	display: flex;
	flex-direction: column;
	width: 378px;
	max-width: 100%;
	max-height: min(720px, calc(var(--jb-chef-viewport) - 102px - var(--jb-chef-lift) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)));
	margin: 0;
	padding: 0;
	overflow: hidden;
	border: 1px solid #bdd2c6;
	border-radius: 22px;
	background: var(--jb-chef-ivory);
	box-shadow: 0 16px 70px rgb(0 24 18 / 24%);
	pointer-events: auto;
	isolation: isolate;
}
.jb-chef[data-open="true"] .jb-chef__panel { animation: jb-chef-appear 150ms ease-out both; }
.jb-chef__header { flex: 0 0 auto; display: flex; align-items: center; gap: 13px; min-height: 94px; padding: 17px 14px 16px 19px; color: var(--jb-chef-ivory); background: var(--jb-chef-green); border-bottom: 1px solid #468e7c; }
.jb-chef__portrait { width: 58px; height: 62px; border-radius: 15px; border: 1px solid rgb(159 232 222 / 30%); }
.jb-chef__identity { min-width: 0; }
.jb-chef__eyebrow { display: block; font-size: 10px; line-height: 1.4; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.jb-chef__header .jb-chef__eyebrow { color: var(--jb-chef-cyan); }
.jb-chef h2 { margin: 4px 0 0; color: inherit; font-family: var(--sans, ui-sans-serif, system-ui, sans-serif); font-size: 23px; font-weight: 720; line-height: 1.15; letter-spacing: -.04em; }
.jb-chef__close { display: grid; place-items: center; flex: 0 0 auto; width: 40px; height: 40px; margin: -15px -3px 0 auto; padding: 0; color: #f8fbf3; background: transparent; border: 1px solid transparent; border-radius: 50%; }
.jb-chef__close span { font: 300 29px/1 Arial, sans-serif; }
.jb-chef__close:hover { border-color: #77af9b; background: rgb(255 255 255 / 7%); }
.jb-chef__header button:focus-visible { outline-color: var(--jb-chef-cyan); }
.jb-chef__body { min-height: 0; padding: 19px; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #abc2b5 transparent; }
.jb-chef__intro { margin: 0 0 15px; color: #58665e; font-size: 13px; }
.jb-chef__context { padding: 15px; border: 1px solid #ccdcd0; border-radius: 15px; background: #f2f6ed; }
.jb-chef__context-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; color: #406852; }
.jb-chef__progress { display: flex; gap: 3px; flex: 0 0 auto; }
.jb-chef__progress i { display: block; width: 12px; height: 3px; border-radius: 2px; background: #d2dbcf; }
.jb-chef__progress i.is-complete { background: #679c86; }
.jb-chef__progress i.is-current { background: #206e5f; }
.jb-chef h3 { margin: 0 0 8px; color: var(--jb-chef-ink); font-family: var(--sans, ui-sans-serif, system-ui, sans-serif); font-size: 17px; font-weight: 730; line-height: 1.3; letter-spacing: -.025em; }
.jb-chef__context p { margin: 8px 0; font-size: 13px; line-height: 1.6; }
.jb-chef__context .jb-chef__snapshot { color: #285c46; font-size: 12px; font-weight: 760; }
.jb-chef__context .jb-chef__selection { padding-top: 9px; border-top: 1px solid #d7e1d3; color: #52664f; font-size: 12px; }
.jb-chef__next { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 44px; margin-top: 15px; padding: 10px 14px; border: 1px solid transparent; border-radius: 9px; color: var(--jb-chef-ivory); background: #123f32; font-weight: 720 !important; font-size: 13px !important; }
.jb-chef__next:hover { background: #1c5947; }
.jb-chef__next > span:last-child { color: var(--jb-chef-cyan); font-size: 20px; line-height: 1; }
.jb-chef__next-hint { display: block; margin-top: 7px; color: #637060; font-size: 11px; line-height: 1.5; }
.jb-chef__action-label { margin: 19px 0 9px; color: #677363; font-size: 11px; font-weight: 720; }
.jb-chef__actions { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 7px; }
.jb-chef__action { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin: 0; padding: 10px 8px; border: 1px solid #d4dfd1; border-radius: 9px; color: var(--jb-chef-ink); background: transparent; font-size: 12px !important; font-weight: 680 !important; line-height: 1.45; text-align: center; text-decoration: none; }
.jb-chef__action--wide { grid-column: 1 / -1; justify-content: space-between; padding-inline: 13px; }
.jb-chef__action:hover, .jb-chef__action[aria-expanded="true"] { border-color: #629b85; background: #edf6ee; }
.jb-chef__advice { margin-top: 15px; padding: 15px 0 0; border-top: 1px solid #d3e0d2; }
.jb-chef__advice h3 { font-size: 16px; }
.jb-chef__advice ul { display: grid; gap: 10px; margin: 12px 0 15px; padding: 0 0 0 18px; color: #4a5e4a; font-size: 13px; }
.jb-chef__advice li::marker { color: #438773; }
.jb-chef__text-link { display: inline-flex; align-items: center; min-height: 40px; color: #215f4a; font-size: 12px; font-weight: 730; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.jb-chef__note { margin: 13px 0 0; padding: 12px; border-left: 3px solid #4d8e77; color: #254b38; background: #edf5e9; font-size: 12px; }
.jb-chef__footer { display: flex; justify-content: space-between; align-items: center; flex: 0 0 auto; gap: 8px; padding: 11px 18px; border-top: 1px solid #e0e7d9; background: #f8faf2; color: #667160; font-size: 10px; line-height: 1.4; }
.jb-chef__footer a { display: inline-flex; align-items: center; min-height: 25px; color: #335d47; font-weight: 700; text-underline-offset: 2px; }
.jb-chef__sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.modal-open .jb-chef, .nav-open .jb-chef { visibility: hidden; pointer-events: none; }
@keyframes jb-chef-appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
	.jb-chef { right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + env(safe-area-inset-bottom, 0px) + var(--jb-chef-keyboard) + var(--jb-chef-lift)); max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px)); gap: 8px; }
	.jb-chef__launcher { min-height: 52px; gap: 7px; padding: 3px 12px 3px 3px; }
	.jb-chef__launcher > span:last-child { font-size: 11px; }
	.jb-chef__avatar { width: 44px; height: 44px; }
	.jb-chef__panel { width: 360px; max-height: calc(var(--jb-chef-viewport) - 91px - var(--jb-chef-lift) - env(safe-area-inset-bottom, 0px) - env(safe-area-inset-top, 0px)); border-radius: 18px; }
	.jb-chef__header { min-height: 81px; padding: 13px 12px 13px 16px; gap: 11px; }
	.jb-chef__portrait { width: 48px; height: 53px; border-radius: 12px; }
	.jb-chef h2 { font-size: 22px; }
	.jb-chef__body { padding: 15px; }
	.jb-chef__close { margin-top: -9px; }
}
@media (max-height: 520px) {
	.jb-chef__header { min-height: 62px; padding-block: 8px; }
	.jb-chef__portrait { width: 39px; height: 43px; }
	.jb-chef__footer { padding-block: 5px; }
	.jb-chef__body { padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
	.jb-chef *, .jb-chef *::before, .jb-chef *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
	.jb-chef__panel, .jb-chef__launcher, .jb-chef__next, .jb-chef__action { border: 1px solid ButtonText; }
	.jb-chef button:focus-visible, .jb-chef a:focus-visible { outline-color: Highlight; }
}
@media print { .jb-chef { display: none !important; } }
