.ftm-toolbar { display:flex; align-items:end; justify-content:space-between; flex-wrap:wrap; gap:10px; margin-bottom:10px; }
.ftm-toolbar label { display:grid; gap:4px; min-width:160px; font-size:12px; font-weight:700; }
.ftm-toolbar select,.ftm-toolbar a,.ftm-card header a { display:inline-flex; align-items:center; min-height:44px; box-sizing:border-box; padding:8px 11px; border:1px solid #b5cbd4; border-radius:8px; background:#fff; color:#176966; font:inherit; text-decoration:none; }
.ftm-note { display:flex; align-items:center; gap:6px; margin:0 0 10px; color:#60758b; font-size:12px; }
.ftm-cards { display:grid; gap:12px; }
.ftm-card { min-width:0; padding:14px; border:1px solid #d7e1ea; border-radius:11px; background:#fff; }
.ftm-card header { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.ftm-card h3,.ftm-card h4 { margin:0; }.ftm-card h3 { font-size:16px; }.ftm-card h4 { margin:14px 0 7px; font-size:13px; }
.ftm-card small { color:#60758b; }.ftm-stops,.ftm-extras,.ftm-variants { display:grid; grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); gap:6px; }
.ftm-stops div,.ftm-extras div,.ftm-variants div { display:flex; justify-content:space-between; gap:8px; padding:8px 10px; border:1px solid #e1e8ee; border-radius:7px; }
.ftm-stops strong,.ftm-extras strong,.ftm-variants strong { text-align:right; font-variant-numeric:tabular-nums; white-space:nowrap; }
.ftm-empty { padding:16px; border:1px solid #d7e1ea; border-radius:9px; background:#fff; }
@media(max-width:560px) { .ftm-toolbar>* { width:100%; }.ftm-toolbar select,.ftm-toolbar a,.ftm-card header a { width:100%; }.ftm-card { padding:11px; }.ftm-card header a { margin-top:7px; }.ftm-stops,.ftm-extras,.ftm-variants { grid-template-columns:minmax(0,1fr); } }
.ftm-actions,.ftm-source { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.ftm-source { margin:0 0 12px; }
.ftm-actions button,.ftm-source button,.ftm-editor button { min-height:44px; border:1px solid #b5cbd4; border-radius:8px; background:#fff; color:#176966; padding:8px 12px; font:inherit; cursor:pointer; }
.ftm-actions button:hover,.ftm-source button:hover,.ftm-editor button:hover { background:#eef7f6; }
.ftm-layout { display:grid; grid-template-columns:minmax(0,1fr) minmax(310px,420px); align-items:start; gap:14px; }
.ftm-editor { min-width:0; padding:14px; border:1px solid #bdd7da; border-radius:11px; background:#fff; }
.ftm-editor header { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-bottom:12px; }
.ftm-editor h2,.ftm-editor h3 { margin:0; }.ftm-editor h2 { font-size:17px; }.ftm-editor h3 { font-size:14px; margin:14px 0 8px; }
.ftm-editor header button { min-width:44px; font-size:21px; }
.ftm-identity,.ftm-extra-edit,.ftm-base-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.ftm-identity .ftm-field:first-child { grid-column:1/-1; }
.ftm-field { display:grid; gap:4px; min-width:0; font-size:12px; font-weight:650; color:#465e73; }
.ftm-field input { min-height:44px; width:100%; box-sizing:border-box; padding:8px 10px; border:1px solid #bacbd8; border-radius:7px; background:#fff; color:#173049; font:inherit; font-size:14px; }
.ftm-base-wrap { max-height:420px; overflow:auto; margin:12px 0; padding:2px 4px 8px 0; }
.ftm-base { grid-template-columns:auto minmax(80px,1fr); align-items:center; }.ftm-base span { white-space:nowrap; }
.ftm-variant-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)) auto; gap:8px; align-items:end; margin:0 0 10px; padding:10px; border:1px solid #d7e1ea; border-radius:8px; }
.ftm-variant-row button { align-self:center; }
.ftm-editor footer { display:flex; justify-content:space-between; align-items:center; gap:8px; margin-top:14px; border-top:1px solid #e1e8ee; padding-top:12px; }
.ftm-editor footer span { color:#637b8b; font-size:12px; }.ftm-editor footer button { background:#087c75; color:#fff; border-color:#087c75; }
.ftm-error { color:#a32d2d; }.ftm-notice { color:#087c75; }
@media(max-width:1050px) { .ftm-layout { grid-template-columns:minmax(0,1fr); }.ftm-editor { order:-1; } }
@media(max-width:560px) { .ftm-actions button,.ftm-source button { flex:1 1 100%; }.ftm-identity,.ftm-extra-edit,.ftm-base-grid { grid-template-columns:minmax(0,1fr); }.ftm-variant-row { grid-template-columns:repeat(2,minmax(0,1fr)); }.ftm-variant-row button { grid-column:1/-1; } }
.ftm-overview { min-width:0; }
.ftm-comparison { max-width:100%; max-height:680px; overflow:auto; border:1px solid #d7e1ea; border-radius:10px; background:#fff; }
.ftm-comparison:focus-visible { outline:2px solid #087c75; outline-offset:2px; }
.ftm-comparison table { width:100%; border-collapse:separate; border-spacing:0; font-variant-numeric:tabular-nums; }
.ftm-comparison th,.ftm-comparison td { min-width:125px; padding:9px 12px; border-right:1px solid #dce5ec; border-bottom:1px solid #dce5ec; text-align:left; white-space:nowrap; }
.ftm-comparison th:first-child { position:sticky; left:0; z-index:1; min-width:175px; background:#f3f7fa; }
.ftm-comparison thead th { position:sticky; top:0; z-index:2; background:#eaf1f5; }
.ftm-comparison thead th:first-child { z-index:3; background:#eaf1f5; }
.ftm-comparison thead a { display:grid; gap:2px; color:#176966; text-decoration:none; }
.ftm-comparison thead a:hover { text-decoration:underline; }
.ftm-comparison thead a span { font-size:11px; font-weight:400; color:#60758b; }
.ftm-comparison tr:last-child th,.ftm-comparison tr:last-child td { border-bottom:0; }
.ftm-comparison th:last-child,.ftm-comparison td:last-child { border-right:0; }
.ftm-comparison + .ftm-cards { margin-top:12px; }
