/* Mr. Friend Bookings — portal */
:root {
	--blue: #0B3D91; --blue-2: #1554C0; --red: #E4161C; --sun: #F7C600; --ink: #071A3D; --muted: #56658A;
	--salt: #EEF4FF; --line: #DCE4F2; --card: #fff; --ok: #138A4C; --warn: #B76E00;
	--r: 14px; --side: 232px;
	--font: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
.mftp-body { background: var(--salt); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--blue-2); }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -.015em; margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; letter-spacing: .02em; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.center { text-align: center; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row-end { display: flex; gap: 8px; justify-content: flex-end; margin-top: 18px; }

/* splash + login */
.mftp-splash { min-height: 100vh; display: grid; place-items: center; }
.mftp-splash img { width: 180px; animation: pulse 1.2s ease-in-out infinite alternate; }
@keyframes pulse { to { transform: scale(1.04); opacity: .7; } }
.mftp-login { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 10% -10%, #fff 0, transparent 60%), var(--blue); }
.mftp-login__card { background: #fff; border-radius: 24px; padding: 32px; width: min(420px, 100%); box-shadow: 8px 8px 0 var(--ink); border: 2px solid var(--ink); }
.mftp-login__logo { width: 190px; display: block; margin: 0 auto 18px; }
.mftp-login h1 { font-size: 26px; margin-bottom: 4px; }
.mftp-login p { color: var(--muted); margin: 0 0 18px; }
.mftp-login form p { margin: 0 0 12px; color: var(--ink); }
.mftp-login label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.mftp-login input[type=text], .mftp-login input[type=password] { width: 100%; font: inherit; font-size: 16px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 12px; }
.mftp-login input[type=submit], .mftp-btn { width: 100%; background: var(--red); color: #fff; border: 0; border-radius: 999px; padding: 14px; font: 700 16px var(--font); cursor: pointer; box-shadow: 0 3px 0 #9C0B0F; text-decoration: none; display: inline-block; text-align: center; }
.mftp-login .login-remember label { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.mftp-login__lost { text-align: center; font-size: 14px; margin-top: 12px !important; }

/* shell */
.mftp { display: grid; grid-template-columns: var(--side) 1fr; min-height: 100vh; }
.side { background: var(--ink); color: #C9D5EE; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 0; height: 100vh; }
.side__logo { display: block; background: #fff; border-radius: 16px; padding: 10px; }
.side__logo img { width: 100%; display: block; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: #C9D5EE; text-decoration: none; font-weight: 600; }
.nav__a svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.nav__a:hover { background: rgba(255,255,255,.07); color: #fff; }
.nav__a.is-on { background: #fff; color: var(--ink); }
.nav__a.is-on svg { stroke: var(--red); }
.side__me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; background: rgba(255,255,255,.06); }
.side__me img { width: 36px; height: 36px; border-radius: 50%; }
.side__me strong { display: block; color: #fff; font-size: 14px; }
.side__me small { font-size: 12px; }
.side__links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; padding: 0 4px; }
.side__links a { color: #9FB2DA; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { display: flex; align-items: center; gap: 16px; padding: 16px 28px; background: rgba(238,244,255,.9); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); }
.top__title { font-size: 24px; flex: none; }
.top__search { flex: 1; max-width: 460px; margin-left: auto; }
.top__search input { width: 100%; font: inherit; padding: 10px 14px 10px 38px; border-radius: 999px; border: 1px solid var(--line); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2356658A' stroke-width='2'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-4-4'/%3E%3C/svg%3E") 12px 50% / 18px no-repeat; }
.view { padding: 24px 28px 60px; display: flex; flex-direction: column; gap: 20px; }

/* buttons + inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: #fff; color: var(--ink); border-radius: 999px; padding: 9px 16px; font-weight: 700; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .12s, border-color .12s, transform .12s; }
.btn:hover { border-color: #B8C6E2; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--primary { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 2px 0 #9C0B0F; }
.btn--primary:hover { background: #CC1015; border-color: #CC1015; }
.btn--danger { background: #fff; border-color: #F3B8BA; color: #B30F14; }
.btn--danger:hover { background: #FFF1F1; }
.btn--ghost { background: transparent; border-color: transparent; color: var(--blue-2); }
.btn--plain { background: #fff; }
.btn--wa { background: #1DA851; border-color: #1DA851; color: #fff; }
.btn--small { padding: 6px 12px; font-size: 13px; }
.btn--icon { padding: 7px; width: 36px; height: 36px; }
.input { font: inherit; font-size: 15px; color: var(--ink); border: 1px solid #C9D5EA; border-radius: 10px; padding: 8px 11px; background: #fff; min-width: 0; }
.input:focus { outline: none; border-color: var(--blue-2); box-shadow: 0 0 0 3px rgba(21,84,192,.15); }
.input:disabled { background: #F5F7FB; color: var(--muted); }
.input--num { width: 90px; }
.input--date { width: auto; }
textarea.input { resize: vertical; }

.pill { display: inline-block; border-radius: 999px; padding: 2px 9px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill--pending { background: #FFF2C6; color: #7A5300; }
.pill--confirmed { background: #DCE8FF; color: #0B3D91; }
.pill--paid { background: #D2F3DF; color: #0E6A38; }
.pill--completed { background: #E7ECF4; color: #3C4B68; }
.pill--cancelled { background: #FFE1E2; color: #A20F14; text-decoration: line-through; }
.pill--no_show { background: #2C3650; color: #fff; }
.tag { display: inline-block; border-radius: 6px; padding: 1px 7px; font-size: 11px; font-weight: 700; background: var(--salt); color: var(--blue); font-style: normal; }
.tag--note { background: #FFF2C6; color: #7A5300; }
.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 11px; font-weight: 800; flex: none; }
.avatar--lg { width: 40px; height: 40px; font-size: 14px; }
.alert { background: #FFF1F1; color: #A20F14; border-radius: 10px; padding: 9px 12px; margin: 8px 0 0; font-size: 14px; }
.ok-box { background: #E3F7EC; color: #0E6A38; border-radius: 10px; padding: 10px 12px; font-weight: 700; }
.note-box { background: #FFF8D9; border-radius: 10px; padding: 10px 12px; margin: 0 0 12px; font-size: 14px; }
.due-banner { margin: 0; background: #FFF8D9; border-radius: 10px; padding: 8px 12px; }

/* overview */
.hello { margin: 0; font-size: 17px; color: var(--muted); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.tile { background: var(--card); border-radius: var(--r); padding: 16px 18px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, transform .15s; }
.tile:hover { border-color: var(--blue-2); transform: translateY(-2px); }
.tile strong { font: 800 28px/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.tile span { font-weight: 700; }
.tile small { color: var(--muted); }
.tile--hot { background: var(--sun); border-color: var(--sun); }
.tile--hot small { color: #5A4500; }
.grid2 { display: grid; grid-template-columns: 1.4fr 1fr; gap: 20px; align-items: start; }
.card { background: var(--card); border-radius: var(--r); padding: 18px 20px; border: 1px solid var(--line); min-width: 0; }
.card--flush { padding: 0; overflow: hidden; }
.card > h2 { font-size: 18px; margin-bottom: 12px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card__head h2 { font-size: 18px; }
.card__head a { font-weight: 600; font-size: 14px; }
.chart { width: 100%; height: auto; display: block; }
.chart .bar { fill: #BCD0F5; }
.chart .bar--today { fill: var(--red); }
.chart .bar__v { font: 700 11px var(--font); fill: var(--ink); text-anchor: middle; }
.chart .bar__x { font: 500 10px var(--font); fill: var(--muted); text-anchor: middle; }
.chart .axis { stroke: var(--line); }
.plist { list-style: none; margin: 0; padding: 0; }
.plist li { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.plist li:last-child { border-bottom: 0; }
.plist__main { flex: 1; text-align: left; background: none; border: 0; padding: 0; cursor: pointer; min-width: 0; }
.plist__main strong { display: block; }
.plist__main span { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.plist__act { display: flex; gap: 6px; }
.plist__act svg, .btn--wa svg { fill: none; stroke: #fff; }
.rank { width: 100%; border-collapse: collapse; font-size: 14px; }
.rank td { padding: 7px 6px; border-bottom: 1px solid var(--line); }
.rank__bar { width: 30%; }
.rank__bar span { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--blue), var(--blue-2)); }

/* run sheet */
.run { display: flex; flex-direction: column; gap: 12px; }
.run__slot { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.run__time strong { font: 800 22px var(--display); display: block; font-variant-numeric: tabular-nums; }
.run__time small { color: var(--muted); }
.run__list { display: flex; flex-direction: column; gap: 6px; }
.run__item { display: flex; flex-direction: column; gap: 2px; text-align: left; background: var(--salt); border: 1px solid transparent; border-radius: 12px; padding: 10px 14px; cursor: pointer; }
.run__item:hover { border-color: #B8C6E2; background: #fff; }
.run__who { display: flex; gap: 8px; align-items: center; }
.run__meta { font-size: 13px; color: var(--muted); }

/* calendar */
.cal__bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cal__bar h2 { font-size: 22px; min-width: 220px; text-align: center; }
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal__dow { font-size: 12px; font-weight: 700; color: var(--muted); padding: 0 6px; }
.cal__cell { background: #fff; border: 1px solid var(--line); border-radius: 12px; min-height: 108px; padding: 8px; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 2px; font-size: 12px; transition: border-color .12s; }
.cal__cell:hover { border-color: var(--blue-2); }
.cal__cell--pad { background: transparent; border: 0; }
.cal__cell.is-past { opacity: .6; }
.cal__cell.is-today { border: 2px solid var(--red); }
.cal__d { font: 800 18px var(--display); }
.cal__n { font-weight: 700; }
.cal__p { color: var(--muted); }
.cal__q { position: relative; display: block; background: var(--salt); border-radius: 6px; padding: 1px 6px; overflow: hidden; z-index: 0; }
.cal__q i { position: absolute; inset: 0 auto 0 0; background: #BCD0F5; z-index: -1; }
.cal__pend { color: #7A5300; background: #FFF2C6; border-radius: 6px; padding: 1px 6px; font-weight: 700; }

/* gantt */
.gantt { position: relative; display: flex; flex-direction: column; gap: 4px; overflow-x: auto; }
.gantt__hours, .gantt__lane { display: grid; grid-template-columns: 84px 1fr; align-items: center; min-width: 640px; }
.gantt__label { font-size: 12px; font-weight: 700; color: var(--muted); }
.gantt__track { position: relative; height: 38px; background: repeating-linear-gradient(90deg, var(--salt) 0 1px, transparent 1px calc(100% / 13)); border-radius: 8px; }
.gantt__lane .gantt__track { background-color: #F7F9FD; }
.gantt__hours .gantt__track { height: 18px; background: none; }
.gantt__hours .gantt__track span { position: absolute; transform: translateX(-50%); font-size: 11px; color: var(--muted); }
.gantt__bar { position: absolute; top: 3px; bottom: 3px; border: 0; border-radius: 8px; padding: 2px 8px; text-align: left; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; justify-content: center; line-height: 1.15; text-decoration: none !important; }
.gantt__bar span { font-weight: 700; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt__bar small { font-size: 11px; opacity: .8; }
.gantt__bar:hover { filter: brightness(.96); box-shadow: 0 0 0 2px var(--ink); }
.gantt__now { position: absolute; top: 18px; bottom: 0; width: 2px; background: var(--red); pointer-events: none; }
.fleet-size { display: flex; align-items: center; gap: 8px; font-weight: 600; margin-left: auto; }

/* filters + table */
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filters > .input[type=search] { width: 220px; }
.filters p { margin: 0; }
.filters__end { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.lbl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.chips { display: flex; gap: 4px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 11px; font-size: 13px; font-weight: 600; cursor: pointer; }
.chip.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }
.tablewrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #FAFBFE; white-space: nowrap; }
.table th button { background: none; border: 0; padding: 0; font-weight: 700; color: inherit; cursor: pointer; }
.table th button.is-on { color: var(--ink); }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table td small { display: block; color: var(--muted); font-size: 12px; }
.table tbody tr[data-open] { cursor: pointer; }
.table tbody tr[data-open]:hover { background: #F6F9FF; }
.table .due { color: var(--warn); font-weight: 700; }
.table .ellipsis { max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.table--mini { font-size: 12px; }
.table--mini td, .table--mini th { padding: 6px 8px; }
.table--edit { min-width: 760px; }
.table--edit td { padding: 6px 4px; vertical-align: middle; }
.table--edit .input { width: 100%; padding: 7px 8px; font-size: 14px; }
.table--edit td:first-child { min-width: 160px; }
.pager { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; }

/* drawer + modal */
.drawer { position: fixed; inset: 0; z-index: 50; display: flex; justify-content: flex-end; }
.drawer__back { position: absolute; inset: 0; background: rgba(7,26,61,.35); animation: fade .2s; }
.drawer__panel { position: relative; width: min(680px, 100%); background: #fff; height: 100%; overflow-y: auto; padding: 22px 24px 40px; animation: slide .25s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; gap: 14px; }
.drawer.is-out .drawer__panel { transform: translateX(30px); opacity: 0; transition: .2s; }
.drawer.is-out .drawer__back { opacity: 0; transition: .2s; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
.drawer__head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.drawer__head h2 { font-size: 24px; margin: 6px 0 2px; }
.drawer__head p { margin: 0; color: var(--muted); }
.drawer__actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.bform fieldset { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.bform legend { font: 700 16px var(--display); margin-bottom: 10px; padding: 0; }
.fgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.fl { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); min-width: 0; }
.fl .input { width: 100%; }
.fl--wide { grid-column: 1 / -1; }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; grid-column: 1 / -1; }
.check input { width: 18px; height: 18px; }
.bform__foot { display: flex; gap: 8px; justify-content: space-between; }
.bform__foot--sticky { position: sticky; bottom: 12px; justify-content: flex-end; }
.slots { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 38px; }
.slot { display: inline-flex; flex-direction: column; align-items: flex-start; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 4px 10px; cursor: pointer; line-height: 1.2; color: var(--ink); }
.slot strong { font-size: 15px; }
.slot small { font-size: 11px; color: var(--muted); }
.slot.is-on { border-color: var(--red); background: #FFF3F3; box-shadow: inset 0 0 0 1px var(--red); }
.slot.is-full { border-style: dashed; }
.slot.is-full small { color: #A20F14; }
.notes h3, .log h3 { font-size: 16px; margin-bottom: 8px; }
.notes .input { flex: 1; }
.notes__pre { white-space: pre-wrap; font: inherit; font-size: 14px; background: var(--salt); padding: 10px; border-radius: 10px; }
.log ul { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.log li { padding: 6px 0; border-bottom: 1px dashed var(--line); }
.log small { display: block; color: var(--muted); font-size: 12px; }
.modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; }
.modal__back { position: absolute; inset: 0; background: rgba(7,26,61,.45); animation: fade .15s; }
.modal__box { position: relative; background: #fff; border-radius: 18px; padding: 22px; width: min(460px, 100%); max-height: 90vh; overflow: auto; animation: pop .18s ease-out; }
.modal--wide .modal__box { width: min(760px, 100%); }
.modal__box h2 { font-size: 20px; margin-bottom: 8px; }
@keyframes pop { from { transform: scale(.96); opacity: 0; } }
.drop { display: grid; place-items: center; border: 2px dashed #B8C6E2; border-radius: 14px; padding: 26px; cursor: pointer; text-align: center; font-weight: 600; color: var(--blue-2); }
.drop.is-over, .drop:hover { background: var(--salt); }
.drop input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.errlist { max-height: 180px; overflow: auto; font-size: 13px; color: #A20F14; }

/* tours */
.sect { font-size: 20px; margin-top: 6px; }
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.tcard { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; text-align: left; padding: 0; cursor: pointer; transition: transform .15s, border-color .15s; }
.tcard:hover { transform: translateY(-2px); border-color: var(--blue-2); }
.tcard img, .tcard__ph { width: 100%; aspect-ratio: 16/7; object-fit: cover; display: block; }
.tcard__ph { background: linear-gradient(135deg, var(--blue), var(--blue-2)); }
.tcard__ph--quad { background: linear-gradient(135deg, #E4161C, #F7C600); }
.tcard__ph--turtle, .tcard__ph--water { background: linear-gradient(135deg, #0B8FA8, #6FD6E3); }
.tcard__ph--hike { background: linear-gradient(135deg, #1D7A46, #9ED36A); }
.tcard__ph--food, .tcard__ph--culture { background: linear-gradient(135deg, #8A3FD1, #E4161C); }
.tcard__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.tcard__body small { color: var(--muted); }
.tcard__price { font-weight: 800; margin-top: 4px; }
.days { display: flex; gap: 6px; margin-bottom: 12px; flex-wrap: wrap; }
.day input { position: absolute; opacity: 0; }
.day span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-weight: 700; font-size: 13px; cursor: pointer; }
.day input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.day input:focus-visible + span { outline: 3px solid var(--sun); }

/* team */
.team { list-style: none; margin: 0; padding: 0; }
.team li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.team li > div { flex: 1; min-width: 0; }
.team small { display: block; color: var(--muted); }
.settings .card { display: flex; flex-direction: column; gap: 12px; }

/* misc */
.loading { display: flex; gap: 6px; justify-content: center; padding: 40px; }
.loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--blue-2); animation: bounce .9s infinite alternate; }
.loading span:nth-child(2) { animation-delay: .15s; } .loading span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce { to { transform: translateY(-8px); opacity: .4; } }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty h2 { color: var(--ink); margin-bottom: 6px; font-size: 20px; }
.empty--small { padding: 16px; }
.empty--small p { margin: 0; }
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast { background: var(--ink); color: #fff; padding: 11px 18px; border-radius: 999px; font-weight: 600; box-shadow: 0 10px 30px rgba(7,26,61,.25); animation: pop .2s; }
.toast--ok { background: #0E6A38; }
.toast--error { background: #A20F14; }
.toast.is-out { opacity: 0; transform: translateY(8px); transition: .3s; }

@media (max-width: 1100px) { .grid2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
	.mftp { grid-template-columns: 1fr; }
	.side { position: fixed; bottom: 0; top: auto; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px; z-index: 40; gap: 0; border-top: 1px solid #1B2C52; }
	.side__logo, .side__me, .side__links { display: none; }
	.nav { flex-direction: row; overflow-x: auto; width: 100%; }
	.nav__a { flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 10px; flex: 1; min-width: 72px; }
	.top { padding: 12px 16px; flex-wrap: wrap; }
	.top__title { font-size: 20px; }
	.top__search { order: 3; max-width: none; flex-basis: 100%; }
	.top .btn span { display: none; }
	.view { padding: 16px 14px 100px; }
	.fgrid { grid-template-columns: 1fr; }
	.cal__cell { min-height: 64px; padding: 4px; }
	.cal__p, .cal__q { display: none; }
	.run__slot { grid-template-columns: 1fr; gap: 4px; }
	.drawer__panel { padding: 16px; }
	.filters__end { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before { animation: none !important; transition: none !important; } }
@media print {
	.side, .top, .cal__bar .btn, .filters, .drawer, .toasts { display: none !important; }
	.mftp { display: block; }
	.view { padding: 0; }
	.card { border: 0; padding: 0; }
	.run__item { background: none; border: 1px solid #ccc; break-inside: avoid; }
	.mftp-body { background: #fff; }
}
@media (max-width: 860px) {
	.tiles { grid-template-columns: 1fr 1fr; gap: 8px; }
	.tile { padding: 12px; }
	.tile strong { font-size: 22px; }
	.top .btn--primary { margin-left: auto; }
}
