/*
 * «Pianifica», 2026-10-16 (owner: «vastly improve the pianifica UI»): the
 * notebook page only, after css/mwf-notebook.css (its colours and fonts).
 *
 *   the planner      a panel of its own above the days; its sheet: the day (a
 *                    row of its own, each day with its sezioni), the producers
 *                    (a search, the filters: place, section, type, WineHunter
 *                    Award, region or country), the programme of the day,
 *                    the breaks
 *   the times        − / + beside a stop's minutes: longer pushes the later
 *                    stops on, shorter leaves free time
 *   «Salva»          a percorso kept under a name
 *   «Percorsi»       the saved ones, day by day, on the plan with the name
 *                    under it
 *
 * Nothing scales on touch (a ripple or a colour answers a tap); a lone button
 * on a phone is half the width, in the middle.
 */

/* ---------------------------------------------------------- the planner */
/* owner, 2026-10-16: «not just add, more of a detailed planner … lift it
   above the days and make it independent» — a dark panel of its own on the
   paper, above the days: what it does, the button that opens it (the day is
   chosen inside); every word in the middle */
.mwfn-planner {
	margin: 1.1rem 0 1.3rem;
	padding: 20px 18px 18px;
	border-radius: 18px;
	background: linear-gradient(175deg, var(--mwfn-wine-mid) 0%, #2f1a1c 100%);
	box-shadow: 0 18px 32px -24px rgba(40, 25, 27, .75), inset 0 0 0 1px rgba(205, 173, 89, .55), inset 0 0 0 6px rgba(40, 25, 27, .85), inset 0 0 0 7px rgba(205, 173, 89, .25);
	text-align: center;
	color: var(--mwfn-cream);
}
.mwfn-planner-k { margin: 0; font: 700 .64rem/1.5 var(--mwfn-sans); letter-spacing: .26em; text-transform: uppercase; color: rgba(241, 228, 184, .72); }
.mwfn-planner-h { margin: 6px 0 0; font: 700 1.32rem/1.3 var(--mwfn-serif); color: var(--mwfn-gold-light); }
.mwfn-planner-p { max-width: 30rem; margin: 8px auto 0; font: 500 .86rem/1.5 var(--mwfn-sans); color: rgba(244, 239, 228, .8); }
.mwfn-planner .mwfn-plan-addbar { margin-top: 16px; }
.mwfn-plan-addbar { display: flex; justify-content: center; gap: 10px; margin-top: 1rem; }
.mwfn-plan-add {
	flex: 0 1 auto;
	min-width: calc((100% - 10px) / 2);
	max-width: 22rem;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}
.mwfn-plan-add svg { flex: 0 0 auto; width: 18px; height: 18px; }
.mwfn-sched-bar--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .mwfn-sched-bar--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* − 20 min + : the stop's minutes, quickly */
.mwfn-sched-steps { display: inline-flex; align-items: center; gap: 6px; }
.mwfn-sched-step {
	display: inline-grid;
	place-items: center;
	width: 34px;
	height: 34px;
	padding: 0;
	border: 1px solid rgba(140, 109, 31, .45);
	border-radius: 50%;
	background: #fff;
	font: 700 1.1rem/1 var(--mwfn-sans);
	color: var(--mwfn-gold-dark);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	box-shadow: 0 6px 12px -10px rgba(40, 25, 27, .6);
	transition: background-color .18s, color .18s;
}
.mwfn-sched-step:active { background: var(--mwfn-gold-light); color: var(--mwfn-wine); }
.mwfn-sched-step:disabled { opacity: .35; cursor: default; }
.mwfn-sched-step:focus-visible { outline: 2px solid var(--mwfn-gold-dark); outline-offset: 2px; }
/* a stop whose time moved: a gold glow fades (no movement) */
.mwfn-sched-item.is-moved > .mwfn-tcard,
.mwfn-sched-item.is-moved > .mwfn-scard { animation: mwfn-moved 1.2s ease-out; }
@keyframes mwfn-moved {
	0% { box-shadow: inset 0 0 0 2px var(--mwfn-gold), 0 0 0 6px rgba(205, 173, 89, .35); }
	100% { box-shadow: inset 0 0 0 1px rgba(205, 173, 89, .45), 0 18px 32px -26px rgba(40, 25, 27, .55); }
}
@media (prefers-reduced-motion: reduce) {
	.mwfn-sched-item.is-moved > .mwfn-tcard,
	.mwfn-sched-item.is-moved > .mwfn-scard { animation: none; }
}
.mwfn-sched-gap.is-free { color: var(--mwfn-wine); }

/* --------------------------------------------------- «Aggiungi»: the sheet */
/* (owner, 2026-10-17: «no visible scroll bar … the top border is covered»)
   the card stands still and frames the sheet — its gold edge always in
   sight —, the head on top, only the list under it scrolls, its bar hidden;
   a soft fade at the list's foot while there is more below */
.mwfn-sheet--add .mwfn-card { display: flex; flex-direction: column; overflow: hidden; padding-top: 1px; }
@media (min-width: 900px) { .mwfn-sheet--add .mwfn-card { width: min(680px, calc(100% - 48px)); padding-top: 8px; } }
.mwfn-add-head {
	position: relative;
	z-index: 3;
	flex: 0 0 auto;
	margin: 0 -20px;
	padding: 10px 20px 12px;
	border-radius: 21px 21px 0 0;
	background: linear-gradient(175deg, var(--mwfn-wine-mid) 0%, #2f1a1c 100%);
	box-shadow: 0 12px 18px -16px rgba(0, 0, 0, .8);
}
.mwfn-sheet--add .mwfn-add-bodybox {
	flex: 1 1 auto;
	min-height: 0;
	margin: 0 -20px;
	padding: 0 20px 6px;
	overflow-y: auto;
	overscroll-behavior: contain;
	scroll-padding-bottom: var(--mwfn-kb, 0px);
	scrollbar-width: none;
}
.mwfn-sheet--add .mwfn-add-bodybox::-webkit-scrollbar { display: none; width: 0; height: 0; }
.mwfn-sheet--add .mwfn-card::after {
	content: '';
	position: absolute;
	left: 1px;
	right: 1px;
	bottom: calc(22px + max(env(safe-area-inset-bottom, 0px), var(--mwfn-kb, 0px)));
	height: 52px;
	background: linear-gradient(to bottom, rgba(40, 25, 27, 0), rgba(40, 25, 27, .92));
	pointer-events: none;
	opacity: 0;
	transition: opacity .25s;
}
.mwfn-sheet--add .mwfn-card.is-more::after { opacity: 1; }
@media (min-width: 900px) {
	.mwfn-add-head { margin: 0 -28px; padding: 10px 28px 12px; border-radius: 10px 10px 0 0; }
	.mwfn-sheet--add .mwfn-add-bodybox { margin: 0 -28px; padding: 0 28px 6px; }
	.mwfn-sheet--add .mwfn-card::after { left: 8px; right: 8px; bottom: 32px; }
}
@media (prefers-reduced-motion: reduce) { .mwfn-sheet--add .mwfn-card::after { transition: none; } }
.mwfn-add-tabs {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 4px;
	margin-top: 12px;
	padding: 4px;
	border: 1px solid rgba(205, 173, 89, .35);
	border-radius: 16px;
	background: rgba(0, 0, 0, .22);
}
.mwfn-add-tab {
	min-height: 42px;
	padding: 6px 4px;
	border: 0;
	border-radius: 12px;
	background: none;
	font: 700 .7rem/1.2 var(--mwfn-sans);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: rgba(241, 228, 184, .78);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s, color .2s;
}
.mwfn-add-tab[aria-selected="true"] { background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-add-tab:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
/* no accounts: the producers alone, no tabs */
.mwfn-add-tabs[hidden] { display: none; }

/* the day, a row of its own above the tabs (owner, 2026-10-16: «dedicate a
   row for the user to select the date … what event section»): each festival
   day with its sezioni, across under a finger; the day chosen gold */
.mwfn-add-days {
	display: flex;
	gap: 8px;
	margin: 14px -20px 0;
	padding: 2px 20px 4px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.mwfn-add-days::-webkit-scrollbar { display: none; }
.mwfn-add-day {
	flex: 1 0 8.4rem;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 3px;
	min-height: 58px;
	padding: 8px 10px;
	border: 1px solid rgba(205, 173, 89, .45);
	border-radius: 14px;
	background: rgba(0, 0, 0, .22);
	text-align: center;
	color: var(--mwfn-gold-light);
	cursor: pointer;
	scroll-snap-align: center;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s, border-color .2s, color .2s;
}
.mwfn-add-day-d { font: 700 .86rem/1.2 var(--mwfn-sans); }
.mwfn-add-day-s { font: 600 .6rem/1.35 var(--mwfn-sans); letter-spacing: .04em; color: rgba(241, 228, 184, .72); }
.mwfn-add-day[aria-pressed="true"] { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-add-day[aria-pressed="true"] .mwfn-add-day-s { color: rgba(42, 29, 16, .8); }
.mwfn-add-day:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .mwfn-add-day { transition: none; } }
.mwfn-add-q {
	display: block;
	width: 100%;
	min-height: 48px;
	margin-top: 12px;
	padding: 10px 16px;
	border: 1px solid rgba(205, 173, 89, .45);
	border-radius: 14px;
	background: rgba(0, 0, 0, .25);
	font: 500 1rem/1.3 var(--mwfn-sans);
	color: #fff;
}
.mwfn-add-q::placeholder { color: rgba(241, 228, 184, .55); }
.mwfn-add-q:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
.mwfn-add-q[hidden] { display: none; }

/* the filters: one row of pills; a pill's options open under the row */
.mwfn-add-pills {
	display: flex;
	gap: 8px;
	margin: 12px -20px 0;
	padding: 0 20px 2px;
	overflow-x: auto;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.mwfn-add-pills::-webkit-scrollbar { display: none; }
.mwfn-add-pills[hidden] { display: none; }
.mwfn-add-pill {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 38px;
	padding: 6px 14px;
	border: 1px solid rgba(205, 173, 89, .45);
	border-radius: 999px;
	background: none;
	font: 600 .78rem/1.2 var(--mwfn-sans);
	color: var(--mwfn-gold-light);
	cursor: pointer;
	white-space: nowrap;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .2s, color .2s, border-color .2s;
}
.mwfn-add-pill::after {
	content: '';
	width: 7px;
	height: 7px;
	margin-top: -3px;
	border-right: 1.6px solid currentColor;
	border-bottom: 1.6px solid currentColor;
	transform: rotate(45deg);
	transition: transform .2s;
}
.mwfn-add-pill[aria-expanded="true"]::after { margin-top: 3px; transform: rotate(-135deg); }
.mwfn-add-pill.is-set { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-add-pill:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
.mwfn-add-opts {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin-top: 10px;
	padding: 12px;
	border-radius: 16px;
	background: rgba(0, 0, 0, .22);
}
.mwfn-add-opts[hidden] { display: none; }
.mwfn-add-opts.is-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); max-height: 13.5rem; overflow-y: auto; }
/* hidden wins over the list's grid (same weight, so it comes after) */
.mwfn-add-opts.is-list[hidden] { display: none; }
.mwfn-add-opt {
	min-height: 38px;
	padding: 6px 14px;
	border: 1px solid rgba(205, 173, 89, .4);
	border-radius: 999px;
	background: none;
	font: 600 .78rem/1.2 var(--mwfn-sans);
	color: #fff;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	text-align: center;
}
.mwfn-add-opts.is-list .mwfn-add-opt { border-radius: 12px; justify-content: flex-start; text-align: left; }
.mwfn-add-opt img { width: 18px; height: 18px; }
.mwfn-add-opt[aria-pressed="true"] { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-add-opt:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
.mwfn-add-count {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 14px;
	margin: 14px 0 0;
	font: 700 .66rem/1.5 var(--mwfn-sans);
	letter-spacing: .2em;
	text-transform: uppercase;
	color: rgba(241, 228, 184, .72);
}
.mwfn-add-reset {
	min-height: 32px;
	padding: 4px 10px;
	border: 0;
	background: none;
	font: inherit;
	letter-spacing: inherit;
	text-transform: inherit;
	color: var(--mwfn-gold);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.mwfn-add-reset[hidden] { display: none; }
.mwfn-add-note {
	max-width: 26rem;
	margin: 14px auto 0;
	font: 500 .84rem/1.5 var(--mwfn-sans);
	text-align: center;
	color: rgba(244, 239, 228, .8);
	text-wrap: balance;
}
.mwfn-add-note[hidden] { display: none; }
.mwfn-add-note .mwfn-btn { display: flex; align-items: center; justify-content: center; width: calc(50% - 5px); margin: 12px auto 0; text-align: center; }

/* the results: a producer, an event of the programme, a break */
.mwfn-add-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.mwfn-add-row {
	display: grid;
	grid-template-columns: 52px minmax(0, 1fr) 48px;
	align-items: center;
	gap: 12px;
	padding: 10px 10px 10px 12px;
	border-radius: 16px;
	background: rgba(251, 248, 241, .06);
	box-shadow: inset 0 0 0 1px rgba(205, 173, 89, .28);
}
.mwfn-add-row.is-in { box-shadow: inset 0 0 0 1.5px var(--mwfn-gold); background: rgba(205, 173, 89, .1); }
.mwfn-add-plate {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	border-radius: 12px;
	background: linear-gradient(175deg, var(--mwfn-wine) 0%, var(--mwfn-wine-mid) 100%);
	box-shadow: inset 0 0 0 1px rgba(205, 173, 89, .55);
	text-align: center;
}
.mwfn-add-plate-l { font: 700 .5rem/1.2 var(--mwfn-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mwfn-gold-light); }
.mwfn-add-plate-n { margin-top: 3px; font: 700 1.2rem/1 var(--mwfn-serif); font-variant-numeric: lining-nums; color: #fff; overflow-wrap: anywhere; }
.mwfn-add-plate-n.is-long { font-size: .86rem; }
.mwfn-add-plate.is-time .mwfn-add-plate-n { font: 700 .9rem/1.1 var(--mwfn-sans); font-variant-numeric: tabular-nums; }
.mwfn-add-plate.is-ico { color: var(--mwfn-gold-light); }
.mwfn-add-plate.is-ico svg { width: 24px; height: 24px; }
.mwfn-add-body { min-width: 0; }
.mwfn-add-k { margin: 0; font: 700 .58rem/1.4 var(--mwfn-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mwfn-gold); }
.mwfn-add-name { margin: 1px 0 0; font: 700 .98rem/1.3 var(--mwfn-serif); color: #fff; overflow-wrap: anywhere; }
.mwfn-add-line { margin: 3px 0 0; font: 500 .78rem/1.4 var(--mwfn-sans); color: rgba(244, 239, 228, .74); }
.mwfn-add-line.is-where { font-weight: 700; color: var(--mwfn-gold-light); }
.mwfn-add-medals { display: inline-flex; gap: 4px; margin-top: 5px; vertical-align: middle; }
.mwfn-add-medals img { width: 18px; height: 18px; }
.mwfn-add-go {
	display: grid;
	place-items: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid rgba(205, 173, 89, .6);
	border-radius: 50%;
	background: none;
	color: var(--mwfn-gold);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s, color .22s, border-color .22s;
}
.mwfn-add-go svg { width: 20px; height: 20px; }
.mwfn-add-go[aria-pressed="true"] { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-add-go:disabled { opacity: .4; cursor: default; }
.mwfn-add-go:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
.mwfn-add-more { display: flex; align-items: center; justify-content: center; width: calc(50% - 5px); margin: 14px auto 0; text-align: center; }
.mwfn-add-empty { margin: 18px 0 0; font: 500 .86rem/1.5 var(--mwfn-sans); text-align: center; color: rgba(244, 239, 228, .75); }
.mwfn-add-empty[hidden] { display: none; }
.mwfn-add-dayh {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 16px 0 2px;
	font: 700 .64rem/1.4 var(--mwfn-sans);
	letter-spacing: .22em;
	text-transform: uppercase;
	color: var(--mwfn-gold);
}
.mwfn-add-dayh::after { content: ''; flex: 1 1 auto; height: 1px; background: rgba(205, 173, 89, .3); }
.mwfn-add-dayh:first-child { margin-top: 0; }

/* the breaks: four tiles, two by two */
.mwfn-add-stops { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.mwfn-add-stop {
	display: grid;
	justify-items: center;
	align-content: start;
	gap: 6px;
	width: 100%;
	min-height: 132px;
	padding: 16px 10px 14px;
	border: 1px solid rgba(205, 173, 89, .4);
	border-radius: 18px;
	background: rgba(251, 248, 241, .06);
	color: #fff;
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s, border-color .22s;
}
.mwfn-add-stop svg { width: 30px; height: 30px; color: var(--mwfn-gold); }
.mwfn-add-stop-n { font: 700 .98rem/1.25 var(--mwfn-serif); }
.mwfn-add-stop-m { font: 600 .74rem/1.3 var(--mwfn-sans); color: rgba(241, 228, 184, .75); }
.mwfn-add-stop-plus { font: 700 .66rem/1 var(--mwfn-sans); letter-spacing: .18em; text-transform: uppercase; color: var(--mwfn-gold); }
.mwfn-add-stop.is-added { border-color: var(--mwfn-gold); background: rgba(205, 173, 89, .16); }
.mwfn-add-stop:disabled { opacity: .45; cursor: default; }
.mwfn-add-stop:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }

/* -------------------------------------------- «Salva il percorso»: a name */
.mwfn-save-name {
	display: block;
	width: 100%;
	min-height: 50px;
	margin-top: 4px;
	padding: 10px 14px;
	border: 1px solid rgba(205, 173, 89, .5);
	border-radius: 14px;
	background: rgba(0, 0, 0, .25);
	font: 500 1rem/1.3 var(--mwfn-sans);
	color: #fff;
}
.mwfn-save-name:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
.mwfn-sheet--save .mwfn-label { margin-top: 18px; text-align: center; }
.mwfn-sheet--save .mwfn-actions { flex-wrap: wrap; }
.mwfn-sheet--save .mwfn-save-new[hidden] { display: none; }

/* ------------------------------------------------- «Percorsi»: the saved */
.mwfn-mine { text-align: center; }
.mwfn-mine-h { margin: 0; font: 700 1.28rem/1.25 var(--mwfn-serif); color: var(--mwfn-wine); text-wrap: balance; }
.mwfn-mine-lead { max-width: 30rem; margin: .5rem auto 0; font: 500 .86rem/1.5 var(--mwfn-sans); color: var(--mwfn-muted); text-wrap: balance; }
.mwfn-mine-map { margin-top: 1rem; }
/* under the plan: the percorso's name, its day and times */
.mwfn-mine-cap { margin: .7rem auto 0; max-width: 32rem; }
.mwfn-mine-cap-n { display: block; font: 700 1.12rem/1.3 var(--mwfn-serif); color: var(--mwfn-wine); overflow-wrap: anywhere; text-wrap: balance; }
.mwfn-mine-cap-m { display: block; margin-top: 3px; font: 600 .8rem/1.4 var(--mwfn-sans); font-variant-numeric: tabular-nums; color: var(--mwfn-gold-dark); }
.mwfn-mine-nomap { margin: 1rem auto 0; max-width: 28rem; font: 500 .84rem/1.5 var(--mwfn-sans); color: var(--mwfn-muted); }
.mwfn-mine-list { display: grid; gap: 12px; margin: 1rem 0 0; padding: 0; list-style: none; text-align: left; }
.mwfn-mine-day { margin-top: 1.2rem; }
.mwfn-mine-day:first-child { margin-top: .4rem; }
.mwfn-mine-card {
	display: grid;
	gap: 4px;
	padding: 16px;
	border-radius: 18px;
	background: #fff;
	box-shadow: inset 0 0 0 1px rgba(205, 173, 89, .45), 0 18px 32px -26px rgba(40, 25, 27, .55);
	scroll-margin: 96px 0;
}
.mwfn-mine-card.is-shown { box-shadow: inset 0 0 0 2px var(--mwfn-gold), 0 18px 32px -26px rgba(40, 25, 27, .55); }
.mwfn-mine-k { margin: 0; font: 700 .6rem/1.4 var(--mwfn-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mwfn-gold-dark); }
.mwfn-mine-name { margin: 0; font: 700 1.1rem/1.3 var(--mwfn-serif); color: var(--mwfn-ink); overflow-wrap: anywhere; text-wrap: balance; }
.mwfn-mine-meta { margin: 2px 0 0; font: 600 .8rem/1.45 var(--mwfn-sans); font-variant-numeric: tabular-nums; color: var(--mwfn-gold-dark); }
.mwfn-mine-when { margin: 0; font: 500 .76rem/1.45 var(--mwfn-sans); color: var(--mwfn-muted); }
.mwfn-mine-rename { display: grid; gap: 8px; margin-top: 6px; }
.mwfn-mine-rename[hidden] { display: none; }
.mwfn-mine-input {
	width: 100%;
	min-height: 46px;
	padding: 8px 12px;
	border: 1px solid rgba(140, 109, 31, .55);
	border-radius: 12px;
	background: var(--mwfn-paper);
	font: 600 1rem/1.3 var(--mwfn-sans);
	color: var(--mwfn-ink);
}
.mwfn-mine-input:focus-visible { outline: 2px solid var(--mwfn-gold-dark); outline-offset: 2px; }
.mwfn-mine-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mwfn-mine-acts .mwfn-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; text-align: center; }
.mwfn-mine-acts .mwfn-btn svg { flex: 0 0 auto; width: 16px; height: 16px; }
.mwfn-mine-acts .mwfn-btn.is-confirm { border-color: #c2633f; color: #8f3a1f; }
.mwfn-mine-none { margin-top: .9rem; }
/* (the empty state under «I miei percorsi»: a line under the title, not a
   second title, and the lead's words, as the signed-out panel has them) */
.mwfn-mine-none .mwfn-log-empty-h { font-size: 1.05rem; line-height: 1.35; }
.mwfn-mine-none .mwfn-log-empty-p { max-width: 30rem; margin: .4rem auto 0; font: 500 .86rem/1.5 var(--mwfn-sans); color: var(--mwfn-muted); text-wrap: balance; }
.mwfn-mine-none .mwfn-btn { display: flex; align-items: center; justify-content: center; width: calc(50% - 5px); margin: 1.1rem auto 0; text-align: center; }

/* four views: on a phone the words may take two lines */
.mwfn-seg--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 420px) { .mwfn-seg--4 .mwfn-seg-btn { padding: 6px 2px; font-size: .64rem; letter-spacing: .04em; line-height: 1.15; } }

/* ------------------------------ the plan guide's pictures of the planner */
/* «Aggiungi»: the sheet's tabs, its search, its filters, a row and its + */
/* five rows in the guide's 150px: the gaps and paddings a little tighter since the day row joined */
.mwfn-m-add { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; max-width: 300px; }
/* the row of days above it all, the day chosen gold */
.mwfn-m-days { display: flex; justify-content: center; gap: 5px; width: 100%; }
.mwfn-m-day {
	flex: 1 1 0;
	padding: 4px;
	border: 1px solid rgba(205, 173, 89, .45);
	border-radius: 10px;
	font: 700 .56rem/1.2 var(--mwfn-sans);
	text-align: center;
	color: var(--mwfn-gold-light);
	white-space: nowrap;
}
.mwfn-m-day.is-on { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-m-chips.is-tabs { width: 100%; gap: 2px; padding: 3px; border: 1px solid rgba(205, 173, 89, .35); border-radius: 12px; background: rgba(0, 0, 0, .22); }
.mwfn-m-chips.is-tabs .mwfn-m-pill { top: 3px; bottom: 3px; border-radius: 9px; }
.mwfn-m-chips.is-tabs .mwfn-m-chip {
	flex: 1 1 0;
	justify-content: center;
	padding: 4px 8px;
	border-color: transparent;
	border-radius: 9px;
	font: 700 .5rem/1.2 var(--mwfn-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: rgba(241, 228, 184, .78);
}
.mwfn-m-chips.is-tabs .mwfn-m-chip.is-on { color: var(--mwfn-ink); }
.mwfn-m-q {
	display: block;
	width: 100%;
	padding: 5px 12px;
	border: 1px solid rgba(205, 173, 89, .45);
	border-radius: 10px;
	background: rgba(0, 0, 0, .25);
	font: 500 .6rem/1.2 var(--mwfn-sans);
	text-align: center;
	color: rgba(241, 228, 184, .6);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}
.mwfn-m-fpills { display: flex; justify-content: center; gap: 5px; width: 100%; }
.mwfn-m-fpill {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 3px 9px;
	border: 1px solid rgba(205, 173, 89, .45);
	border-radius: 999px;
	font: 600 .56rem/1.2 var(--mwfn-sans);
	color: var(--mwfn-gold-light);
	white-space: nowrap;
	transition: background-color .2s, color .2s, border-color .2s;
}
.mwfn-m-fpill::after { content: ''; width: 4px; height: 4px; margin-top: -2px; border-right: 1.2px solid currentColor; border-bottom: 1.2px solid currentColor; transform: rotate(45deg); }
.mwfn-m-fpill.is-set { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-m-addrow {
	display: grid;
	grid-template-columns: 36px minmax(0, 1fr) 26px;
	align-items: center;
	gap: 10px;
	width: 100%;
	padding: 6px 8px;
	border-radius: 12px;
	background: rgba(251, 248, 241, .06);
	box-shadow: inset 0 0 0 1px rgba(205, 173, 89, .28);
	transition: background-color .22s, box-shadow .22s;
}
.mwfn-m-addrow.is-in { background: rgba(205, 173, 89, .1); box-shadow: inset 0 0 0 1.5px var(--mwfn-gold); }
.mwfn-m-addrow .mwfn-m-plate { width: 36px; height: 26px; box-shadow: inset 0 0 0 1px rgba(205, 173, 89, .55); }
.mwfn-m-plate.is-time { font: 700 .6rem/1 var(--mwfn-sans); font-variant-numeric: tabular-nums; }
.mwfn-m-plate.is-ico { color: var(--mwfn-gold-light); }
.mwfn-m-plate.is-ico svg { width: 15px; height: 15px; }
.mwfn-m-addgo { display: grid; place-items: center; width: 26px; height: 26px; border: 1px solid rgba(205, 173, 89, .6); border-radius: 50%; color: var(--mwfn-gold); transition: background-color .22s, color .22s, border-color .22s; }
.mwfn-m-addgo svg { width: 13px; height: 13px; }
.mwfn-m-addgo.is-on { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
/* the times: − / + beside a stop's minutes, the free time, «Salva» → «Percorsi» */
.mwfn-m-times { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; max-width: 300px; }
.mwfn-m-times .mwfn-m-card { width: 100%; padding: 6px 10px; transition: box-shadow .3s; }
.mwfn-m-times .mwfn-m-plate { width: 26px; height: 26px; font-size: .78rem; }
/* the stop a change moved: a gold ring glows, nothing moves */
.mwfn-m-stop.is-moved { box-shadow: inset 0 0 0 2px var(--mwfn-gold), 0 0 0 4px rgba(205, 173, 89, .3); }
.mwfn-m-when { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.mwfn-m-t { font: 700 .66rem/1 var(--mwfn-sans); font-variant-numeric: tabular-nums; color: var(--mwfn-wine); white-space: nowrap; }
.mwfn-m-steps { display: inline-flex; align-items: center; gap: 4px; }
.mwfn-m-step {
	display: inline-grid;
	place-items: center;
	width: 20px;
	height: 20px;
	border: 1px solid rgba(140, 109, 31, .45);
	border-radius: 50%;
	background: #fff;
	font: 700 .7rem/1 var(--mwfn-sans);
	color: var(--mwfn-gold-dark);
	transition: background-color .18s, color .18s;
}
.mwfn-m-step.is-on { background: var(--mwfn-gold-light); color: var(--mwfn-wine); }
.mwfn-m-dur {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	padding: 3px 7px;
	border: 1px solid rgba(140, 109, 31, .35);
	border-radius: 999px;
	font: 700 .54rem/1 var(--mwfn-sans);
	font-variant-numeric: tabular-nums;
	color: var(--mwfn-wine);
	white-space: nowrap;
}
.mwfn-m-dur svg { width: 9px; height: 9px; color: var(--mwfn-gold-dark); }
.mwfn-m-dur.is-static { border-color: transparent; }
.mwfn-m-gap { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; font: 600 .56rem/1.2 var(--mwfn-sans); color: var(--mwfn-gold-light); white-space: nowrap; }
.mwfn-m-gap::before,
.mwfn-m-gap::after { content: ''; flex: 1 1 auto; border-top: 1px dashed rgba(205, 173, 89, .55); }
.mwfn-m-keep { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mwfn-m-keep .mwfn-m-btn { flex: none; min-height: 26px; padding: 4px 11px; transition: background-color .2s, color .2s; }
/* gold without losing its border: the button keeps its size */
.mwfn-m-keep .mwfn-m-btn.is-gold { border: 1px solid var(--mwfn-gold); }
.mwfn-m-arrow { display: inline-grid; place-items: center; color: var(--mwfn-gold); }
.mwfn-m-arrow svg { width: 11px; height: 11px; }
.mwfn-m-keep .mwfn-m-chip { transition: border-color .25s; }
.mwfn-m-keep .mwfn-m-chip.is-lit { border-color: var(--mwfn-gold); }
.mwfn-m-keep .mwfn-m-count { background: var(--mwfn-wine); color: var(--mwfn-cream); transition: background-color .25s, color .25s; }
.mwfn-m-keep .mwfn-m-chip.is-lit .mwfn-m-count { background: var(--mwfn-gold); color: var(--mwfn-ink); }
@media (prefers-reduced-motion: reduce) {
	.mwfn-m-fpill,
	.mwfn-m-addrow,
	.mwfn-m-addgo,
	.mwfn-m-times .mwfn-m-card,
	.mwfn-m-step,
	.mwfn-m-keep .mwfn-m-btn,
	.mwfn-m-keep .mwfn-m-chip,
	.mwfn-m-keep .mwfn-m-count { transition: none; }
}

/* ================================================================
   «Pianifica»'s rework (owner, 2026-10-17)

     the days        every festival day: grey with a chevron while it holds
                     nothing, gold with its count once it does; the one shown
                     ringed in wine
     the times       «Scegli i tuoi orari»: the day (and its start) beside the
                     clock and what it sets; closed, «Impostazioni orario»
     a stop          its minutes tapped: − and + for that stop alone; two
                     stops at the same time ringed in rust, named
     the + tile      an empty gold frame at the foot of the day: the planner
     a visit's time  asked in the planner's row before it is added
     «Annulla»       a star taken back: the card fades for five seconds, a
                     circular arrow brings it back, a gold line runs out

   Nothing scales on touch; transform and opacity move, nothing else.
   ================================================================ */

/* ------------------------------------------------------------ the days */
.mwfn-log .mwfn-plan-day { min-height: 40px; padding: 6px 8px 6px 16px; transition: background-color .25s, border-color .25s, box-shadow .25s; }
.mwfn-log .mwfn-plan-day.is-empty { border-color: rgba(122, 102, 69, .22); background: #ebe7df; color: #6f6556; }
.mwfn-log .mwfn-plan-day.is-full { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-log .mwfn-plan-days > .mwfn-plan-day[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--mwfn-paper), 0 0 0 4px var(--mwfn-wine); }
/* a desktop: the day and its percorsi button one pill, both grey or both gold;
   the day shown: the button in wine (the export lane's .is-on) */
.mwfn-log .mwfn-plan-dayg.is-empty .mwfn-plan-plans { border-color: rgba(122, 102, 69, .22); background: #ebe7df; color: #8b8172; }
.mwfn-log .mwfn-plan-dayg.is-full .mwfn-plan-plans { border-color: var(--mwfn-gold); background: #e2c77d; color: var(--mwfn-wine); }
.mwfn-log .mwfn-plan-dayg.is-on .mwfn-plan-plans,
.mwfn-log .mwfn-plan-dayg .mwfn-plan-plans[aria-expanded="true"] { border-color: var(--mwfn-wine); background: var(--mwfn-wine); color: var(--mwfn-cream); }
.mwfn-log .mwfn-plan-dayg.is-on > .mwfn-plan-day { border-color: var(--mwfn-wine); }
/* the five festival days on one line of the notebook's column */
@media (min-width: 700px) {
	.mwfn-log .mwfn-plan-dayg > .mwfn-plan-day { padding-left: 13px; padding-right: 9px; }
	.mwfn-log .mwfn-plan-dayg > .mwfn-plan-plans { min-width: 34px; padding: 0 9px 0 7px; }
}
.mwfn-plan-day.is-full .mwfn-route-room-c { background: rgba(255, 255, 255, .45); color: var(--mwfn-wine); }
.mwfn-plan-day.is-full[aria-pressed="true"] .mwfn-route-room-c { background: var(--mwfn-wine); color: var(--mwfn-cream); }
.mwfn-plan-day-go { display: inline-grid; place-items: center; width: 24px; height: 24px; color: #8b8172; }
.mwfn-plan-day-go svg { width: 16px; height: 16px; }
.mwfn-plan-day[aria-pressed="true"] .mwfn-plan-day-go { color: var(--mwfn-wine); }
@media (prefers-reduced-motion: reduce) { .mwfn-log .mwfn-plan-day { transition: none; } }

/* ------------------------------------------------------------ the times */
.mwfn-sched-clashes { margin: .3rem 0 0; font: 700 .74rem/1.3 var(--mwfn-sans); letter-spacing: .04em; color: #a3401f; }
.mwfn-sched-bar--n { grid-template-columns: repeat(var(--n, 2), minmax(0, 1fr)); }
.mwfn-sched-bar--n[data-n="2"] { --n: 2; }
/* a desktop's four in a row: each icon over its word, as on a phone — the
   longest («Impostazioni orario») on one line where it fits, else two */
@media (min-width: 640px) { .mwfn-log .mwfn-sched-bar .mwfn-sched-btn { flex-direction: column; gap: 5px; min-height: 64px; padding: 8px 6px; letter-spacing: .05em; text-wrap: balance; } }
.mwfn-sched-bar--n[data-n="3"] { --n: 3; }
/* one alone: half the bar, in the middle */
.mwfn-sched-bar--n[data-n="1"] { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.mwfn-sched-bar--n[data-n="1"] > .mwfn-sched-btn { width: calc((100% - 8px) / 2); }
.mwfn-times { padding: 1.1rem .9rem 1rem; }
.mwfn-times-h { margin: 0; font: 700 1.18rem/1.3 var(--mwfn-serif); color: var(--mwfn-wine); text-align: center; text-wrap: balance; }
.mwfn-times-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; margin-top: 1rem; }
@media (min-width: 700px) {
	/* two equal columns: the day on the left, the clock on the right */
	.mwfn-times-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
	.mwfn-times-day { padding-right: 1.1rem; border-right: 1px solid rgba(205, 173, 89, .35); }
	.mwfn-times-clock { padding-left: 1.1rem; }
}
.mwfn-times-l { margin: 0 0 .55rem; font: 700 .66rem/1.4 var(--mwfn-sans); letter-spacing: .2em; text-transform: uppercase; color: var(--mwfn-gold-dark); text-align: center; }
/* phones: three to a row, the rest in the middle; wide: one under the other */
.mwfn-times-days { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.mwfn-times-dayb { flex: 0 0 calc((100% - 12px) / 3); }
@media (min-width: 700px) { .mwfn-times-days { flex-direction: column; flex-wrap: nowrap; } .mwfn-times-dayb { flex: 0 0 auto; } }
.mwfn-times-dayb {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 42px;
	padding: 6px 8px;
	border: 1px solid rgba(122, 102, 69, .22);
	border-radius: 12px;
	background: #ebe7df;
	font: 600 .78rem/1.2 var(--mwfn-sans);
	color: #6f6556;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s, border-color .22s, box-shadow .22s, color .22s;
}
.mwfn-times-dayb.is-full { border-color: var(--mwfn-gold); background: rgba(205, 173, 89, .22); color: var(--mwfn-ink); }
.mwfn-times-dayb[aria-pressed="true"] { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); box-shadow: inset 0 0 0 2px var(--mwfn-wine); }
.mwfn-times-dayb:focus-visible,
.mwfn-times-kind:focus-visible { outline: 2px solid var(--mwfn-gold-dark); outline-offset: 2px; }
.mwfn-times-day .mwfn-sched-start { margin-top: 1rem; }
.mwfn-times-pick { display: grid; place-items: center; min-height: 100%; margin: 0; padding: 1rem .5rem; font: 500 .9rem/1.5 var(--mwfn-sans); color: var(--mwfn-muted); text-align: center; text-wrap: balance; }
.mwfn-times-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
/* each icon over its word (the day's bar does the same on a phone): the
   two-line words stay in the middle */
.mwfn-times-kind {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 5px;
	min-width: 0;
	min-height: 60px;
	padding: 8px 6px;
	border: 1px solid rgba(140, 109, 31, .4);
	border-radius: 12px;
	background: #fff;
	font: 700 .66rem/1.2 var(--mwfn-sans);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--mwfn-ink);
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s, border-color .22s, color .22s;
}
.mwfn-times-kind svg { flex: 0 0 auto; width: 18px; height: 18px; color: var(--mwfn-gold-dark); }
.mwfn-times-kind[aria-pressed="true"] { border-color: var(--mwfn-gold); background: var(--mwfn-gold); }
.mwfn-times-kind[aria-pressed="true"] svg { color: var(--mwfn-wine); }
.mwfn-times-kindt { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.mwfn-times-clock .mwfn-dial { margin: 1rem auto 0; }
.mwfn-sched-foot { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mwfn-sched-foot[data-n="1"] { grid-template-columns: minmax(0, 1fr); justify-items: center; }
.mwfn-sched-foot[data-n="1"] > .mwfn-btn { width: calc((100% - 10px) / 2); }
@media (prefers-reduced-motion: reduce) { .mwfn-times-dayb, .mwfn-times-kind { transition: none; } }

/* -------------------------------------------- a stop's minutes, its clash */
.mwfn-log button.mwfn-sched-dur.is-static { cursor: pointer; box-shadow: none; }
.mwfn-log button.mwfn-sched-dur.is-static span { border-bottom: 1px dotted rgba(140, 109, 31, .7); }
.mwfn-sched-item.is-clash .mwfn-sched-t { color: #a3401f; }
.mwfn-sched-item.is-clash > .mwfn-tcard,
.mwfn-sched-item.is-clash > .mwfn-scard { box-shadow: inset 0 0 0 2px #c2633f, 0 18px 32px -26px rgba(40, 25, 27, .55); }
.mwfn-scard-note.is-clash { display: flex; align-items: flex-start; gap: 6px; font-weight: 700; color: #a3401f; }
.mwfn-scard-note.is-clash::before {
	content: '!';
	flex: 0 0 auto;
	display: inline-grid;
	place-items: center;
	width: 16px;
	height: 16px;
	margin-top: 1px;
	border-radius: 50%;
	background: #c2633f;
	font: 700 .66rem/1 var(--mwfn-sans);
	color: #fff;
}

/* -------------------------------------------------------- the + tile */
.mwfn-plan-addtile { margin: 0; list-style: none; }
.mwfn-addtile {
	display: grid;
	place-items: center;
	width: 100%;
	min-height: 112px;
	padding: 0;
	border: 1.5px solid var(--mwfn-gold);
	border-radius: 18px;
	background: none;
	color: var(--mwfn-gold);
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s, border-color .22s, color .22s;
}
.mwfn-addtile svg { width: 46px; height: 46px; }
.mwfn-addtile:active { background: rgba(205, 173, 89, .12); }
.mwfn-addtile:focus-visible { outline: 2px solid var(--mwfn-gold-dark); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .mwfn-addtile:hover { background: rgba(205, 173, 89, .1); color: var(--mwfn-gold-dark); } }
@media (prefers-reduced-motion: reduce) { .mwfn-addtile { transition: none; } }

/* free time between two stops, long enough for one more: a small + frame */
.mwfn-gaptile {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-wrap: wrap;
	gap: 2px 10px;
	width: 100%;
	min-height: 48px;
	margin: 2px 0 10px;
	padding: 6px 14px;
	border: 1.5px solid var(--mwfn-gold);
	border-radius: 14px;
	background: none;
	font: 600 .78rem/1.3 var(--mwfn-sans);
	color: var(--mwfn-gold-dark);
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s;
}
.mwfn-gaptile svg { flex: 0 0 auto; width: 22px; height: 22px; color: var(--mwfn-gold); }
.mwfn-gaptile-m { font-weight: 500; font-variant-numeric: tabular-nums; color: var(--mwfn-muted); }
.mwfn-gaptile:active { background: rgba(205, 173, 89, .12); }
.mwfn-gaptile:focus-visible { outline: 2px solid var(--mwfn-gold-dark); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .mwfn-gaptile:hover { background: rgba(205, 173, 89, .1); } }
@media (prefers-reduced-motion: reduce) { .mwfn-gaptile { transition: none; } }

/* ------------------------------------- «Annulla»: a star taken back */
.mwfn-plan-item.is-leaving .mwfn-pcard { position: relative; }
.mwfn-plan-item.is-leaving .mwfn-pcard > :not(.mwfn-pcard-side):not(.mwfn-leave-run),
.mwfn-plan-item.is-leaving > .mwfn-sched-when,
.mwfn-plan-item.is-leaving > .mwfn-sched-gap { opacity: .38; transition: opacity .25s; }
.mwfn-log .mwfn-pcard .mwfn-star-undo {
	position: relative;
	display: inline-grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-top: 0;
	border: 1.5px solid var(--mwfn-gold);
	border-radius: 50%;
	background: #fff;
	color: var(--mwfn-wine);
}
.mwfn-star-undo svg { width: 22px; height: 22px; }
.mwfn-star-undo-t {
	position: absolute;
	top: calc(100% + 5px);
	left: 50%;
	transform: translateX(-50%);
	font: 700 .58rem/1 var(--mwfn-sans);
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--mwfn-wine);
	white-space: nowrap;
	pointer-events: none;
}
/* with a mouse: the word as a tip, on hover and focus */
@media (hover: hover) and (pointer: fine) {
	.mwfn-star-undo-t {
		top: 50%;
		left: auto;
		right: calc(100% + 8px);
		transform: translateY(-50%);
		padding: 6px 10px;
		border-radius: 8px;
		background: var(--mwfn-wine);
		color: var(--mwfn-cream);
		opacity: 0;
		transition: opacity .18s;
	}
	.mwfn-star-undo:hover .mwfn-star-undo-t,
	.mwfn-star-undo:focus-visible .mwfn-star-undo-t { opacity: 1; }
}
.mwfn-leave-run { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; background: var(--mwfn-gold); transform-origin: left center; pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
	.mwfn-plan-item.is-leaving .mwfn-pcard > :not(.mwfn-pcard-side):not(.mwfn-leave-run),
	.mwfn-plan-item.is-leaving > .mwfn-sched-when,
	.mwfn-plan-item.is-leaving > .mwfn-sched-gap,
	.mwfn-star-undo-t { transition: none; }
}

/* ------------------------------------- a visit's time, in the planner */
.mwfn-add-row.is-asking { box-shadow: inset 0 0 0 1.5px var(--mwfn-gold); background: rgba(205, 173, 89, .1); }
.mwfn-add-when {
	grid-column: 1 / -1;
	margin: 2px 0 2px;
	padding: 12px 4px 4px;
	border-top: 1px solid rgba(205, 173, 89, .3);
	text-align: center;
}
/* a break's time: a row of its own under the pair it is in */
.mwfn-add-stops .mwfn-add-when-li { grid-column: 1 / -1; margin: 0; padding: 4px 6px 6px; border-radius: 18px; box-shadow: inset 0 0 0 1.5px var(--mwfn-gold); background: rgba(205, 173, 89, .1); list-style: none; }
.mwfn-add-stops .mwfn-add-when { padding-top: 8px; border-top: 0; }
.mwfn-add-stops li.is-asking .mwfn-add-stop { border-color: var(--mwfn-gold); background: rgba(205, 173, 89, .16); }
.mwfn-add-when-q { margin: 0; font: 700 .98rem/1.35 var(--mwfn-serif); color: var(--mwfn-gold-light); text-wrap: balance; }
.mwfn-add-when-row { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 10px; }
.mwfn-add-when-l { font: 700 .7rem/1.2 var(--mwfn-sans); letter-spacing: .14em; text-transform: uppercase; color: rgba(241, 228, 184, .8); }
.mwfn-sheet .mwfn-add-when-t { color-scheme: dark; border-color: rgba(205, 173, 89, .55); background: rgba(0, 0, 0, .25); color: #fff; }
.mwfn-add-when-c { margin: 8px auto 0; max-width: 26rem; font: 600 .8rem/1.45 var(--mwfn-sans); color: #f0a487; text-wrap: balance; }
.mwfn-add-when-c[hidden] { display: none; }
.mwfn-add-when-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.mwfn-add-when-acts .mwfn-btn { display: flex; align-items: center; justify-content: center; min-height: 46px; text-align: center; }
.mwfn-add-when-acts .mwfn-btn--line { border-color: rgba(205, 173, 89, .55); color: var(--mwfn-gold-light); }

/* the WH Buyers Club's B2B appointments (2026-10-18): fixed at their time
   like an event of the programme — its wine plate — the exhibitor's table
   large in it where the club knows it (as on the catalogue's cards), the
   name to the producer's page where the festival has one */
.mwfn-sched-stop.is-club .mwfn-scard-ico { background: linear-gradient(175deg, var(--mwfn-wine) 0%, var(--mwfn-wine-mid) 100%); color: var(--mwfn-gold-light); }
.mwfn-scard .mwfn-scard-tb { align-self: center; min-height: 3.5rem; padding: .5rem .25rem; }
.mwfn-scard-tb .mwfn-tcard-tl { font-size: .52rem; letter-spacing: .16em; }
.mwfn-scard-tb .mwfn-tcard-tn { margin-top: .25rem; font-size: 1.75rem; }
.mwfn-scard-tb .mwfn-tcard-tn.is-long { font-size: 1.1rem; }
.mwfn-scard-link { color: inherit; text-decoration: underline; text-decoration-color: rgba(140, 109, 31, .5); text-decoration-thickness: .06em; text-underline-offset: .2em; }
.mwfn-scard-link::after { content: "\00a0\2197"; font-size: .82em; color: var(--mwfn-gold-dark); }
.mwfn-scard-link:hover,
.mwfn-scard-link:focus-visible { color: var(--mwfn-wine); text-decoration-color: currentColor; }

/* ------------------------------------- the plan's new parts: the palette */
/* The plan's new parts (owner, 2026-10-18: «not coloured to fit … especially
   in GourmetArena»; PERCORSO-ROUTING-PHASE.md D5): one palette for the
   elements tools-assets/kurhaus-plan/build.py emits into
   img/catalogo/kurhaus-nav.json with these classes, in the room family of
   the dark plan — no cyan, no brown; every name mwfc-nav-*, never the
   catalogue's own .mwfc-stage and the like. THE SAME SET is in css/catalogo.css
   (the two pages load one of the two files each): keep them alike
   (tools-assets/kurhaus-plan/test-route.mjs compares them). */
:root {
	--mwfc-nav-zone: rgba(125, 42, 50, .55);         /* Regione Campania: a room's wine, lighter */
	--mwfc-nav-zone-edge: rgba(205, 173, 89, .45);
	--mwfc-nav-stage: rgba(40, 25, 27, .82);         /* the Showcooking Stage: the deep ground */
	--mwfc-nav-stage-edge: rgba(205, 173, 89, .6);
	--mwfc-nav-service: rgba(205, 173, 89, .16);     /* entrances, Guardaroba, Glass Point, Ticketoffice */
	--mwfc-nav-service-edge: rgba(205, 173, 89, .55);
	--mwfc-nav-lift: rgba(40, 25, 27, .9);           /* the elevator: a quiet square … */
	--mwfc-nav-lift-edge: rgba(241, 228, 184, .55);
	--mwfc-nav-lift-on: #f1e4b8;                     /* … lit while the way changes floor */
	--mwfc-nav-stairs: #f1e4b8;                      /* a flight, its chevrons: gold light on the brass walls */
	--mwfc-nav-stairs-rim: #28191b;
}
.mwfn-plan-svg .mwfc-nav-zone,
.mwfn-plan-svg .mwfc-nav-stage,
.mwfn-plan-svg .mwfc-nav-lift { stroke-width: 1px; vector-effect: non-scaling-stroke; pointer-events: none; }
.mwfn-plan-svg .mwfc-nav-zone { fill: var(--mwfc-nav-zone); stroke: var(--mwfc-nav-zone-edge); stroke-dasharray: 3 3; }
.mwfn-plan-svg .mwfc-nav-stage { fill: var(--mwfc-nav-stage); stroke: var(--mwfc-nav-stage-edge); }
.mwfn-plan-svg .mwfc-nav-lift { fill: var(--mwfc-nav-lift); stroke: var(--mwfc-nav-lift-edge); transition: stroke .3s, fill .3s; }
.mwfn-plan-svg .mwfc-nav-lift.is-lit { fill: rgba(241, 228, 184, .22); stroke: var(--mwfc-nav-lift-on); }
.mwfn-plan-svg .mwfn-route-area.is-service { fill: var(--mwfc-nav-service); stroke: var(--mwfc-nav-service-edge); }
/* a flight: its line and our chevrons (the drawing's arrows are not shipped) */
.mwfn-stair-shaft { fill: none; stroke: var(--mwfc-nav-stairs); stroke-linecap: round; stroke-linejoin: round; }
.mwfn-chev { fill: var(--mwfc-nav-stairs); stroke: var(--mwfc-nav-stairs-rim); stroke-width: 1px; stroke-linejoin: round; vector-effect: non-scaling-stroke; }

/* ------------------------------ «Percorso» on the plan v2: the way, its parts */
/* (2026-10-18, PERCORSO-ROUTING-PHASE.md D3/D4) the stairs' chevrons only while
   the way takes them (GSAP lights them, 1.2 s after they go), one small
   chevron each in the still view; the lift a quiet square, lit meanwhile; the
   entrance's door; the stairs-or-lift line under the plan */
.mwfn-chevs .mwfn-chev,
.mwfn-chev--one { opacity: 0; }
.mwfn-plan-map.is-still.is-shown .mwfn-chev--one { opacity: 1; }
.mwfn-lift-glow { fill: rgba(241, 228, 184, .28); stroke: var(--mwfc-nav-lift-on); stroke-width: 2px; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; }
.mwfn-route-door circle { fill: #28191b; stroke: #f1e4b8; stroke-width: 1.4px; vector-effect: non-scaling-stroke; }
.mwfn-route-door path { fill: none; stroke: #f1e4b8; stroke-width: 1.4px; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.mwfn-plan-map:not(.is-shown) .mwfn-route-door { visibility: hidden; opacity: 0; }
.mwfn-plan-liftline {
	margin: 0;
	padding: 0 .9rem .75rem;
	background: rgba(0, 0, 0, .28);
	font: 600 .74rem/1.45 var(--mwfn-sans);
	color: rgba(241, 228, 184, .72);
	text-align: center;
	text-wrap: balance;
	transition: color .3s;
}
.mwfn-plan-liftline.is-on { color: #f1e4b8; }
/* the minutes on foot before a table, between two dotted lines like free time */
.mwfn-sched-walk { display: flex; align-items: center; gap: .45rem; margin: .1rem 0 .5rem; font: 600 .74rem/1.3 var(--mwfn-sans); color: var(--mwfn-muted); }
.mwfn-sched-walk::before,
.mwfn-sched-walk::after { content: ''; flex: 1 1 0; border-top: 1px dotted rgba(140, 109, 31, .5); }
.mwfn-sched-walk svg { flex: 0 0 auto; width: .9rem; height: .9rem; color: var(--mwfn-gold-dark); }
/* «Inizio della giornata» among the breaks: a tile in the middle, the two
   tickets under it — labelled halves */
.mwfn-add-stops .mwfn-add-entry-li { grid-column: 1 / -1; justify-self: center; width: calc(50% - 5px); }
.mwfn-add-stop[aria-expanded="true"] { border-color: var(--mwfn-gold); background: rgba(205, 173, 89, .16); }
.mwfn-add-stops .mwfn-add-entry { grid-column: 1 / -1; margin: 0; padding: .5rem .5rem .6rem; border-radius: 1.1rem; box-shadow: inset 0 0 0 1.5px var(--mwfn-gold); background: rgba(205, 173, 89, .1); list-style: none; }
.mwfn-add-entry-q { margin: .2rem 0 .55rem; font: 700 .9rem/1.35 var(--mwfn-serif); color: var(--mwfn-gold-light); text-align: center; }
.mwfn-add-entry-acts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
.mwfn-add-entry-o {
	display: grid;
	align-content: start;
	justify-items: center;
	gap: .25rem;
	min-height: 2.9rem;
	padding: .7rem .5rem .75rem;
	border: 1px solid rgba(205, 173, 89, .55);
	border-radius: .9rem;
	background: rgba(251, 248, 241, .06);
	color: #fff;
	text-align: center;
	cursor: pointer;
	-webkit-tap-highlight-color: transparent;
	transition: background-color .22s, border-color .22s;
}
.mwfn-add-entry-o[aria-pressed="true"] { border-color: var(--mwfn-gold); background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-add-entry-o:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 2px; }
.mwfn-add-entry-n { font: 700 .86rem/1.25 var(--mwfn-serif); }
.mwfn-add-entry-m { font: 700 .72rem/1.2 var(--mwfn-sans); color: var(--mwfn-gold); }
.mwfn-add-entry-o[aria-pressed="true"] .mwfn-add-entry-m { color: var(--mwfn-ink); }
.mwfn-add-entry-p { font: 500 .7rem/1.35 var(--mwfn-sans); color: rgba(241, 228, 184, .75); text-wrap: balance; }
.mwfn-add-entry-o[aria-pressed="true"] .mwfn-add-entry-p { color: rgba(40, 25, 27, .8); }
@media (hover: hover) {
	.mwfn-add-entry-o:hover { border-color: var(--mwfn-gold); background: rgba(205, 173, 89, .18); }
	.mwfn-add-entry-o[aria-pressed="true"]:hover { background: var(--mwfn-gold); }
}
/* the time settings' seventh kind, the entrance: in the middle under the six */
.mwfn-times-kinds .mwfn-times-kind[data-kind="entry"] { grid-column: 1 / -1; justify-self: center; width: calc(50% - 3px); }

/* the WH Buyers Club's reverse flow (Step A2, 2026-10-19): «Importa i tuoi B2B
   match» beside «Come funziona» — the same pill, gold; the appointments a
   link brings, listed in its sign-in question; «Sincronizza B2B match» in
   the planner, a link to the club */
.mwfn-log-b2b {
	display: inline-flex;
	align-items: center;
	gap: .55rem;
	min-height: 2.5rem;
	margin: 0;
	padding: .375rem 1rem .375rem .4375rem;
	border: 1px solid var(--mwfn-gold);
	border-radius: 999px;
	background: rgba(205, 173, 89, .16);
	font: 700 .74rem/1.2 var(--mwfn-sans);
	letter-spacing: .08em;
	color: var(--mwfn-gold-light);
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
}
.mwfn-log-b2b[hidden] { display: none; }
/* both pills on one centred row, or one under the other — each on the page's axis */
.mwfn-log-helpline:has(.mwfn-log-b2b:not([hidden])) { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.mwfn-log-b2b:focus-visible { outline: 2px solid var(--mwfn-gold-light); outline-offset: 3px; }
.mwfn-log-b2b-i { display: grid; place-items: center; width: 1.625rem; height: 1.625rem; border-radius: 50%; background: var(--mwfn-gold); color: var(--mwfn-ink); }
.mwfn-log-b2b-i svg { width: 1.05rem; height: 1.05rem; }
.mwfn-sheet--q .mwfn-q-list { margin: .75rem auto 0; padding: 0; max-width: 26rem; list-style: none; text-align: center; }
.mwfn-sheet--q .mwfn-q-list[hidden] { display: none; }
.mwfn-sheet--q .mwfn-q-list li { padding: .4rem 0; border-top: 1px solid rgba(205, 173, 89, .28); font: 600 .84rem/1.45 var(--mwfn-sans); color: #f4efe4; text-wrap: balance; }
.mwfn-sheet--q .mwfn-q-list li:first-child { border-top: 0; }
a.mwfn-add-stop--sync { border-color: var(--mwfn-gold); background: rgba(205, 173, 89, .14); text-decoration: none; }
a.mwfn-add-stop--sync .mwfn-add-stop-plus { font-size: 1rem; letter-spacing: 0; text-transform: none; }
