/* Stowage plan — морська палітра: глибокий синій корпусу + сигнальний помаранчевий (як розмітка палуб) */
:root {
	--bg: #eef2f5; --surface: #ffffff; --fg: #15232f; --muted: #5a6b78; --line: #d5dde4;
	--accent: #0f4c75; --accent-fg: #ffffff; --signal: #e07a1f;
	--ok-bg: #e3f3ea; --ok-fg: #1d6a3f; --err-bg: #fbe9e7; --err-fg: #a3301c;
	color-scheme: light;
}
@media (prefers-color-scheme: dark) {
	:root {
		--bg: #0e161d; --surface: #16222c; --fg: #e3ebf1; --muted: #93a4b1; --line: #263642;
		--accent: #5aa7d8; --accent-fg: #0b141a; --signal: #f0a050;
		--ok-bg: #173226; --ok-fg: #8fd8ae; --err-bg: #3a1d17; --err-fg: #f3a593;
		color-scheme: dark;
	}
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
.top { background: var(--surface); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding-block: 12px; }
.brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 1.05rem; color: var(--fg); text-decoration: none; letter-spacing: .01em; }
.mark { width: 22px; height: 14px; border: 2px solid var(--accent); border-bottom-width: 5px; border-radius: 2px 2px 8px 8px; position: relative; }
.mark::after { content: ""; position: absolute; left: 3px; right: 3px; top: 3px; height: 2px; background: var(--signal); }
nav { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font-size: .95rem; }
nav a { text-decoration: none; }
.who { color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.lang { font-size: .8rem; letter-spacing: .06em; border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; color: var(--muted); }
main { padding-block: 32px 48px; display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 28px; }
.card.narrow { max-width: 420px; width: 100%; margin: 0 auto; }
h1 { font-size: 1.5rem; margin: 0 0 16px; text-wrap: balance; }
.lead { font-size: 1.1rem; color: var(--muted); margin-top: -8px; }
.form { display: flex; flex-direction: column; gap: 6px; }
.form label { font-weight: 600; font-size: .92rem; margin-top: 8px; }
.form input { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); width: 100%; }
.form input:focus-visible, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.form small { color: var(--muted); font-size: .82rem; }
.btn { display: inline-block; font: inherit; font-weight: 600; background: var(--accent); color: var(--accent-fg); border: 1px solid var(--accent); border-radius: 6px; padding: 10px 18px; cursor: pointer; text-decoration: none; margin-top: 14px; }
.btn.ghost { background: transparent; color: var(--accent); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.alt { margin: 14px 0 0; font-size: .92rem; color: var(--muted); }
.inline { display: inline; margin: 0; }
button.link { font: inherit; background: none; border: 0; padding: 0; color: var(--accent); cursor: pointer; }
.msg { border-radius: 8px; padding: 12px 16px; max-width: 420px; width: 100%; margin: 0 auto; }
.msg-ok { background: var(--ok-bg); color: var(--ok-fg); }
.msg-error { background: var(--err-bg); color: var(--err-fg); }
.wide { width: 100%; }
.or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 22px 0 0; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.qr-box .msg { margin-top: 12px; }
.qr-img { display: flex; justify-content: center; margin: 16px 0 8px; }
.qr-img img { width: 220px; max-width: 100%; height: auto; image-rendering: pixelated; background: #fff; padding: 8px; border-radius: 6px; }
.pair-line { text-align: center; font-size: 1.05rem; }
.pair-line b, .pair { font-variant-numeric: tabular-nums; letter-spacing: .25em; font-size: 1.4rem; color: var(--signal); }
.facts { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 16px 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.warn { background: var(--bg); border-left: 3px solid var(--signal); padding: 10px 12px; border-radius: 4px; font-size: .92rem; }
.code-input { letter-spacing: .3em; font-variant-numeric: tabular-nums; font-size: 1.2rem; text-align: center; }
[hidden] { display: none !important; }
.alt-login { display: flex; justify-content: center; gap: 16px; margin-top: 14px; }
.icon-btn { width: 56px; height: 56px; display: inline-flex; align-items: center; justify-content: center; background: var(--surface); color: var(--accent); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.icon-btn:hover:not(:disabled) { border-color: var(--accent); }
.icon-btn:disabled { cursor: not-allowed; opacity: .45; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 12px; }
.google-btn svg { width: 20px; height: 20px; }
a.icon-btn { text-decoration: none; }
.sess-list { list-style: none; margin: 16px 0; padding: 0; display: flex; flex-direction: column; }
.sess { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line); }
.sess-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.sess-main small { color: var(--muted); overflow-wrap: anywhere; }
.tag { font-size: .75rem; border: 1px solid var(--line); border-radius: 999px; padding: 0 8px; color: var(--muted); margin-left: 6px; }
.tag.qr { color: var(--signal); border-color: var(--signal); }
.btn.small { padding: 6px 12px; margin-top: 0; font-size: .9rem; }
a.who { text-decoration: none; }
.sess-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.sess-head .tag { margin-left: 0; }
/* тип судна: випадний список під шапкою */
.vbar { display: block; background: var(--surface); border-bottom: 1px solid var(--line); }
.vbar-in { display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding-block: 8px; }
.vlabel { color: var(--muted); font-size: .9rem; }
.vdrop { position: relative; }
.vdrop summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; background: var(--bg); }
.vdrop summary::-webkit-details-marker { display: none; }
.vdrop summary::after { content: ""; width: 7px; height: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-2px); }
.vdrop[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.vdrop summary:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.vdrop ul { position: absolute; z-index: 20; left: 0; top: calc(100% + 6px); min-width: 180px; margin: 0; padding: 6px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.vdrop li a { display: block; padding: 8px 12px; border-radius: 6px; text-decoration: none; color: var(--fg); }
.vdrop li a:hover { background: var(--bg); }
.vdrop li a.on { color: var(--accent); font-weight: 700; }
.vnote { margin-top: 16px; padding: 12px 14px; background: var(--bg); border-radius: 6px; }
.item-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; }
.item-list li { padding: 10px 0; border-top: 1px solid var(--line); }
.empty { color: var(--muted); padding: 14px 0; border-top: 1px solid var(--line); margin-top: 16px; }
.vadd { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 8px; background: var(--accent); color: var(--accent-fg); font-size: 1.5rem; line-height: 1; text-decoration: none; font-weight: 400; }
.vadd:hover { filter: brightness(1.1); }
.form small.err { color: var(--err-fg); }
/* судна вибраного типу поруч із «+»: гортання вбік лише в цьому блоці (випадний список типів не обрізається) */
.vbar-in { min-width: 0; }
.vchips { display: flex; gap: 8px; overflow-x: auto; min-width: 0; flex: 1 1 auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; -webkit-overflow-scrolling: touch; }
.vchips::-webkit-scrollbar { height: 5px; }
.vchips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.vchip { flex: 0 0 auto; white-space: nowrap; text-decoration: none; color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-weight: 600; font-size: .95rem; }
.vchip:hover { border-color: var(--accent); }
.vchip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.vdrop, .vadd { flex: 0 0 auto; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 18px; border-bottom: 1px solid var(--line); }
.vtabs a { padding: 8px 12px; text-decoration: none; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; font-weight: 600; }
.vtabs a.on { color: var(--accent); border-bottom-color: var(--accent); }
.dims { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; margin: 0 0 16px; }
.dims dt { color: var(--muted); font-size: .85rem; }
.dims dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.v3d { position: relative; width: 100%; height: min(70vh, 560px); min-height: 320px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; touch-action: none; }
.v3d canvas { display: block; width: 100%; height: 100%; }
.v3d-wait { padding: 20px; }
.v3d-tools { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin: 12px 0 4px; }
.dtoggle { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; margin-top: 14px; }
table.decks { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .92rem; }
table.decks th, table.decks td { text-align: right; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.decks th:first-child, table.decks td.wrap-cell { text-align: left; }
table.decks td.wrap-cell { white-space: normal; min-width: 180px; }
table.decks thead th { color: var(--muted); font-weight: 600; font-size: .8rem; }
.h2 { font-size: 1.15rem; margin: 22px 0 6px; }
.slope-t { color: #278776; }
.ramp-t { color: #a12b1f; }
ul.plain { padding-left: 18px; margin: 6px 0; }
ul.plain li { margin: 4px 0; }
/* ширше полотно: менше білого по боках (власник 08.11.2026) */
.wrap { max-width: 1280px; }
@media (max-width: 640px) {
	.card { padding: 18px 14px; }
	.v3d { margin-inline: -14px; width: calc(100% + 28px); border-radius: 0; border-left: 0; border-right: 0; }
}
/* рядок вантажів: пошук, «+», вантажі — в один рядок без переносу, гортається вбік */
.cbar { display: flex; align-items: center; gap: 8px; min-width: 0; }
.cbtn { flex: 0 0 auto; width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--accent); cursor: pointer; font: inherit; }
.cbtn.add { background: var(--signal); border-color: var(--signal); color: #fff; font-size: 1.4rem; line-height: 1; }
.cbtn:focus-visible, .cchip:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cbar-q { flex: 0 1 180px; min-width: 110px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--fg); font: inherit; }
.cchips { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; min-width: 0; flex: 1 1 auto; padding-bottom: 2px; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.cchips::-webkit-scrollbar { height: 5px; }
.cchips::-webkit-scrollbar-thumb { background: var(--line); border-radius: 3px; }
.cchip { flex: 0 0 auto; white-space: nowrap; text-decoration: none; color: var(--fg); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: .92rem; font-weight: 600; }
.cnone { white-space: nowrap; align-self: center; }
.cdlg { border: 1px solid var(--line); border-radius: 12px; padding: 22px; width: min(440px, calc(100vw - 32px)); background: var(--surface); color: var(--fg); }
.cdlg::backdrop { background: rgba(10, 20, 30, .45); }
.cdlg .h2 { margin-top: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.form select { font: inherit; padding: 10px 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--fg); }
/* менші вертикальні проміжки: рядок вантажів ближче до смуги судна й картки */
main { padding-block: 12px 40px; gap: 10px; }
.vhead { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.vhead h1 { margin: 0; flex: 0 1 auto; min-width: 0; overflow-wrap: anywhere; }
.ibtn { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--accent); font: 700 1rem/1 Georgia, 'Times New Roman', serif; font-style: italic; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ibtn:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cdlg .dims { margin: 12px 0; }
/* «Завантажити» — завжди внизу ліворуч */
.load-fab { position: fixed; z-index: 30; left: max(16px, env(safe-area-inset-left)); bottom: max(16px, env(safe-area-inset-bottom)); font: inherit; font-weight: 700; background: var(--signal); color: #fff; border: 0; border-radius: 999px; padding: 12px 22px; box-shadow: 0 6px 18px rgba(0,0,0,.2); cursor: pointer; }
.load-fab:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
main { padding-bottom: 84px; }
/* вантаж у рядку: коробка над назвою, вирівняні по низу (видно різницю розмірів) */
.cchips { align-items: flex-end; }
.cchip { display: inline-flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; padding: 6px 10px 5px; border-radius: 10px; }
.cchip span { font-size: .8rem; font-weight: 600; line-height: 1.1; }
.cbox { display: block; }
/* вантажі без рамки й білого фону */
.cchip { background: transparent; border: 0; cursor: pointer; font: inherit; color: var(--fg); border-radius: 10px; }
.cchip.sel { background: color-mix(in srgb, var(--accent) 12%, transparent); outline: 2px solid var(--accent); }
/* панель дій вантажу — знизу поверх усього */
.csheet { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0,0,0,.15); border-radius: 14px 14px 0 0;
	padding: 12px max(16px, env(safe-area-inset-right)) max(14px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); }
.csheet-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.csheet-head b { overflow-wrap: anywhere; }
.csheet-x { width: 34px; height: 34px; border: 0; background: var(--bg); border-radius: 50%; font-size: 1.3rem; line-height: 1; color: var(--muted); cursor: pointer; }
.csheet-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.csheet-btns form { margin: 0; display: contents; }
.sbtn { font: inherit; font-weight: 600; font-size: .9rem; padding: 12px 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--fg); cursor: pointer; }
.sbtn.load { background: var(--signal); border-color: var(--signal); color: #fff; }
.sbtn.danger { color: var(--err-fg); }
.sbtn.danger.ask { background: var(--err-bg); border-color: var(--err-fg); }
.radio { display: flex; gap: 8px; align-items: center; font-weight: 600; margin-top: 10px; }
.lopts { border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px 12px; margin: 12px 0 4px; }
.lopts legend { font-weight: 600; font-size: .9rem; padding: 0 4px; }
/* дії вантажу — випадне меню під вантажем: напівпрозорий фон, без рамки (замість панелі знизу) */
.csheet { position: absolute; left: 0; right: auto; bottom: auto; top: 0; width: max-content; max-width: min(340px, calc(100vw - 16px)); z-index: 60;
	background: color-mix(in srgb, var(--surface) 72%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
	border: 0; border-radius: 12px; box-shadow: 0 10px 28px rgba(0,0,0,.18); padding: 8px; }
.csheet-head { display: none; }
.csheet-btns { grid-template-columns: repeat(2, minmax(120px, 1fr)); gap: 6px; }
.sbtn { padding: 10px 12px; border: 0; background: color-mix(in srgb, var(--bg) 70%, transparent); }
/* ще прозоріший фон випадного меню вантажу */
.csheet { background: color-mix(in srgb, var(--surface) 40%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
/* перемикачі й галочки у формах — природного розміру (не на всю ширину, як текстові поля) */
.form input[type=radio], .form input[type=checkbox] { width: auto; padding: 0; margin: 0; }
.radio { justify-content: flex-start; }
.lopts .dtoggle { margin-top: 8px; }
.csheet-btns { grid-template-columns: repeat(3, minmax(96px, 1fr)); }
.sbtn.place { background: color-mix(in srgb, var(--accent) 80%, transparent); color: var(--accent-fg); }
/* підказки розміщення поверх 3D */
.v3d-toast { position: absolute; left: 50%; top: 10px; transform: translateX(-50%); z-index: 5; max-width: calc(100% - 20px); display: flex; gap: 10px; align-items: center;
	background: color-mix(in srgb, var(--surface) 85%, transparent); color: var(--fg); border-radius: 10px; padding: 8px 12px; box-shadow: 0 4px 14px rgba(0,0,0,.18); font-size: .9rem; }
.v3d-toast button { font: inherit; font-weight: 700; border: 0; border-radius: 8px; padding: 4px 10px; background: var(--bg); color: var(--accent); cursor: pointer; }
.form input.dim { opacity: .5; }

/* число завантажених поверх вантажу; у меню — скільки на кожній палубі */
.cchip { position: relative; }
.ccount { position: absolute; top: 0; right: 2px; min-width: 18px; padding: 1px 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 1.35; text-align: center; }
.csheet-stat { font-size: .85rem; margin-bottom: 8px; }
.csheet-stat b { display: block; margin-bottom: 2px; }
.csheet-stat span { display: inline-block; margin: 0 10px 2px 0; white-space: nowrap; }

/* джойстик для переміщення вибраної одиниці (як в іграх) */
.v3d-joy { position: absolute; right: 14px; bottom: 14px; z-index: 6; width: 116px; height: 116px; border-radius: 50%; touch-action: none; user-select: none;
	background: radial-gradient(circle, color-mix(in srgb, var(--surface) 55%, transparent) 0 55%, color-mix(in srgb, var(--accent) 22%, transparent) 56% 100%);
	border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent); display: flex; align-items: center; justify-content: center; }
.v3d-joy[hidden] { display: none; }
.v3d-joy-knob { width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
.v3d-toast small { opacity: .7; }

/* свій колір вантажу у вікні «Інфо» */
.c-color { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 12px 0 4px; }
.c-color input[type=color] { width: 52px; height: 36px; padding: 2px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }

/* вибір кольору вантажу */
.c-color { flex-direction: column; align-items: stretch; }
.c-color-l { font-weight: 600; }
.c-color .btn { align-self: flex-start; }
.cpick { display: grid; gap: 12px; }
.cpick-sv { position: relative; height: 150px; border-radius: 10px; cursor: crosshair; touch-action: none; border: 1px solid var(--line); }
.cpick-dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.cpick-hue { position: relative; height: 22px; border-radius: 11px; cursor: pointer; touch-action: none; border: 1px solid var(--line);
	background: linear-gradient(to right, #f00 0%, #ff0 16.66%, #0f0 33.33%, #0ff 50%, #00f 66.66%, #f0f 83.33%, #f00 100%); }
.cpick-knob { position: absolute; top: 50%; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.35), 0 2px 6px rgba(0,0,0,.3); pointer-events: none; }
.cpick-sv:focus-visible, .cpick-hue:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cpick-presets { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.cpick-pre { height: 30px; border-radius: 8px; border: 1px solid rgba(0,0,0,.15); cursor: pointer; padding: 0; }
.cpick-pre:focus-visible { outline: 2px solid var(--signal); outline-offset: 2px; }
.cpick-row { display: flex; align-items: center; gap: 10px; }
.cpick-prev { width: 44px; height: 30px; border-radius: 8px; border: 1px solid var(--line); }
.cpick-row code { font-size: .9rem; color: var(--muted, inherit); }

/* «×» біля палуби в меню вантажу */
.csheet-stat .stat-rm { margin-left: 4px; width: 22px; height: 22px; line-height: 20px; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: #b3261e; font-weight: 700; cursor: pointer; }

/* збережені завантаження */
.plans { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.plans li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--line); border-radius: 10px; }
.plans li.cur { border-color: var(--accent); }
.plans li > div { flex: 1 1 160px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.plans li b { overflow-wrap: anywhere; }
.plans .btn { padding: 6px 12px; }
.plans .btn.ask { background: #b3261e; color: #fff; border-color: #b3261e; }
.sbtn.close { grid-column: 1 / -1; }

/* джойстик обертання — над джойстиком руху */
.v3d-rot { position: absolute; right: 14px; bottom: 142px; z-index: 6; width: 116px; height: 44px; border-radius: 22px; touch-action: none; user-select: none;
	background: color-mix(in srgb, var(--surface) 55%, transparent); border: 2px solid color-mix(in srgb, var(--accent) 55%, transparent);
	display: flex; align-items: center; justify-content: space-between; padding: 0 8px; font-weight: 700; color: var(--accent); }
.v3d-rot[hidden] { display: none; }
.v3d-rot-knob { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 80%, transparent); box-shadow: 0 2px 8px rgba(0,0,0,.25); pointer-events: none; }
.v3d-rot-l, .v3d-rot-r { pointer-events: none; font-size: 1.1rem; }
