/*
 * present.podzone.biz — the new shell's stylesheet (2026-11-22). "Quiet glass": a pale cool ground with soft colour
 * fields, translucent panels with a hairline rim and a long soft shadow, restrained weights (400–600), one blue
 * accent. Three opacities by role: shell panels (blurred) → controls → data sheets (almost opaque, never blurred).
 * Day and night: every colour is a custom property; night is :root[data-theme="dark"], or the device's own setting
 * until a choice is stored. The record of the system is DESIGN.md.
 */
:root {
	--r-panel: 26px; --ease: cubic-bezier(.16, 1, .3, 1);
	--font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
/* day (default) */
:root {
	--ink: #18202e; --ink-2: #435064; --ink-3: #515d71;
	--accent: #2a74ee; --accent-deep: #1553c4; --on-accent: #fff;
	--grad: linear-gradient(180deg, #2b70e4, #1f5fd0); --grad-edge: rgba(14, 52, 140, .35);
	--grad-glow: 0 4px 12px rgba(42, 116, 238, .22);
	--ok: #126a39; --ok-bg: rgba(46, 184, 110, .16); --ok-edge: rgba(18, 106, 57, .25);
	--warn: #8a5200; --warn-bg: rgba(255, 176, 60, .18);
	--bad: #a3271f; --bad-bg: rgba(238, 92, 80, .12); --bad-edge: rgba(163, 39, 31, .25);
	--glass: rgba(255, 255, 255, .52); --glass-2: rgba(255, 255, 255, .74); --fill: rgba(255, 255, 255, .5);
	--raise: rgba(255, 255, 255, .94); --hover: rgba(255, 255, 255, .5); --track: rgba(255, 255, 255, .6); --bar: #ffffff;
	--field: rgba(255, 255, 255, .72); --field-edge: rgba(255, 255, 255, .9);
	--row-hover: rgba(42, 116, 238, .05); --row-open: rgba(42, 116, 238, .09); --tag: rgba(24, 32, 46, .06); --pic-ink-l: 44%; --pic-bg-a: .14;
	--tab-cur: rgba(255, 255, 255, .92); --tab-cur-edge: rgba(42, 116, 238, .55);
	--edge: rgba(255, 255, 255, .9); --rim: rgba(34, 54, 96, .07); --line: rgba(24, 32, 46, .075);
	--lift: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(255, 255, 255, .35);
	--press: inset 0 2px 6px rgba(34, 54, 96, .2);
	--shadow: 0 18px 44px rgba(34, 54, 96, .1), 0 1px 3px rgba(34, 54, 96, .05);
	--shadow-sm: 0 2px 8px rgba(34, 54, 96, .08), 0 1px 1px rgba(34, 54, 96, .05);
	--ground: #e3e9f3; --g1: #c2d9fb; --g2: #ddd5fa; --g3: #c8efe2; --g4: #d3e0fa; --g5: rgba(255, 255, 255, .5);
	color-scheme: light;
}
/* night: chosen in the menu (data-theme on <html>), or the device's own setting until a choice is made */
:root[data-theme="dark"] {
	--ink: #eef2f8; --ink-2: #bcc6d6; --ink-3: #aab5c8;
	--accent: #6aa5ff; --accent-deep: #9cc3ff; --on-accent: #fff;
	--grad: linear-gradient(180deg, #2f70de, #2260cf); --grad-edge: rgba(140, 185, 255, .35);
	--grad-glow: 0 4px 14px rgba(60, 130, 255, .3);
	--ok: #73dfa0; --ok-bg: rgba(46, 184, 110, .18); --ok-edge: rgba(115, 223, 160, .3);
	--warn: #ffc978; --warn-bg: rgba(255, 176, 60, .2);
	--bad: #ffa39a; --bad-bg: rgba(238, 92, 80, .24); --bad-edge: rgba(255, 163, 154, .3);
	--glass: rgba(30, 38, 58, .5); --glass-2: rgba(16, 22, 36, .7); --fill: rgba(255, 255, 255, .07);
	--raise: rgba(255, 255, 255, .16); --hover: rgba(255, 255, 255, .08); --track: rgba(0, 0, 0, .28); --bar: #141b2b;
	--field: rgba(255, 255, 255, .07); --field-edge: rgba(255, 255, 255, .16);
	--row-hover: rgba(106, 165, 255, .08); --row-open: rgba(106, 165, 255, .14); --tag: rgba(255, 255, 255, .1); --pic-ink-l: 74%; --pic-bg-a: .2;
	--tab-cur: rgba(255, 255, 255, .13); --tab-cur-edge: rgba(120, 175, 255, .7);
	--edge: rgba(255, 255, 255, .14); --rim: rgba(0, 0, 0, .55); --line: rgba(255, 255, 255, .1);
	--lift: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .3);
	--press: inset 0 2px 6px rgba(0, 0, 0, .5);
	--shadow: 0 20px 48px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
	--shadow-sm: 0 2px 8px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .25);
	--ground: #0b101b; --g1: #173f86; --g2: #3b2a80; --g3: #0e5a4b; --g4: #1b2f63; --g5: rgba(60, 110, 220, .22);
	color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
	:root:not([data-theme="light"]) {
	--ink: #eef2f8; --ink-2: #bcc6d6; --ink-3: #aab5c8;
		--accent: #6aa5ff; --accent-deep: #9cc3ff; --on-accent: #fff;
		--grad: linear-gradient(180deg, #2f70de, #2260cf); --grad-edge: rgba(140, 185, 255, .35);
		--grad-glow: 0 4px 14px rgba(60, 130, 255, .3);
		--ok: #73dfa0; --ok-bg: rgba(46, 184, 110, .18); --ok-edge: rgba(115, 223, 160, .3);
		--warn: #ffc978; --warn-bg: rgba(255, 176, 60, .2);
		--bad: #ffa39a; --bad-bg: rgba(238, 92, 80, .24); --bad-edge: rgba(255, 163, 154, .3);
		--glass: rgba(30, 38, 58, .5); --glass-2: rgba(16, 22, 36, .7); --fill: rgba(255, 255, 255, .07);
		--raise: rgba(255, 255, 255, .16); --hover: rgba(255, 255, 255, .08); --track: rgba(0, 0, 0, .28); --bar: #141b2b;
		--field: rgba(255, 255, 255, .07); --field-edge: rgba(255, 255, 255, .16);
		--row-hover: rgba(106, 165, 255, .08); --row-open: rgba(106, 165, 255, .14); --tag: rgba(255, 255, 255, .1); --pic-ink-l: 74%; --pic-bg-a: .2;
		--tab-cur: rgba(255, 255, 255, .13); --tab-cur-edge: rgba(120, 175, 255, .7);
		--edge: rgba(255, 255, 255, .14); --rim: rgba(0, 0, 0, .55); --line: rgba(255, 255, 255, .1);
		--lift: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 -1px 0 rgba(0, 0, 0, .3);
		--press: inset 0 2px 6px rgba(0, 0, 0, .5);
		--shadow: 0 20px 48px rgba(0, 0, 0, .4), 0 1px 3px rgba(0, 0, 0, .3);
		--shadow-sm: 0 2px 8px rgba(0, 0, 0, .3), 0 1px 1px rgba(0, 0, 0, .25);
		--ground: #0b101b; --g1: #173f86; --g2: #3b2a80; --g3: #0e5a4b; --g4: #1b2f63; --g5: rgba(60, 110, 220, .22);
		color-scheme: dark;
	}
}
*, *::before, *::after { box-sizing: border-box; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--bar, #fff); color: var(--accent-deep); font-weight: 600; box-shadow: var(--shadow); }
.skip-link:focus { top: 12px; }
main.work:focus { outline: none; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--ink-3) transparent; }
body.glass {
	margin: 0; min-height: 100vh; font: 400 0.9375rem/1.5 var(--font); color: var(--ink); background: var(--ground);
	accent-color: var(--accent); caret-color: var(--accent); -webkit-font-smoothing: antialiased;
}
/* the ground: fixed colour fields for the glass to pick up (a fixed layer, not background-attachment, for phones) */
body.glass::before {
	content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
	background:
		radial-gradient(60vw 60vh at 0% 0%, var(--g1) 0, transparent 65%),
		radial-gradient(55vw 55vh at 100% 0%, var(--g2) 0, transparent 65%),
		radial-gradient(60vw 60vh at 100% 100%, var(--g3) 0, transparent 62%),
		radial-gradient(50vw 50vh at 0% 100%, var(--g4) 0, transparent 62%),
		radial-gradient(36vw 40vh at 50% 46%, var(--g5) 0, transparent 70%), var(--ground);
}
::selection { background: rgba(42, 116, 238, .22); }
a { color: var(--accent-deep); text-decoration: none; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }
h1, h2, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@view-transition { navigation: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.ic { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* glass surfaces: a hairline rim, a bright top edge, a long soft shadow */
.pane {
	background: var(--glass); border: 1px solid var(--edge); border-radius: var(--r-panel);
	box-shadow: var(--lift), 0 0 0 1px var(--rim), var(--shadow);
	-webkit-backdrop-filter: blur(30px) saturate(160%); backdrop-filter: blur(30px) saturate(160%);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .pane { background: var(--glass-2); } }
@media (prefers-reduced-transparency: reduce) { .pane { background: var(--glass-2); -webkit-backdrop-filter: none; backdrop-filter: none; } }

/* frame: the menu panel on the left, the work panel beside it */
.frame { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 20px; max-width: 1400px; margin: 0 auto; padding: 20px; align-items: start; }
.menu { position: sticky; top: 20px; padding: 18px 10px 12px; }
.menu-toggle { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.menu-burger { display: none; }
.menu-brand { padding: 0 14px 14px; font-size: 0.75rem; font-weight: 500; letter-spacing: .02em; color: var(--ink-3); }
.menu-group { padding: 6px 0; border-top: 1px solid var(--line); }
.menu-group:first-of-type { border-top: 0; padding-top: 0; }
.menu-item {
	display: flex; align-items: center; gap: 12px; min-height: 38px; padding: 0 14px; border-radius: 11px;
	color: var(--ink); font-size: 0.9062rem; font-weight: 450; letter-spacing: -.003em; border: 1px solid transparent;
	transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.menu-item svg.ic { color: var(--ink-3); }
.menu-item:hover { background: var(--hover); text-decoration: none; }
.menu-item.is-current { background: var(--raise); border-color: var(--edge); box-shadow: var(--shadow-sm); color: var(--ink); font-weight: 600; }
.menu-item.is-current svg.ic { color: var(--accent); }
.menu-item:active { box-shadow: var(--press); }
.menu button.menu-item { width: 100%; background: none; font: inherit; font-size: 0.9062rem; font-weight: 450; cursor: pointer; text-align: left; }
.menu button.menu-item:hover { background: var(--hover); }
.menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding: 12px 6px 0; border-top: 1px solid var(--line); }
.menu-foot { flex-wrap: wrap; }
.menu-user > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.menu-user { flex: 1 1 100%; display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 0.8125rem; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-user svg.ic { width: 16px; height: 16px; }
.menu-tools { display: flex; align-items: center; gap: 6px; }
.lang-form { display: inline-flex; gap: 4px; align-items: center; }
.lang-select { height: 30px; max-width: 124px; padding: 0 8px; border-radius: 999px; border: 1px solid var(--edge); background: var(--track); color: var(--ink-2); font: 550 0.75rem var(--font); }
.theme-btn { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: none; border-radius: 50%; color: var(--ink-2); background: var(--track); border: 1px solid var(--edge); }
.theme-btn:hover { background: var(--raise); color: var(--ink); }
.theme-btn svg.ic { width: 16px; height: 16px; }

.work { padding: 30px 32px 30px; min-width: 0; }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; margin-bottom: 24px; }
.work-head h1 { font-size: 1.75rem; line-height: 1.15; font-weight: 600; letter-spacing: -.022em; text-wrap: balance; }
h2 { margin: 30px 0 12px; font-size: 1rem; font-weight: 600; letter-spacing: -.01em; }
h2:first-child { margin-top: 0; }
.pills { display: flex; flex-wrap: wrap; gap: 18px; }
.pill { display: inline-flex; align-items: baseline; gap: 7px; font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.pill b { font-size: 1rem; font-weight: 600; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; }
.muted { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }

/* buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 16px;
	border-radius: 11px; border: 1px solid var(--edge); background: var(--fill); box-shadow: var(--lift), 0 0 0 1px var(--rim), var(--shadow-sm);
	color: var(--ink); font: 550 0.875rem/1 var(--font); letter-spacing: -.003em; white-space: nowrap; cursor: pointer; text-decoration: none;
	transition: transform .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease), filter .16s;
}
.btn:hover { background: var(--raise); text-decoration: none; }
.btn:active { transform: translateY(.5px); box-shadow: var(--press); }
.btn-primary, .btn-primary:hover {
	border-color: var(--grad-edge); color: var(--on-accent); background: var(--grad);
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, .28), var(--grad-glow);
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:active { box-shadow: inset 0 2px 6px rgba(4, 24, 80, .4); }
.btn-danger { color: var(--bad); }
.btn-sm { min-height: 32px; padding: 0 12px; font-size: 0.8125rem; border-radius: 9px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn svg.ic { width: 16px; height: 16px; margin-right: 6px; flex: none; }
.btn-accent { color: var(--accent-deep); border-color: var(--tab-cur-edge); font-weight: 600; }
.client-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.client-actions .added { font-size: 0.8125rem; }

/* fields */
.field, select.field {
	width: 100%; min-height: 38px; padding: 0 13px; border-radius: 11px; border: 1px solid var(--field-edge);
	background: var(--field); box-shadow: inset 0 1px 1.5px rgba(20, 34, 66, .08), 0 0 0 1px var(--rim);
	font: 400 0.9062rem var(--font); color: var(--ink); transition: box-shadow .15s;
}
.field::placeholder { color: var(--ink-3); }
/* multi-line and file fields get the same inset on every side as the single-line ones have at the left */
textarea.field { display: block; padding: 10px 13px; line-height: 1.45; resize: vertical; }
input[type=file].field { display: flex; align-items: center; padding: 5px; line-height: 1; cursor: pointer; }
input[type=file].field::file-selector-button {
	margin-right: 12px; min-height: 28px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--field-edge);
	background: var(--glass-2); color: var(--ink); font: 500 0.8125rem var(--font); cursor: pointer;
}
.field:focus { outline: none; box-shadow: 0 0 0 1px var(--accent), 0 0 0 4px var(--row-open); }
.search { position: relative; flex: 1 1 260px; }
.search svg.ic { position: absolute; left: 12px; top: 10px; width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search .field { padding-left: 38px; }
.form-grid { display: grid; grid-template-columns: 170px minmax(0, 400px); gap: 12px 18px; align-items: center; }
.form-grid > label, .form-grid > .label { font-size: 0.8438rem; font-weight: 500; color: var(--ink-2); }
.form-grid .static { font-weight: 550; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid.is-wide { grid-template-columns: 170px minmax(0, 1fr); }
.form-grid > label.at-top { align-self: start; padding-top: 12px; }
.hint { display: block; margin-top: 5px; font-size: 0.7812rem; line-height: 1.4; color: var(--ink-3); }
.check { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; margin-right: 18px; font-weight: 450; }
.check input { width: 16px; height: 16px; }
.inline { display: flex; gap: 8px; align-items: center; }

/* messages */
.notice { margin: 0 0 18px; padding: 10px 14px; border-radius: 11px; border: 1px solid; font-size: 0.875rem; font-weight: 500; }
.notice.plain { background: var(--fill); border-color: var(--edge); color: var(--ink-2); font-weight: 450; }
.notice.error { background: var(--bad-bg); border-color: var(--bad-edge); color: var(--bad); }
.field.is-invalid { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-bg); }
.field-error { display: block; margin-top: 4px; font-size: .8125rem; color: var(--bad); }
.notice.success { background: var(--ok-bg); border-color: var(--ok-edge); color: var(--ok); }

/* count tabs: the list's navigation */
.tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-bottom: 20px; }
.tab {
	display: block; padding: 14px 18px 13px; border-radius: 16px; border: 1px solid var(--edge); background: var(--fill);
	box-shadow: var(--lift), 0 0 0 1px var(--rim); color: var(--ink-3); font-size: 0.8125rem; font-weight: 450; line-height: 1.3;
	transition: background .2s var(--ease), box-shadow .2s var(--ease);
}
.tab:hover { background: var(--raise); text-decoration: none; }
.tab b { display: block; margin-top: 3px; font-size: 1.875rem; line-height: 1.1; font-weight: 550; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.tab.is-warn b { color: var(--warn); } .tab.is-bad b { color: var(--bad); } .tab.is-zero b { color: var(--ink-3); }
.tab.is-current { background: var(--tab-cur); box-shadow: var(--lift), 0 0 0 1.5px var(--tab-cur-edge), var(--shadow-sm); color: var(--accent-deep); }
.tab.is-current b { color: var(--accent); }

.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tools form { display: flex; flex: 0 1 460px; gap: 8px; }

/* data: the most opaque glass, hairlines only */
.sheet { border-radius: 16px; border: 1px solid var(--edge); background: var(--glass-2); box-shadow: var(--lift), 0 0 0 1px var(--rim); overflow: hidden; }
table.data { width: 100%; border-collapse: collapse; }
.data th { padding: 10px 16px; text-align: left; font-size: 0.75rem; font-weight: 500; letter-spacing: .01em; color: var(--ink-3); border-bottom: 1px solid var(--line); white-space: nowrap; }
.data th::first-letter { text-transform: uppercase; }
.ib-label, .state-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.data td { padding: 7px 16px; height: 46px; border-top: 1px solid var(--line); vertical-align: middle; overflow-wrap: anywhere; }
.data tr:first-child > td { border-top: 0; }
.data tbody tr:hover > td { background: var(--row-hover); }
.data .login { font-weight: 600; letter-spacing: -.005em; }
.data td.muted.num { white-space: nowrap; }
.data td.note { min-width: 160px; font-size: 0.875rem; }
.data td.actions { white-space: nowrap; text-align: right; }
/* Packet group tiles (choosing what to buy). The checkbox stays visible in the corner; a ticked tile is ringed. */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.tile-wrap { position: relative; }
.tile { display: flex; flex-direction: column; height: 100%; border-radius: 16px; border: 1px solid var(--edge); background: var(--glass-2);
	box-shadow: var(--lift), 0 0 0 1px var(--rim); overflow: hidden; cursor: pointer; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
.tile:hover { transform: translateY(-1px); }
.tile:has(.tile-check:checked) { box-shadow: var(--lift), 0 0 0 2px var(--accent); }
.tile:has(.tile-check:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }
.tile-check { position: absolute; top: 10px; left: 10px; z-index: 1; width: 20px; height: 20px; margin: 0; accent-color: var(--accent);
	border-radius: 5px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .95), 0 0 0 3.5px rgba(10, 18, 34, .45); }
.tile-pic { display: block; aspect-ratio: 16 / 10; --h: 215;
	background: linear-gradient(135deg, hsl(var(--h) 70% 55% / var(--pic-bg-a)), hsl(calc(var(--h) + 40) 70% 55% / calc(var(--pic-bg-a) / 2))); }
.tile-pic img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tile-initials { display: grid; place-items: center; height: 100%; font-size: 1.875rem; font-weight: 650; letter-spacing: .02em; color: hsl(var(--h) 60% var(--pic-ink-l)); }
.tile-body { display: flex; flex-direction: column; gap: 3px; padding: 11px 14px 13px; }
.tile-name { font-weight: 600; letter-spacing: -.005em; overflow-wrap: anywhere; }
.tile-note { align-self: flex-start; padding: 1px 8px; border-radius: 6px; background: var(--tag); font-size: 0.75rem; color: var(--ink-2); }
.tile-price { font-size: 0.875rem; color: var(--ink-3); } .tile-price b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.tile-till { min-height: 18px; font-size: 0.7812rem; color: var(--ink-3); }
.tile-till .new-till { display: block; margin-left: 0; color: var(--accent); }
.tile-info { position: absolute; top: 6px; right: 6px; background: var(--glass-2); border-radius: 10px; }
.group-pic-preview { display: block; max-width: 240px; border-radius: 10px; margin-bottom: 6px; }
.group-pic-thumb { width: 40px; height: 25px; object-fit: cover; border-radius: 5px; vertical-align: middle; margin-right: 8px; }
.group-pic-hero { display: block; width: 100%; max-width: 480px; border-radius: 14px; margin-bottom: 12px; }

/* Dense tables (admin): a figure on the first line, its detail on a second, quieter one; wide tables scroll
   inside their sheet instead of pushing the page. */
.sheet.scroll-x { overflow-x: auto; }
.data.dense td { padding-top: 9px; padding-bottom: 9px; }
.data.dense th { white-space: normal; vertical-align: bottom; line-height: 1.3; }
.data.dense th, .data.dense td { padding-left: 10px; padding-right: 10px; }
.data.dense th.r, .data.dense td.r { text-align: right; }
.data.dense td.num { white-space: nowrap; overflow-wrap: normal; }
.data.dense td.who { white-space: nowrap; overflow-wrap: normal; }
.data .sub { display: block; margin-top: 2px; font-size: 0.7812rem; font-weight: 400; letter-spacing: 0; color: var(--ink-3); white-space: nowrap; }
.data .sub.clip { max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 9px; color: var(--ink-3); vertical-align: middle; transition: background .16s var(--ease), color .16s; }
.icon-btn:hover { background: var(--raise); color: var(--accent); box-shadow: var(--shadow-sm); }
.icon-btn:active { box-shadow: var(--press); }
.data tr:hover .icon-btn { color: var(--accent); }
/* client/table actions carry their label on the desktop too, not only on the phone (icons alone were unclear) */
.data td.actions .icon-btn { width: auto; height: 32px; padding: 0 9px; gap: 6px; }
.data td.actions .icon-btn .ib-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-size: 0.8125rem; }
.state { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ink-3); opacity: .45; }
.state.is-on { background: #25a55a; opacity: 1; box-shadow: 0 0 0 3px rgba(37, 165, 90, .16); }
.data tr.is-open { scroll-margin-top: 16px; }
.data tr.is-open > td { background: var(--row-open); }
.data tr.rowpanel > td { padding: 16px 18px 18px; background: var(--row-open); border-top: 0; }
.data tr.rowpanel:hover > td { background: var(--row-open); }
.empty { padding: 40px 20px; text-align: center; color: var(--ink-3); }
.empty b { display: block; margin-bottom: 4px; font-size: 0.9375rem; font-weight: 600; color: var(--ink); }

.tag { display: inline-block; margin: 2px 4px 2px 0; padding: 2px 9px; border-radius: 7px; background: var(--tag); color: var(--ink-2); font-size: 0.8125rem; font-weight: 450; white-space: nowrap; }
.tag + .tag.days { font-weight: 550; font-variant-numeric: tabular-nums; }
.tag.is-warn { background: var(--warn-bg); color: var(--warn); }
.tag.is-bad { background: var(--bad-bg); color: var(--bad); }
.subs-line { display: block; }

/* the extend strip and segmented choices */
.strip { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.strip-title { font-weight: 550; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 2px; border-radius: 10px; background: var(--track); border: 1px solid var(--edge); box-shadow: inset 0 1px 2px rgba(20, 34, 66, .08); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.seg span { display: block; padding: 6px 13px; border-radius: 8px; font-size: 0.8438rem; font-weight: 450; color: var(--ink-2); transition: background .2s var(--ease), color .2s; }
.seg input:checked + span { color: var(--ink); font-weight: 550; background: var(--raise); box-shadow: var(--shadow-sm); }
/* the same control made of links (filters) */
.seg a { display: block; padding: 6px 13px; border-radius: 8px; font-size: 0.8438rem; font-weight: 450; color: var(--ink-2); white-space: nowrap; transition: background .2s var(--ease), color .2s; }
.seg a:hover { color: var(--ink); text-decoration: none; }
.seg a.is-current { color: var(--ink); font-weight: 550; background: var(--raise); box-shadow: var(--shadow-sm); }
.seg a small { margin-left: 3px; font-size: 0.75rem; color: var(--ink-3); }
/* log rows */
.log td { height: 40px; font-size: 0.875rem; }
.log td:first-child { white-space: nowrap; }
.ev { display: inline-flex; vertical-align: -4px; margin-right: 8px; color: var(--ink-3); }
.ev svg.ic { width: 18px; height: 18px; }
.ev.is-ok { color: var(--ok); } .ev.is-bad { color: var(--bad); }
.log b { font-weight: 550; }
table.stats { margin: 6px 0 4px 26px; border-collapse: collapse; font-size: 0.8125rem; font-variant-numeric: tabular-nums; }
.stats th { padding: 2px 14px 2px 0; text-align: left; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); border: 0; background: none; }
.stats td { padding: 2px 14px 2px 0; height: auto; border: 0; }
.stats td.is-bad { color: var(--bad); font-weight: 550; } .stats td.is-warn { color: var(--warn); font-weight: 550; }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 1px; }
.sum { font-size: 0.9375rem; font-weight: 500; color: var(--ink); } .sum b { font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.sum.is-short { color: var(--bad); font-weight: 600; }
.spacer { flex: 1; }
.subline { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.8438rem; }
.new-till { margin-left: 7px; font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.buybar { position: sticky; bottom: 12px; z-index: 2; margin-top: 16px; padding: 12px 16px; border-radius: 18px;
	background: var(--bar); -webkit-backdrop-filter: none; backdrop-filter: none; border: 1px solid var(--edge); box-shadow: 0 8px 30px rgba(18, 28, 52, .16), 0 0 0 1px var(--rim); }
/* breathing room so the last tiles clear the sticky bar */
[data-price-form] .tiles { margin-bottom: 8px; }
.back { display: inline-flex; align-items: center; gap: 3px; margin: -10px 0 16px; font-size: 0.875rem; }
.back svg.ic { width: 16px; height: 16px; }

/* specification blocks (receiver settings) and key–value lists */
.lead { max-width: 70ch; margin-bottom: 6px; font-size: 1rem; }
.specs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 8px; }
.spec { padding: 14px 16px; border-radius: 16px; border: 1px solid var(--edge); background: var(--fill); box-shadow: var(--lift), 0 0 0 1px var(--rim); }
.spec > b { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 600; }
.spec dl, .kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; margin: 0; font-size: 0.875rem; }
.spec dt, .kv dt { color: var(--ink-3); } .spec dd, .kv dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv { max-width: 640px; gap: 6px 18px; }
.sheet > h2 { margin-top: 0; }

.meter { display: block; width: min(320px, 100%); height: 6px; border-radius: 999px; background: var(--tag); overflow: hidden; }
.meter > span { display: block; height: 100%; min-width: 2px; border-radius: 999px; background: var(--ok); }
.meter.is-warn > span { background: var(--warn); } .meter.is-bad > span { background: var(--bad); }
.is-bad-text { color: var(--bad); }
.cfg { padding: 14px 18px; border-top: 1px solid var(--line); } .cfg:first-child { border-top: 0; }
.cfg h2 { margin: 0 0 8px; font-size: 0.9375rem; }
.cfg summary { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 5px 0; cursor: pointer; list-style: none; font-size: 0.875rem; }
.cfg summary::-webkit-details-marker { display: none; }
.cfg pre { margin: 6px 0 10px; padding: 12px 14px; border-radius: 11px; background: var(--tag); font: 0.7812rem/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }

/* top-up: the amount field and the payment-method tiles */
.amount { position: relative; display: inline-block; }
.amount > span { position: absolute; left: 13px; top: 8px; color: var(--ink-3); pointer-events: none; }
.amount .field { width: 150px; padding-left: 26px; font-size: 1rem; font-weight: 550; }
.choices { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.choice { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice > span { display: block; height: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--edge); background: var(--fill); box-shadow: var(--lift), 0 0 0 1px var(--rim); transition: background .2s var(--ease), box-shadow .2s var(--ease); }
.choice b { display: block; font-size: 0.875rem; font-weight: 550; overflow-wrap: anywhere; }
.choice small { display: block; margin-top: 2px; font-size: 0.7812rem; color: var(--ink-3); }
.choice:hover > span { background: var(--raise); }
.choice input:checked + span { background: var(--tab-cur); box-shadow: var(--lift), 0 0 0 1.5px var(--tab-cur-edge), var(--shadow-sm); }
.choice input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.help { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.help > summary { display: flex; align-items: center; gap: 4px; cursor: pointer; font-weight: 550; color: var(--accent-deep); list-style: none; }
.help > summary::-webkit-details-marker { display: none; }
.help > summary svg.ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.help[open] > summary svg.ic { transform: rotate(90deg); }
.help ol, .help ul { margin: 0 0 8px; padding-left: 22px; } .help ul.ways { columns: 2; column-gap: 28px; }

/* filter bar and totals */
.filters { display: flex; flex-wrap: wrap; gap: 10px 12px; align-items: flex-end; margin-bottom: 16px; }
.filters label { display: block; flex: 0 1 190px; } .filters label > span { display: block; margin-bottom: 4px; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); }
.totals { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 14px; font-size: 0.875rem; color: var(--ink-2); }
.totals b { font-weight: 600; color: var(--ink); }
.is-ok-text { color: var(--ok); }

/* spacing utilities (instead of inline styles in the views) */
.mt-s { margin-top: 8px; } .mt-m { margin-top: 14px; } .mt-l { margin-top: 20px; }
.mb-s { margin-bottom: 8px; } .mb-m { margin-bottom: 16px; }
.check.flat { margin: 0; }
.pad { padding: 16px 18px; }
.narrow { max-width: 70ch; }

/* list foot and pager */
.list-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 20px; margin-top: 16px; font-size: 0.8125rem; color: var(--ink-3); }
.list-foot .pager { margin-top: 0; }
.per-page a, .per-page b { margin-left: 6px; } .per-page b { color: var(--ink); font-weight: 550; }
.pager { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 16px; }
.pager a, .pager span { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 999px; font-size: 0.8438rem; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--ink-2); }
.pager svg.ic { width: 16px; height: 16px; }
.pager a:hover { background: var(--raise); color: var(--ink); text-decoration: none; box-shadow: var(--shadow-sm); }
.pager .is-current { color: var(--on-accent); background: var(--grad); }
.pager .is-off { color: var(--ink-3); opacity: .5; }

/* announcements: text written by the administrator, with its own inline markup */
.announcement { padding: 18px 0; border-top: 1px solid var(--line); max-width: 74ch; }
.announcement:first-of-type { border-top: 0; }
.announcement .date { margin-bottom: 6px; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.announcement .text { overflow-wrap: anywhere; line-height: 1.6; font-size: 0.9062rem; }
.announcement .text :is(h1, h2, h3, h4) { margin: 0 0 8px; font-size: 1rem; font-weight: 600; line-height: 1.35; }
.announcement .text p { margin: 0 0 8px; } .announcement .text img { max-width: 100%; height: auto; }

/* sign-in */
.gate { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.gate-box { width: min(372px, 100%); padding: 32px 30px 28px; }
.gate-box h1 { margin-bottom: 22px; font-size: 1.5rem; font-weight: 600; letter-spacing: -.02em; }
.gate-box label { display: block; margin: 14px 0 6px; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.gate-box .btn { width: 100%; min-height: 42px; margin-top: 24px; }
.gate-tools { display: flex; justify-content: flex-end; align-items: center; gap: 6px; margin-bottom: 10px; }

/* narrow screens: the menu becomes a strip of pills, tables become stacked rows */
@media (max-width: 900px) {
	.frame { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 8px; }
	.menu { position: relative; padding: 8px; border-radius: 20px; }
	.menu-brand { display: none; }
	/* the full list hides behind a "Menu" button and opens as a column (CSS-only, no inline script) */
	.menu-burger { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 44px; padding: 0 12px; border-radius: 12px;
		font-size: 0.9375rem; font-weight: 550; color: var(--ink); cursor: pointer; }
	.menu-burger:hover { background: var(--hover); }
	.menu-burger .burger-open, .menu-burger .burger-close { display: flex; align-items: center; gap: 9px; }
	.menu-burger .burger-close { display: none; }
	.menu-toggle:checked ~ .menu-top .menu-burger .burger-open { display: none; }
	.menu-toggle:checked ~ .menu-top .menu-burger .burger-close { display: flex; }
	.menu-scroll { display: none; flex-direction: column; gap: 2px; margin-top: 6px; }
	.menu-toggle:checked ~ .menu-scroll { display: flex; }
	.menu-group { display: block; padding: 6px 0; border-top: 1px solid var(--line); }
	.menu-group:first-of-type { border-top: 0; padding-top: 0; }
	.menu-item, .menu button.menu-item { min-height: 44px; white-space: normal; }
	.menu-foot { margin: 8px 6px 0; padding: 10px 0 0; flex-wrap: nowrap; } .menu-user { flex: 1 1 0; }
	.work { padding: 18px 14px 20px; border-radius: 20px; }
	.work-head { margin-bottom: 14px; gap: 6px 12px; }
	.work-head h1 { font-size: 1.375rem; }
	.pills { gap: 12px; } .pill { font-size: 0.75rem; } .pill b { font-size: 0.875rem; }
	.tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin-bottom: 12px; }
	.tab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 12px; border-radius: 12px; font-size: 0.7812rem; line-height: 1.2; }
	.tab b { margin: 0; font-size: 1.1875rem; }
	.tools { gap: 8px; margin-bottom: 10px; } .tools form { flex: 1 1 0; } .tools form .btn { display: none; }
	.tools > .btn { padding: 0 12px; }
	.form-grid, .form-grid.is-wide { grid-template-columns: minmax(0, 1fr); gap: 5px; } .form-grid > label.at-top { padding-top: 0; } .form-grid > label, .form-grid > .label { margin-top: 8px; }
	.field, select.field { min-height: 42px; font-size: 1rem; } /* 16px: iOS does not zoom the page on focus */
	.search svg.ic { top: 12px; }
	.btn { min-height: 42px; }
	.lang-select { height: 38px; font-size: 1rem; max-width: 150px; } .theme-btn { width: 38px; height: 38px; }
	.pager a, .pager span { min-width: 40px; height: 40px; }
	.strip-title { flex-basis: 100%; }
	.strip + .strip > span.strip-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
	.strip .seg { flex-wrap: wrap; } .strip .seg span { padding: 9px 4px; font-size: 0.8125rem; white-space: nowrap; }
	.specs { grid-template-columns: minmax(0, 1fr); }
	.filters label { flex: 1 1 140px; }
	.choices { grid-template-columns: repeat(2, minmax(0, 1fr)); } .help ul.ways { columns: 1; }
	.seg { width: 100%; } .seg label, .seg a { flex: 1 1 auto; text-align: center; } .seg span, .seg a { padding: 9px 10px; }
	nav.seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } nav.seg a { flex: none; }
	table.stats { margin-left: 0; display: table; } .stats tr { display: table-row; padding: 0; border: 0; } .stats td, .stats th { display: table-cell; padding: 2px 10px 2px 0; }
	.strip .btn-primary { width: 100%; }
	.data thead { display: none; }
	.data, .data tbody { display: block; }
	.data tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 11px 14px; border-top: 1px solid var(--line); }
	.data tr:first-child { border-top: 0; }
	.data td { display: block; height: auto; padding: 0; border: 0; }
	.data td.login { order: -1; font-size: 0.9688rem; }
	.data td.full, .data td.actions { grid-column: 1 / -1; }
	.data td.actions { text-align: left; padding-top: 4px; white-space: normal; display: flex; flex-wrap: wrap; gap: 2px 4px; }
	.tiles { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; } .tile-body { padding: 9px 11px 11px; } .tile-initials { font-size: 1.5rem; }
	.data.dense td.r { text-align: left; } .data.dense td.num, .data.dense td.who { white-space: normal; } .data .sub.clip { max-width: none; }
	.data td.actions .icon-btn:first-child { margin-left: -8px; }
	.icon-btn { width: auto; height: 40px; padding: 0 10px; gap: 6px; font-size: 0.8438rem; color: var(--accent); }
	.ib-label, .state-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
	.state:not(.is-on) { display: none; } .state-label { margin-left: 6px; font-size: 0.7812rem; color: var(--ok); }
	.data td.hide-sm, .data td:empty { display: none; }
	.data td[data-label]::before { content: attr(data-label) ": "; color: var(--ink-3); }
	.data tr.rowpanel { display: block; padding: 14px; background: var(--row-open); border-top: 0; }
	.data tr.rowpanel > td { padding: 0; background: none; }
	.data tr.is-open { background: var(--row-open); } .data tr.is-open > td { background: none; }
	.list-foot { justify-content: center; text-align: center; }
	.buybar { bottom: 8px; padding: 10px 12px; }
	.buybar span.strip-title { display: none; }
	.buybar label.strip-title { flex-basis: auto; }
	.buybar .strip { gap: 8px 10px; } .buybar .spacer { display: none; }
	.buybar .field { flex: 1 1 60px; width: auto !important; }
	.buybar .sum { flex: 1 1 55%; min-width: 0; font-size: 0.875rem; line-height: 1.35; }
	.buybar .btn-primary { width: auto; margin-left: auto; }
	.buybar .seg { flex-wrap: wrap; overflow: visible; } .buybar .seg label { flex: none; }
	.data td.num[data-label] { white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } @view-transition { navigation: none; } }
[data-label-inline] { display: none; }
@media (max-width: 900px) { [data-label-inline] { display: inline; color: var(--ink-3); } }

/* announcements from the multilingual editor (App\Support\AnnouncementBody renders the blocks); the admin's preview
   and the editor's own blocks use the same classes */
.ann-heading { margin: 0 0 6px; font-size: 1.0625rem; font-weight: 600; line-height: 1.35; letter-spacing: -.01em; }
.ann-body h2, .ann-body h3, .ann-body h4 { margin: 14px 0 6px; font-weight: 600; line-height: 1.35; }
.ann-body h2 { font-size: 1.0625rem; } .ann-body h3 { font-size: 1rem; } .ann-body h4 { font-size: 0.9375rem; }
.ann-body ul, .ann-body ol { margin: 0 0 10px; padding-left: 1.4em; } .ann-body li { margin: 2px 0; }
.ann-body .ann-checklist { list-style: none; padding-left: 0; }
.ann-body .ann-checklist li::before { content: "☐"; margin-right: 8px; color: var(--ink-3); }
.ann-body .ann-checklist li.is-checked::before { content: "☑"; color: var(--ok); }
.ann-body mark, .ann-body .cdx-marker { padding: 0 2px; border-radius: 3px; background: var(--warn-bg); color: inherit; }
.ann-body code, .ann-body .inline-code { padding: 1px 5px; border-radius: 5px; background: var(--track); font-size: .9em; }
.ann-figure { margin: 12px 0; }
.ann-figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; }
.ann-figure.has-border img { border: 1px solid var(--line); }
.ann-figure.has-background { padding: 14px; border-radius: 12px; background: var(--track); }
.ann-figure.has-background img { max-width: 60%; margin: 0 auto; }
.ann-figure.is-wide img { width: 100%; }
.ann-figure figcaption { margin-top: 6px; font-size: 0.8125rem; color: var(--ink-3); }
.ann-table-wrap { margin: 10px 0; overflow-x: auto; }
.ann-table { border-collapse: collapse; font-size: 0.875rem; }
.ann-table th, .ann-table td { padding: 6px 10px; border: 1px solid var(--line); text-align: left; vertical-align: top; }
.ann-table th { background: var(--track); font-weight: 600; }
.ann-quote { margin: 12px 0; padding: 4px 0 4px 14px; border-left: 3px solid var(--accent); color: var(--ink-2); }
.ann-quote p { margin: 0; } .ann-quote cite { display: block; margin-top: 4px; font-size: 0.8125rem; font-style: normal; color: var(--ink-3); }
.ann-divider { margin: 16px 0; border: 0; border-top: 1px solid var(--line); }
.nowrap { white-space: nowrap; }

/* The unread announcements after a sign-in (partials/announcement_popup). Opaque: text over glass would not read. */
.ann-popup { position: fixed; inset: 0; z-index: 50; margin: auto; width: min(640px, calc(100vw - 32px)); max-height: min(86vh, 760px);
	padding: 0; display: flex; flex-direction: column; border: 1px solid var(--edge); border-radius: 18px; background: var(--bar);
	color: var(--ink); box-shadow: var(--shadow), 0 0 0 1px var(--rim); font: inherit; }
.ann-popup:not([open]) { display: none; }
.ann-popup::backdrop { background: rgba(10, 16, 28, .45); backdrop-filter: blur(3px); }
.ann-popup-head { display: flex; align-items: center; gap: 10px; padding: 12px 12px 10px 20px; border-bottom: 1px solid var(--line); }
.ann-popup-kicker { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.ann-popup-count { font-size: 0.8125rem; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ann-popup-count[hidden], .ann-popup-item[hidden], .ann-popup-error[hidden] { display: none; }
.ann-popup-close { margin: 0 0 0 auto; }
.ann-popup-close .icon-btn { border: 0; background: none; padding: 0; font: inherit; cursor: pointer; }
.ann-popup-close .icon-btn:hover { background: var(--raise); }
.ann-popup-body { padding: 16px 20px; overflow-y: auto; overscroll-behavior: contain; }
.ann-popup-item .date { margin-bottom: 6px; font-size: 0.75rem; font-weight: 500; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.ann-popup-item .text { overflow-wrap: anywhere; line-height: 1.6; font-size: 0.9375rem; }
.ann-popup-item .text p { margin: 0 0 8px; } .ann-popup-item .text img { max-width: 100%; height: auto; }
.ann-popup-foot { display: flex; align-items: center; justify-content: flex-end; gap: 12px; padding: 12px 20px; border-top: 1px solid var(--line); }
.ann-popup-foot form { margin: 0; }
.ann-popup-error { margin: 0 auto 0 0; font-size: 0.8125rem; color: var(--bad); }
@media (max-width: 560px) { .ann-popup { width: calc(100vw - 16px); max-height: calc(100dvh - 16px); border-radius: 14px; } }

/* The translator's settings (admin/translator) */
.translator { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; max-width: 900px; }
.translator .hint { overflow-wrap: anywhere; }
.translator .btn-row .field { flex: 1 1 220px; min-width: 0; }
.translator aside p { margin: 0 0 10px; } .translator aside p:last-child { margin: 0; }
.translator .mb-s { margin: 0 0 8px; }
.hint.is-ok, .tag.is-ok { color: var(--ok); } .hint.is-bad { color: var(--bad); }
