/* Seaside Kezelő — tulajdonosi PWA felület */

:root {
	--ink: #1e2530;
	--sea: #1b75bc;
	--sea-deep: #14588c;
	--sea-mist: #eaf6fc;
	--sand: #f2f9fd;
	--sand-deep: #dceef8;
	--sun: #f7b32b;
	--paper: #ffffff;
	--muted: #5b6b78;
	--line: #dcebf4;
	--danger: #b42318;
	--ok: #1a7f37;
	--radius: 12px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
/* A notch mögötti sáv a fejléc színét kapja (nem villan a homokszín). */
html { background: var(--sea-deep); }
body {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	background: var(--sand);
	color: var(--ink);
	font-size: 16px;
	line-height: 1.5;
	min-height: 100vh;
	overscroll-behavior-y: none;
	-webkit-text-size-adjust: 100%;
}
body.portal-app { background: var(--sand); }
h1, h2, h3 { font-family: "Baloo 2", sans-serif; font-weight: 800; color: var(--sea-deep); }
button { font: inherit; cursor: pointer; }
input, select, textarea {
	font: inherit;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid var(--line);
	border-radius: 8px;
	background: #fff;
}
label { display: grid; gap: 4px; font-size: 0.9rem; font-weight: 600; }
label > span { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* Bejelentkezés */
.portal-login-page {
	display: grid;
	place-items: center;
	min-height: 100vh;
	min-height: 100dvh;
	background: linear-gradient(170deg, var(--sea-deep), var(--sea));
	padding: max(20px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
}
.login-card {
	background: var(--paper);
	border-radius: 18px;
	padding: 36px 32px;
	width: min(400px, 100%);
	box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.45);
}
.login-brand { text-align: center; margin-bottom: 22px; }
.login-brand h1 { margin: 10px 0 4px; font-size: 1.6rem; }
.login-brand p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.login-card form { display: grid; gap: 14px; }
.login-card p { margin: 0; }
.login-card label { font-weight: 600; }
.login-card input[type="text"], .login-card input[type="password"] { margin-top: 4px; }
.login-card .login-remember { font-weight: 400; font-size: 0.9rem; }
.login-card .login-remember label { display: flex; align-items: center; gap: 8px; }
.login-card input[type="checkbox"] { width: auto; }
.login-card .button-primary {
	background: var(--sea);
	border: 0;
	color: #fff;
	font-weight: 700;
	padding: 13px;
	border-radius: 999px;
	width: 100%;
	font-size: 1.05rem;
}
.login-card .button-primary:hover { background: var(--sea-deep); }

/* Alkalmazás váz */
.app-loading { text-align: center; padding: 60px 20px; color: var(--muted); }

/* ---------- Kompakt fejléc (safe-area a notch alatt) ---------- */
.topbar {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--sea-deep);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 10px max(14px, env(safe-area-inset-right)) 10px max(14px, env(safe-area-inset-left));
	padding-top: calc(10px + env(safe-area-inset-top));
}
.topbar-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.topbar h1 { color: #fff; font-size: 1.08rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-actions { display: flex; gap: 6px; align-items: center; flex: none; }
.topbtn {
	width: 42px; height: 42px;
	display: grid; place-items: center;
	background: rgba(255, 255, 255, 0.14);
	border: 0; border-radius: 12px;
	color: #fff;
	text-decoration: none;
	-webkit-tap-highlight-color: transparent;
	transition: background 0.15s ease, transform 0.1s ease;
}
.topbtn:hover { background: rgba(255, 255, 255, 0.26); }
.topbtn:active { transform: scale(0.92); }
.topbtn.is-on { background: var(--sun); color: var(--ink); }
.topbtn .ico { width: 22px; height: 22px; }
.topbtn.is-spinning .ico { animation: ss-spin 0.8s linear infinite; }
@keyframes ss-spin { to { transform: rotate(360deg); } }
.ico { display: inline-flex; }
.ico svg { width: 100%; height: 100%; display: block; }

/* ---------- Alsó tab-sáv (app-szerű, fix, safe-area a home indicator felett) ---------- */
.tabbar {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 30;
	display: flex;
	background: rgba(255, 255, 255, 0.94);
	backdrop-filter: blur(12px);
	border-top: 1px solid var(--line);
	padding-bottom: env(safe-area-inset-bottom);
	box-shadow: 0 -6px 20px -12px rgba(20, 88, 140, 0.35);
}
.tab {
	flex: 1;
	min-width: 0;
	background: none;
	border: 0;
	padding: 7px 2px 6px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 3px;
	color: var(--muted);
	-webkit-tap-highlight-color: transparent;
	transition: color 0.15s ease;
}
.tab .ico { width: 23px; height: 23px; transition: transform 0.15s ease; }
.tab-label { font-size: 0.64rem; font-weight: 700; letter-spacing: 0.01em; }
.tab.is-active { color: var(--sea-deep); }
.tab.is-active .ico { transform: translateY(-1px) scale(1.08); }
.tab:active .ico { transform: scale(0.9); }

.view {
	padding: 18px 16px calc(84px + env(safe-area-inset-bottom));
	padding-left: max(16px, env(safe-area-inset-left));
	padding-right: max(16px, env(safe-area-inset-right));
	max-width: 1100px;
	margin-inline: auto;
}

/* Nagyobb kijelzőn: klasszikus felső fülsor, nem alsó bar. */
@media (min-width: 780px) {
	.tabbar {
		position: static;
		bottom: auto;
		padding-bottom: 0;
		box-shadow: none;
		border-top: 0;
		border-bottom: 1px solid var(--line);
	}
	.tab { flex-direction: row; gap: 8px; padding: 13px 14px; font-size: 0.92rem; border-bottom: 3px solid transparent; }
	.tab .ico { width: 19px; height: 19px; }
	.tab-label { font-size: 0.92rem; }
	.tab.is-active { border-bottom-color: var(--sun); }
	.tab.is-active .ico { transform: none; }
	.view { padding-bottom: 48px; }
}

.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.toolbar h2 { margin: 0; font-size: 1.3rem; }

.btn {
	border: 0;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 0.95rem;
}
.btn-primary { background: var(--sea); color: #fff; }
.btn-primary:hover { background: var(--sea-deep); }
.btn-quiet { background: var(--sea-mist); color: var(--sea-deep); }
.btn-danger { background: #fbeae8; color: var(--danger); }
.btn:disabled { opacity: 0.55; cursor: default; }

/* Naptár nézet */
.cal-nav { display: flex; align-items: center; gap: 10px; }
.cal-nav strong { min-width: 150px; text-align: center; }
.cal-nav button {
	width: 38px; height: 38px;
	border-radius: 10px;
	border: 1px solid var(--line);
	background: #fff;
	font-size: 1.1rem;
}

/* A széles áttekintő mátrix csak nagyobb kijelzőn; mobilon a havi rács. */
.cal-scroll { display: none; overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
@media (min-width: 780px) {
	.cal-scroll { display: block; }
	.cal-mobile { display: none; }
}

/* ---------- Mobil naptár: apartman-választó + havi rács ---------- */
.cal-apt-picker { display: grid; gap: 5px; margin-bottom: 14px; }
.cal-apt-picker > span { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cal-apt-select {
	appearance: none;
	-webkit-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%2314588c' stroke-width='2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 16px center / 12px;
	border: 2px solid var(--line);
	border-radius: 12px;
	padding: 14px 40px 14px 16px;
	font-size: 1.02rem;
	font-weight: 700;
	color: var(--ink);
	width: 100%;
}
.cal-apt-select:focus { outline: none; border-color: var(--sea); }

.cal-month {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 5px;
}
.cal-mdow { text-align: center; font-size: 0.7rem; font-weight: 700; color: var(--muted); padding-bottom: 4px; }
.cal-mday {
	aspect-ratio: 1;
	border: 0;
	border-radius: 12px;
	background: var(--sea-mist);
	color: var(--ink);
	font: inherit;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2px;
	position: relative;
	overflow: hidden;
	-webkit-tap-highlight-color: transparent;
	transition: transform 0.1s ease;
}
.cal-mday:active { transform: scale(0.93); }
.cal-mday.is-empty { background: none; pointer-events: none; }
.cal-mday-num { font-size: 0.95rem; font-weight: 600; line-height: 1.15; text-align: center; }
.cal-mday.is-free { background: #eef6fb; }
.cal-mday.is-past { background: #f1f5f8; color: #aebccb; }
.cal-mday.is-local { background: var(--sea); color: #fff; }
.cal-mday.is-local .cal-mday-num { font-size: 0.62rem; font-weight: 700; }
.cal-mday.is-channex { background: repeating-linear-gradient(-45deg, #f7b32b 0 6px, #e09a0e 6px 12px); color: #4a2f00; }
.cal-mday.is-today { box-shadow: inset 0 0 0 2.5px var(--sun); font-weight: 800; }
.cal-mday.is-local.is-today { box-shadow: inset 0 0 0 2.5px var(--sun); }
.cal-table { border-collapse: collapse; width: 100%; font-size: 0.8rem; }
.cal-table th, .cal-table td { border: 1px solid #e3eef7; padding: 0; text-align: center; }
.cal-table thead th { padding: 8px 4px; background: var(--sand); font-size: 0.72rem; position: sticky; top: 0; }
.cal-table thead th.is-weekend { background: var(--sand-deep); }
.cal-table tbody th {
	text-align: left;
	padding: 8px 10px;
	background: #fff;
	font-size: 0.85rem;
	white-space: nowrap;
	position: sticky;
	left: 0;
	border-right: 2px solid var(--line);
}
.cal-cell { width: 34px; height: 40px; min-width: 34px; position: relative; }
.cal-cell button { width: 100%; height: 100%; border: 0; background: transparent; padding: 0; }
.cal-cell.is-free button:hover { background: var(--sea-mist); }
.cal-cell.is-local { background: var(--sea); }
.cal-cell.is-local.is-cancelled { background: transparent; }
.cal-cell.is-channex { background: repeating-linear-gradient(-45deg, #f7b32b 0 5px, #e09a0e 5px 10px); }
.cal-cell.is-past { background: #f4f9fd; }
.legend { display: flex; gap: 18px; margin-top: 12px; font-size: 0.85rem; color: var(--muted); flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 14px; height: 14px; border-radius: 4px; display: inline-block; }
.legend .i-local { background: var(--sea); }
.legend .i-channex { background: repeating-linear-gradient(-45deg, #f7b32b 0 4px, #e09a0e 4px 8px); }
.legend .i-free { background: #fff; border: 1px solid var(--line); }

/* Képes kártyarács (Apartmanok / Eszközök / Programok) — reszponzív. */
/* Egy oszlop keskeny kijelzőn, kettő nagyobb kijelzőn (a kért elrendezés). */
.mgr-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 16px;
}
@media (min-width: 620px) { .mgr-grid { grid-template-columns: 1fr 1fr; } }
.mgr-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	cursor: pointer;
	display: flex;
	flex-direction: column;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
	-webkit-tap-highlight-color: transparent;
}
.mgr-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px -14px rgba(20, 88, 140, 0.42); }
.mgr-card:active { transform: translateY(-1px) scale(0.995); }
.mgr-card-media { position: relative; aspect-ratio: 16 / 10; background: var(--sea-mist); overflow: hidden; }
.mgr-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mgr-card-noimg {
	width: 100%; height: 100%;
	display: grid; place-items: center;
	background: linear-gradient(150deg, var(--sea-mist), var(--sand-deep));
	color: var(--muted); font-size: 0.82rem; font-weight: 700;
}
.mgr-card-badges { position: absolute; top: 8px; right: 8px; display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; }
.mgr-card-badges .badge { box-shadow: 0 2px 6px rgba(20, 40, 60, 0.25); }
.mgr-card-body { padding: 13px 15px 15px; display: grid; gap: 3px; }
.mgr-card-body h3 { margin: 0; font-size: 1.06rem; }
.mgr-card-body .meta { margin: 0; color: var(--muted); font-size: 0.88rem; }

/* Listák, kártyák */
.stack { display: grid; gap: 12px; }
.item-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	padding: 16px;
	display: grid;
	gap: 4px;
}
.item-card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.item-card h3 { margin: 0; font-size: 1.08rem; }
.item-card .meta { color: var(--muted); font-size: 0.9rem; }
.item-card .row-actions { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.badge {
	display: inline-block;
	padding: 3px 10px;
	border-radius: 999px;
	font-size: 0.75rem;
	font-weight: 700;
}
.badge-ok { background: #e7f4e9; color: var(--ok); }
.badge-cancelled { background: #fbeae8; color: var(--danger); }
.badge-manual { background: var(--sea-mist); color: var(--sea-deep); }
.badge-web { background: #fdf3e2; color: #8a5a13; }
.badge-draft { background: #eee; color: #666; }
.badge-unpaid { background: #fdf0dc; color: #b45309; }
.check-row--paid { background: var(--sea-mist); padding: 12px 14px; border-radius: 10px; }
.check-row--paid small { color: var(--muted); font-weight: 400; }

/* Szerkesztő panel */
.sheet-backdrop {
	position: fixed; inset: 0;
	background: rgba(12, 40, 47, 0.5);
	z-index: 40;
	display: flex;
	justify-content: flex-end;
	animation: ss-fade 0.2s ease;
}
@keyframes ss-fade { from { opacity: 0; } to { opacity: 1; } }
.sheet {
	background: var(--paper);
	width: min(560px, 100%);
	height: 100%;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior: contain;
	padding: max(18px, env(safe-area-inset-top)) max(20px, env(safe-area-inset-right)) calc(28px + env(safe-area-inset-bottom)) max(20px, env(safe-area-inset-left));
	display: flex;
	flex-direction: column;
	gap: 14px;
	animation: ss-sheet-in 0.26s cubic-bezier(0.3, 1, 0.4, 1);
}
@keyframes ss-sheet-in { from { transform: translateX(40px); opacity: 0.6; } to { transform: none; opacity: 1; } }
/* Mobilon alulról felcsúszó lap (natívabb érzet). */
@media (max-width: 560px) {
	.sheet-backdrop { justify-content: stretch; align-items: flex-end; }
	.sheet { width: 100%; height: auto; max-height: 92vh; border-radius: 20px 20px 0 0; animation: ss-sheet-up 0.28s cubic-bezier(0.3, 1, 0.4, 1); }
	@keyframes ss-sheet-up { from { transform: translateY(60px); opacity: 0.7; } to { transform: none; opacity: 1; } }
	/* Fogantyú a lap tetején */
	.sheet-head { position: sticky; top: 0; background: var(--paper); padding-top: 4px; margin-top: -4px; z-index: 2; }
	.sheet-head::before { content: ""; position: absolute; top: -8px; left: 50%; transform: translateX(-50%); width: 38px; height: 4px; border-radius: 999px; background: var(--line); }
}
.sheet h2 { margin: 0; font-size: 1.35rem; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; }
.sheet-close { background: var(--sand); border: 0; width: 40px; height: 40px; border-radius: 12px; font-size: 1.3rem; flex: none; }

/* ---------- Toast ---------- */
.toast {
	position: fixed;
	left: 50%;
	bottom: calc(84px + env(safe-area-inset-bottom));
	transform: translate(-50%, 20px);
	z-index: 60;
	background: var(--sea-deep);
	color: #fff;
	font-weight: 700;
	font-size: 0.92rem;
	padding: 12px 20px;
	border-radius: 999px;
	box-shadow: 0 10px 30px -8px rgba(0, 0, 0, 0.4);
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.25s ease, transform 0.25s ease;
	max-width: 90vw;
	text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }
.toast.is-error { background: var(--danger); }
@media (min-width: 780px) { .toast { bottom: 28px; } }
.sheet form { display: grid; gap: 12px; }
.bill-box { background: var(--sea-mist); border-radius: 12px; padding: 14px 16px; display: grid; gap: 6px; }
.bill-box h4 { margin: 0 0 4px; font-family: "Baloo 2", sans-serif; font-size: 0.95rem; color: var(--sea-deep); }
.bill-row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.bill-row span { color: var(--muted); flex: none; }
.bill-row strong { text-align: right; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.price-grid label { font-size: 0.8rem; }
.sheet .form-msg { font-weight: 600; min-height: 1.3em; margin: 0; }
.form-msg.is-error { color: var(--danger); }
.form-msg.is-ok { color: var(--ok); }
.check-row { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.check-row input { width: auto; }
fieldset { border: 1px solid var(--line); border-radius: 10px; }
fieldset legend { font-size: 0.85rem; font-weight: 700; color: var(--muted); padding-inline: 6px; }

.empty { text-align: center; color: var(--muted); padding: 40px 12px; }

/* ---------- Képkezelő (szerkesztőkben) ---------- */
.img-fieldset { padding: 10px 12px 12px; }
.img-manager { display: grid; gap: 10px; }
.img-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.img-empty { grid-column: 1 / -1; color: var(--muted); font-size: 0.85rem; text-align: center; margin: 6px 0; font-weight: 400; }
.img-cell {
	position: relative;
	aspect-ratio: 1;
	border-radius: 8px;
	overflow: hidden;
	border: 2px solid var(--line);
	background: var(--sand);
}
.img-cell.is-cover { border-color: var(--sun); }
.img-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.img-cover-badge {
	position: absolute; top: 4px; left: 4px;
	background: var(--sun); color: var(--ink);
	font-size: 0.62rem; font-weight: 800;
	padding: 2px 7px; border-radius: 999px;
	text-transform: uppercase; letter-spacing: 0.04em;
}
.img-cell-actions {
	position: absolute; left: 0; right: 0; bottom: 0;
	display: flex; justify-content: center; gap: 2px;
	padding: 4px;
	background: linear-gradient(transparent, rgba(20, 40, 60, 0.72));
	opacity: 0;
	transition: opacity 0.15s ease;
}
.img-cell:hover .img-cell-actions,
.img-cell:focus-within .img-cell-actions { opacity: 1; }
.img-cell-actions button {
	width: 26px; height: 26px;
	border: 0; border-radius: 6px;
	background: rgba(255, 255, 255, 0.92);
	color: var(--sea-deep);
	font-size: 0.95rem; line-height: 1;
	display: grid; place-items: center;
}
.img-cell-actions button:hover { background: #fff; }
.img-cell-actions .img-del { color: var(--danger); }
/* Érintőképernyőn mindig látszódjanak a gombok. */
@media (hover: none) {
	.img-cell-actions { opacity: 1; background: linear-gradient(transparent, rgba(20, 40, 60, 0.55)); }
}
.img-manager-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.img-add { flex: none; }
.img-status { margin: 0; font-size: 0.85rem; color: var(--muted); font-weight: 600; }
.img-file { display: none; }

/* ---------- Galéria fül ---------- */
.gal-toolbar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gal-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.gal-chip {
	border: 2px solid var(--line);
	background: #fff;
	color: var(--ink);
	border-radius: 999px;
	padding: 7px 14px;
	font-weight: 700;
	font-size: 0.9rem;
	display: inline-flex;
	align-items: center;
	gap: 7px;
	transition: border-color 0.15s ease, background 0.15s ease;
}
.gal-chip:hover { border-color: var(--sea); }
.gal-chip.is-active { background: var(--sea); border-color: var(--sea); color: #fff; }
.gal-chip-count {
	background: var(--sea-mist);
	color: var(--sea-deep);
	border-radius: 999px;
	padding: 0 7px;
	font-size: 0.76rem;
	min-width: 20px;
	text-align: center;
}
.gal-chip.is-active .gal-chip-count { background: rgba(255,255,255,0.25); color: #fff; }

.gal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.gal-card {
	margin: 0;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 12px;
	overflow: hidden;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.gal-card:hover { transform: translateY(-3px); box-shadow: 0 10px 22px -12px rgba(20, 88, 140, 0.4); }
.gal-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.gal-card figcaption { padding: 8px 10px; font-size: 0.78rem; color: var(--muted); font-weight: 600; }

.gal-preview { width: 100%; max-height: 240px; object-fit: cover; border-radius: 10px; }
.gal-cat-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.gal-cat-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.gal-cat-opt { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; background: var(--sand); padding: 8px 14px; border-radius: 999px; }
.gal-cat-opt input { width: auto; }

.gal-cat-list { display: grid; gap: 8px; }
.gal-cat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--sand); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.gal-cat-row-actions { display: flex; gap: 6px; }
.btn-icon { width: 34px; height: 34px; border: 0; border-radius: 8px; background: #fff; font-size: 0.95rem; }
.btn-icon-danger { color: var(--danger); }
.gal-cat-add { display: flex; gap: 8px; }
.gal-cat-add input { flex: 1; }
.sheet-actions { display: flex; gap: 8px; flex-wrap: wrap; }

@media (max-width: 560px) {
	.grid-2, .grid-3 { grid-template-columns: 1fr; }
	.price-grid { grid-template-columns: repeat(2, 1fr); }
	.img-grid { grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)); }
	.gal-grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); }
}
