/* Tea Ceremony Booking — tutto sotto .tcb-app, perché il tema non sporchi. */

body.tcb-page { margin: 0; background: #F3EEE3; }

.tcb-app {
	--ink: #221D17;
	--paper: #F3EEE3;
	--sand: #E9E1D0;
	--card: #FFFDF8;
	--muted: #5A5045;
	--line: #CFC4B0;
	--line-soft: #E9E1D0;
	--red: #9C3B26;
	--red-dark: #82301E;
	--gold: #D9A86C;
	--t-green: #4E6838;
	--t-white: #D8CCAE;
	--t-wulong: #8E5524;
	--t-puerh: #5E3022;
	--ok-bg: #E3EBD9;
	--ok: #3E5530;
	--shadow: 0 10px 40px rgba(34, 29, 23, .12);
	--serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
	--sans: 'Nunito Sans', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
	--cn: 'Noto Serif SC', 'Songti SC', serif;

	font-family: var(--sans);
	font-size: 16px;
	line-height: 1.5;
	color: var(--ink);
	background: var(--paper);
	-webkit-font-smoothing: antialiased;
	text-align: left;
}

.tcb-app *, .tcb-app *::before, .tcb-app *::after { box-sizing: border-box; }
/* :where() tiene il reset a specificità bassa: le classi del plugin vincono, gli elementi del tema no. */
.tcb-app :where(h1, h2, h3, h4, p, ul, ol, li, figure, dl, dd) { margin: 0; padding: 0; }
.tcb-app :where(ul) { list-style: none; }
.tcb-app :where(h1, h2, h3, h4) { font-family: var(--serif); font-weight: 600; color: inherit; line-height: 1.15; letter-spacing: 0; text-transform: none; }
.tcb-app :where(a) { color: var(--red); text-decoration: underline; text-underline-offset: 2px; }
.tcb-app :where(button, input, select) { font: inherit; color: inherit; margin: 0; }
.tcb-app :where(button) { cursor: pointer; background: none; border: 0; padding: 0; text-transform: none; letter-spacing: 0; box-shadow: none; }
.tcb-app :where(button:disabled) { cursor: not-allowed; }
.tcb-app :focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 8px; }
.tcb-app .tcb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.tcb-wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.tcb-eyebrow { font-family: var(--sans); font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--red); }
.tcb-gold { color: var(--gold); }

/* ---------- barra in alto e hero ---------- */

.tcb-top { background: var(--ink); color: var(--paper); }
.tcb-top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; }
.tcb-brand { font-size: 11px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: var(--gold) !important; text-decoration: none !important; }
.tcb-top-r { display: flex; align-items: center; gap: 10px; }
.tcb-lang { display: inline-flex; border: 1px solid rgba(243, 238, 227, .25); border-radius: 999px; padding: 2px; }
.tcb-lang button { min-width: 40px; min-height: 36px; border-radius: 999px; font-size: 12px; font-weight: 800; color: rgba(243, 238, 227, .7); }
.tcb-lang button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.tcb-pill { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid rgba(243, 238, 227, .35) !important; font-size: 13px; font-weight: 800; color: var(--paper); background: rgba(243, 238, 227, .06) !important; white-space: nowrap; }
.tcb-pill:hover { background: rgba(243, 238, 227, .14) !important; }

.tcb-hero { background: var(--ink); color: var(--paper); padding: 40px 0 120px; }
.tcb-hero-in { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.tcb-hero h1 { font-size: clamp(40px, 7vw, 64px); font-weight: 500; margin: 10px 0 12px; color: var(--paper); }
.tcb-sub { font-family: var(--serif); font-style: italic; font-size: 20px; line-height: 1.4; color: rgba(243, 238, 227, .82); max-width: 460px; }
.tcb-teas { display: flex; flex-wrap: wrap; gap: 8px; max-width: 320px; }
.tcb-teas li { font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; color: #fff; }
.tcb-teas .t1 { background: var(--t-green); }
.tcb-teas .t2 { background: var(--t-white); color: var(--ink); }
.tcb-teas .t3 { background: var(--t-wulong); }
.tcb-teas .t4 { background: var(--t-puerh); }
.tcb-hero.is-compact { padding: 28px 0 100px; }
.tcb-hero.is-compact h1 { font-size: clamp(32px, 6vw, 44px); margin-bottom: 0; }
.tcb-hero-cn { font-family: var(--cn); font-size: 54px; line-height: 1; color: var(--gold); }

/* ---------- card e layout ---------- */

.tcb-main { margin-top: -90px; padding-bottom: 64px; position: relative; }
.tcb-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.tcb-card { background: var(--card); border-radius: 18px; box-shadow: var(--shadow); padding: 28px; }
.tcb-card h2 { font-size: 30px; margin: 6px 0 6px; }
.tcb-card .tcb-lead { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.tcb-narrow { max-width: 460px; margin: 0 auto; }
.tcb-note { font-size: 12px; color: var(--muted); margin-top: 16px; }
.tcb-center { text-align: center; }

/* tab giorni */
.tcb-tabs { display: inline-flex; flex-wrap: wrap; gap: 4px; background: var(--sand); border-radius: 12px; padding: 4px; margin-bottom: 18px; }
.tcb-tabs button { min-height: 44px; padding: 0 18px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--ink); }
.tcb-tabs button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* turni */
.tcb-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.tcb-slot { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 104px; padding: 16px 18px; border: 1px solid var(--line-soft) !important; border-radius: 14px; background: var(--card) !important; text-align: left; transition: border-color .15s, box-shadow .15s; }
.tcb-slot:hover:not(:disabled) { border-color: var(--line) !important; box-shadow: 0 4px 18px rgba(34, 29, 23, .08); }
.tcb-slot[aria-pressed="true"] { border: 2px solid var(--ink) !important; padding: 15px 17px; }
.tcb-slot.is-current { border: 2px dashed var(--gold) !important; padding: 15px 17px; }
.tcb-slot:disabled { background: var(--sand) !important; border-color: var(--sand) !important; }
.tcb-slot:disabled .tcb-slot-time { color: var(--muted); }
.tcb-slot-time { font-family: var(--serif); font-size: 32px; font-weight: 600; line-height: 1; }
.tcb-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.tcb-dots i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--line); display: block; }
.tcb-dots i.on { background: var(--t-wulong); border-color: var(--t-wulong); }
.tcb-bar { display: block; width: 100%; height: 6px; border-radius: 6px; background: var(--sand); overflow: hidden; }
.tcb-bar b { display: block; height: 100%; background: var(--t-wulong); border-radius: 6px; }
.tcb-slot-lbl { font-size: 12px; font-weight: 800; color: var(--ok); }
.tcb-slot-lbl.is-last { color: var(--red); }
.tcb-slot-lbl.is-off { color: var(--muted); }
.tcb-slot-tag { font-size: 11px; font-weight: 800; color: var(--t-wulong); }

/* form */
.tcb-summary { background: var(--sand); border-radius: 12px; padding: 12px 16px; margin: 14px 0 18px; }
.tcb-summary small { display: block; font-size: 11px; color: var(--muted); }
.tcb-summary strong { font-size: 15px; }
.tcb-field { margin-bottom: 16px; }
.tcb-field label, .tcb-label { display: block; font-size: 13px; font-weight: 800; margin-bottom: 6px; }
.tcb-input { display: block; width: 100%; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line) !important; border-radius: 10px; background: #fff !important; font-size: 16px; color: var(--ink); box-shadow: none; }
.tcb-input::placeholder { color: #A39886; }
.tcb-input:focus { outline: none; border-color: var(--ink) !important; box-shadow: 0 0 0 3px rgba(217, 168, 108, .45); }
.tcb-help { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }
.tcb-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--muted); margin: 6px 0 18px; cursor: pointer; }
.tcb-check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--red); flex: none; }
.tcb-hp { position: absolute; left: -9999px; }

.tcb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 24px; border-radius: 12px; font-size: 15px; font-weight: 800; background: var(--red) !important; color: #FFFDF8 !important; text-decoration: none !important; border: 0; }
.tcb-btn:hover:not(:disabled) { background: var(--red-dark) !important; }
.tcb-btn.is-block { display: flex; width: 100%; }
.tcb-btn.is-muted { background: #CBBFA8 !important; color: var(--ink) !important; }
.tcb-btn.is-ghost { background: transparent !important; color: var(--ink) !important; border: 1.5px solid var(--ink) !important; }
.tcb-btn.is-ghost:hover:not(:disabled) { background: var(--sand) !important; }
.tcb-btn.is-dark { background: var(--ink) !important; }
.tcb-btn:disabled { opacity: .6; }
.tcb-link { min-height: 44px; font-size: 14px; font-weight: 800; color: var(--red) !important; display: inline-flex; align-items: center; justify-content: center; }
.tcb-link-sm { font-size: 13px; font-weight: 700; color: var(--red) !important; text-decoration: underline; }

.tcb-msg { border-radius: 12px; padding: 12px 16px; font-size: 14px; margin: 0 0 16px; }
.tcb-msg.is-err { background: #F6E1DA; color: #7A2A18; }
.tcb-msg.is-ok { background: var(--ok-bg); color: var(--ok); }
.tcb-msg.is-info { background: var(--sand); color: var(--ink); }

/* conferma e dettaglio */
.tcb-rows { border: 1px solid var(--line-soft); border-radius: 12px; margin: 18px 0; }
.tcb-rows > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; font-size: 14px; }
.tcb-rows > div + div { border-top: 1px solid var(--line-soft); }
.tcb-rows dt { color: var(--muted); }
.tcb-rows dd { margin: 0; font-weight: 800; text-align: right; }
.tcb-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--ok-bg); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-size: 13px; font-weight: 700; }
.tcb-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.tcb-big strong { font-family: var(--serif); font-size: 56px; font-weight: 600; line-height: 1; }
.tcb-big span { font-weight: 800; }
.tcb-check-ok { width: 56px; height: 56px; border-radius: 50%; background: var(--ok-bg); color: var(--ok); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 12px; }
.tcb-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.tcb-confirm { background: #F6E1DA; border-radius: 12px; padding: 16px; margin-top: 14px; font-size: 14px; }
.tcb-confirm .tcb-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* codice a 6 cifre */
.tcb-code { display: flex; gap: 8px; margin: 6px 0 8px; }
.tcb-code input { width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 800; border: 1px solid var(--line) !important; border-radius: 10px; background: #fff !important; padding: 0; }
.tcb-code input:focus { outline: none; border: 2px solid var(--red) !important; }
.tcb-sentto { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; margin-bottom: 14px; }
.tcb-sentto small { display: block; color: var(--muted); font-size: 11px; }

/* attesa */
.tcb-wait { text-align: center; padding: 36px 28px; }
.tcb-wait h2 { font-size: clamp(26px, 4vw, 36px); max-width: 640px; margin: 10px auto 22px; }
.tcb-count { display: flex; justify-content: center; gap: 10px; margin: 0 0 22px; }
.tcb-count div { min-width: 76px; background: var(--ink); color: var(--paper); border-radius: 14px; padding: 12px 6px 10px; }
.tcb-count strong { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 600; }
.tcb-count span { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.tcb-wait p { color: var(--muted); max-width: 560px; margin: 0 auto 20px; }
.tcb-schedule { margin-top: 20px; }
.tcb-schedule h3 { font-size: 24px; margin-bottom: 4px; }
.tcb-sched-days { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.tcb-sched-day { border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px; }
.tcb-sched-day h4 { margin: 0 0 10px; font-family: var(--serif); font-size: 20px; font-weight: 600; }
.tcb-sched-day h4::first-letter, .tcb-dayc-h h3::first-letter { text-transform: uppercase; }
.tcb-sched-day ul { display: flex; flex-wrap: wrap; gap: 6px; }
.tcb-sched-day li { background: var(--sand); border-radius: 8px; padding: 6px 10px; font-weight: 800; font-size: 14px; }
.tcb-banner { background: var(--gold); color: var(--ink); text-align: center; font-size: 13px; font-weight: 800; padding: 8px 12px; }

.tcb-foot { text-align: center; font-size: 12px; color: var(--muted); padding: 0 20px 40px; }

@media (max-width: 860px) {
	.tcb-grid2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
	.tcb-wrap { padding: 0 16px; }
	.tcb-card { padding: 22px 18px; border-radius: 16px; }
	.tcb-hero { padding: 28px 0 100px; }
	.tcb-teas { max-width: none; }
	.tcb-top-in { flex-wrap: wrap; gap: 8px; padding-top: 12px; padding-bottom: 10px; }
	.tcb-brand { flex: 1 1 100%; font-size: 10px; letter-spacing: .14em; }
	.tcb-top-r { width: 100%; justify-content: space-between; }
	.tcb-pill { padding: 0 14px; font-size: 12px; }
	.tcb-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tcb-slot { padding: 14px; }
	.tcb-slot-time { font-size: 28px; }
	.tcb-count div { min-width: 0; flex: 1; }
	.tcb-count strong { font-size: 32px; }
	.tcb-code { gap: 6px; }
	.tcb-code input { width: calc((100% - 30px) / 6); height: 54px; }
	.tcb-big strong { font-size: 46px; }
}

/* =================== Pannello organizzatori =================== */

.tcb-wp-wrap { margin: 10px 20px 0 2px; }
.tcb-admin { border-radius: 16px; overflow: hidden; min-height: 400px; }
.tcb-admin .tcb-ahead { background: var(--ink); color: var(--paper); padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tcb-admin .tcb-ahead h1 { font-size: 26px; font-weight: 500; color: var(--paper); margin-top: 2px; }
.tcb-ahead-l { display: flex; align-items: center; gap: 16px; }
.tcb-ahead-r { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tcb-ahead-r .tcb-who { font-size: 12px; color: rgba(243, 238, 227, .7); margin-right: 4px; }
.tcb-abtn { min-height: 38px; padding: 0 14px; border-radius: 9px; font-size: 13px; font-weight: 800; border: 1px solid rgba(243, 238, 227, .3) !important; color: var(--paper); background: transparent; }
.tcb-abtn:hover { background: rgba(243, 238, 227, .1); }
.tcb-abtn.is-gold { background: var(--gold); color: var(--ink); border-color: var(--gold) !important; }
.tcb-abtn.is-gold:hover { background: #E5B985; }
.tcb-abtn.is-light { background: rgba(243, 238, 227, .14); }
.tcb-back { font-size: 13px; font-weight: 700; color: rgba(243, 238, 227, .8) !important; min-height: 38px; }
.tcb-badge { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.tcb-badge.is-ok { background: var(--t-green); color: #fff; }
.tcb-badge.is-warn { background: var(--gold); color: var(--ink); }
.tcb-badge.is-red { background: #F6E1DA; color: var(--red); }
.tcb-badge.is-mod { background: #F6EAD6; color: var(--t-wulong); }
.tcb-badge.is-new { background: var(--ok-bg); color: var(--ok); }
.tcb-abody { padding: 20px 24px 32px; }

.tcb-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.tcb-stat { background: var(--card); border-radius: 14px; padding: 16px 18px; box-shadow: 0 2px 10px rgba(34, 29, 23, .05); }
.tcb-stat small { display: block; font-size: 12px; color: var(--muted); }
.tcb-stat strong { font-family: var(--serif); font-size: 36px; font-weight: 600; line-height: 1.1; }
.tcb-stat em { font-family: var(--serif); font-style: normal; font-size: 20px; color: var(--muted); }
.tcb-stat .tcb-bar { margin-top: 6px; }
.tcb-stat p { font-size: 11px; color: var(--muted); margin-top: 4px; }

.tcb-split { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.tcb-panel { background: var(--card); border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(34, 29, 23, .05); }
.tcb-panel h2 { font-size: 24px; margin-bottom: 8px; }
.tcb-daylbl { font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 14px 0 6px; }
.tcb-srow { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 6px 10px; border-radius: 10px; font-size: 13px; font-weight: 800; border: 1px solid var(--line-soft) !important; margin-bottom: 6px; background: transparent; text-align: left; }
.tcb-srow:hover { background: var(--paper); }
.tcb-srow[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; }
.tcb-srow[aria-pressed="true"] .tcb-bar { background: rgba(243, 238, 227, .2); }
.tcb-srow .tcb-n { font-size: 12px; }

.tcb-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.tcb-table th { text-align: left; font-size: 11px; font-weight: 800; color: var(--muted); padding: 8px; border-bottom: 1px solid var(--line-soft); }
.tcb-table td { padding: 12px 8px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.tcb-table td.tcb-strong { font-weight: 800; }
.tcb-table input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--ok); }
.tcb-rem { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 800; background: #F6EAD6; color: var(--t-wulong); white-space: nowrap; }
.tcb-rem.is-sent { background: var(--ok-bg); color: var(--ok); }
.tcb-rem.is-none { background: var(--sand); color: var(--muted); }
.tcb-x { color: var(--red) !important; font-weight: 800; font-size: 12px; min-height: 32px; }
.tcb-inline { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tcb-sbtn { min-height: 36px; padding: 0 12px; border-radius: 9px; font-size: 12px; font-weight: 800; border: 1px solid var(--line) !important; background: var(--card); color: var(--ink); }
.tcb-sbtn:hover:not(:disabled) { background: var(--paper); }
.tcb-sbtn.is-dark { background: var(--ink); color: var(--paper); border-color: var(--ink) !important; }
.tcb-sbtn.is-red { background: var(--red); color: #fff; border-color: var(--red) !important; }
.tcb-sbtn.is-dashed { border-style: dashed !important; border-color: var(--red) !important; color: var(--red); }
.tcb-info { display: flex; gap: 8px; align-items: center; background: var(--sand); border-radius: 10px; padding: 10px 14px; font-size: 12px; margin-top: 14px; }
.tcb-addform { background: var(--paper); border-radius: 12px; padding: 14px; margin: 12px 0; display: grid; grid-template-columns: 1fr 1fr 90px auto; gap: 8px; align-items: end; }
.tcb-addform .tcb-input { min-height: 40px; font-size: 14px; }
.tcb-addform label { font-size: 11px; font-weight: 800; display: block; margin-bottom: 4px; }

.tcb-split2 { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 18px; align-items: start; }
.tcb-col { display: flex; flex-direction: column; gap: 18px; }
.tcb-gen .tcb-field { margin-bottom: 12px; }
.tcb-gen .tcb-input { min-height: 40px; font-size: 14px; }
.tcb-step { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.tcb-step > span { font-size: 12px; font-weight: 800; flex: 1; }
.tcb-stepper { display: inline-flex; align-items: center; gap: 6px; }
.tcb-stepper button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line) !important; background: var(--card); font-size: 16px; font-weight: 800; line-height: 1; }
.tcb-stepper button:hover:not(:disabled) { background: var(--paper); }
.tcb-stepper button:disabled { opacity: .35; }
.tcb-stepper output { min-width: 56px; text-align: center; font-size: 13px; font-weight: 800; }
.tcb-preview { background: var(--sand); border-radius: 10px; padding: 10px 12px; font-size: 11px; font-weight: 700; margin: 6px 0 12px; }
.tcb-preview div { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tcb-preview span { background: var(--card); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 800; }
.tcb-dayc { background: var(--card); border-radius: 16px; padding: 18px 20px; box-shadow: 0 2px 10px rgba(34, 29, 23, .05); }
.tcb-dayc-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.tcb-dayc-h h3 { font-size: 24px; }
.tcb-dayc-h small { font-size: 11px; color: var(--muted); font-weight: 700; }
.tcb-turn { display: grid; grid-template-columns: 110px auto auto minmax(120px, 1fr) auto; gap: 12px; align-items: center; border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; }
.tcb-turn.is-del { opacity: .55; background: var(--paper); }
.tcb-turn input[type=time] { min-height: 38px; padding: 4px 8px; border: 1px solid var(--line) !important; border-radius: 9px; font-weight: 800; font-size: 14px; background: #fff; width: 100%; }
.tcb-turn .tcb-occ { font-size: 11px; font-weight: 700; }
.tcb-turn .tcb-occ .tcb-bar { margin-top: 4px; }
.tcb-turn .tcb-tags { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 4px; }
.tcb-turn .tcb-del { font-size: 12px; font-weight: 800; color: var(--muted) !important; }
.tcb-turn .tcb-del:hover:not(:disabled) { color: var(--red) !important; }
.tcb-turn .tcb-del:disabled { opacity: .45; }
.tcb-turn .tcb-mini { font-size: 10px; color: var(--muted); display: block; font-weight: 700; }
.tcb-toggle { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; margin: 10px 0; cursor: pointer; }
.tcb-toggle input { width: 18px; height: 18px; accent-color: var(--red); margin-top: 1px; flex: none; }
.tcb-plain { font-size: 12px; color: var(--muted); background: var(--paper); border-radius: 10px; padding: 10px 12px; margin: 10px 0; }
.tcb-plain p + p { margin-top: 6px; }
.tcb-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

.tcb-modal-bg { position: fixed; inset: 0; background: rgba(34, 29, 23, .45); display: flex; align-items: center; justify-content: center; z-index: 100000; padding: 16px; }
.tcb-modal { background: var(--card); border-radius: 18px; max-width: 480px; width: 100%; padding: 24px; box-shadow: var(--shadow); }
.tcb-modal h2 { font-size: 26px; margin-bottom: 10px; }
.tcb-modal ul { margin: 12px 0; }
.tcb-modal li { font-size: 14px; padding: 4px 0; }
.tcb-modal .tcb-row { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }
.tcb-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 12px; font-size: 13px; font-weight: 700; z-index: 100001; box-shadow: var(--shadow); max-width: calc(100% - 32px); }
.tcb-toast.is-err { background: var(--red); }

@media (max-width: 1100px) {
	.tcb-split, .tcb-split2 { grid-template-columns: 1fr; }
	.tcb-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
	.tcb-abody { padding: 16px; }
	.tcb-turn { grid-template-columns: 1fr 1fr; }
	.tcb-turn .tcb-occ, .tcb-turn .tcb-del { grid-column: span 2; }
	.tcb-addform { grid-template-columns: 1fr; }
	.tcb-table thead { display: none; }
	.tcb-table tr { display: grid; grid-template-columns: 1fr auto; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
	.tcb-table td { border: 0; padding: 3px 4px; }
}

/* ===== Pulsanti pieni: rosso scuro con testo bianco, ovunque =====
   !important perché gli stili di wp-admin (e dei temi) sovrascrivono
   sfondo e colore dei <button>: in wp-admin il pulsante selezionato
   diventava chiaro con il testo chiaro, cioè invisibile. */
.tcb-app .tcb-btn,
.tcb-app .tcb-btn.is-dark,
.tcb-app .tcb-sbtn.is-dark,
.tcb-app .tcb-sbtn.is-red,
.tcb-app .tcb-tabs button[aria-pressed="true"],
.tcb-app .tcb-srow[aria-pressed="true"],
.tcb-app .tcb-lang button[aria-pressed="true"] {
	background: var(--red-dark) !important;
	border-color: var(--red-dark) !important;
	color: #FFFDF8 !important;
}
.tcb-app .tcb-btn:hover:not(:disabled),
.tcb-app .tcb-sbtn.is-dark:hover:not(:disabled),
.tcb-app .tcb-sbtn.is-red:hover:not(:disabled) {
	background: #6B2617 !important;
	border-color: #6B2617 !important;
	color: #FFFDF8 !important;
}
.tcb-app .tcb-srow[aria-pressed="true"] .tcb-bar b { background: var(--gold); }

/* Le varianti chiare restano chiare, sempre con testo leggibile. */
.tcb-app .tcb-btn.is-muted { background: #CBBFA8 !important; border-color: #CBBFA8 !important; color: var(--ink) !important; }
.tcb-app .tcb-btn.is-ghost { background: transparent !important; border: 1.5px solid var(--ink) !important; color: var(--ink) !important; }
.tcb-app .tcb-btn.is-ghost:hover:not(:disabled) { background: var(--sand) !important; color: var(--ink) !important; }
.tcb-app .tcb-sbtn { background: var(--card) !important; color: var(--ink) !important; }
.tcb-app .tcb-sbtn:hover:not(:disabled) { background: var(--paper) !important; }
.tcb-app .tcb-sbtn.is-dashed { background: transparent !important; color: var(--red) !important; }
.tcb-app .tcb-abtn { color: var(--paper) !important; }
.tcb-app .tcb-abtn.is-gold { background: var(--gold) !important; color: var(--ink) !important; }

/* Titoli serif anche dentro wp-admin, che impone il suo font a h1/h2/h3. */
.tcb-app.tcb-admin h1, .tcb-app.tcb-admin h2, .tcb-app.tcb-admin h3 { font-family: var(--serif) !important; font-weight: 600; }
.tcb-app.tcb-admin .tcb-ahead h1 { font-weight: 500; }
