/* Cockpit: Gestaltung der Spielseiten (Phase 3). Reine CSS-Haut ueber dem vorhandenen Markup,
   damit JS, Formulare und Live-Komponenten der klassischen Seiten unveraendert weiterlaufen.
   Alles ist auf .cockpit .ck-main begrenzt und beruehrt das klassische Layout nicht. */

/* ---- Gemeinsam ---- */
/* Die klassischen Seiten haben einen eigenen dunklen Block (#content.main, Innenabstand): im Panel
   des Cockpits stoert er, das Panel selbst ist schon die Flaeche. */
.cockpit .ck-main #content, .cockpit .ck-main section.main, .cockpit .ck-main #content > .container-fluid { background: transparent; padding-top: 0; padding-bottom: 0; box-shadow: none; border: 0; }
.cockpit .ck-main #content .container-fluid { padding-left: 0; padding-right: 0; }
.cockpit .ck-main .buildings { padding: 0; }

.cockpit .ck-main { --ck-metal: #B8C4D6; --ck-crystal: #C58BFF; --ck-deut: #4FD6C4; --ck-energy: #FFD54A; }

/* Planetenauswahl und Begruessung der Seite: im Cockpit steckt beides im Rahmen (Planet wechseln,
   Titel im Fenster). Die Zeile verschwindet nur optisch, das Formular bleibt im DOM. */
.cockpit .ck-main .row:has(> [class*="col-"] > .planet-switcher-select),
.cockpit .ck-main .row:has(> [class*="col-"] > .planet-switcher-select-main) { display: none; }

/* Fusszeile (cockpit/parts/footer.html.twig) */
.cockpit .ck-footer { margin-top: 24px; padding-top: 12px; border-top: 1px solid #6FE7FF26; font-size: 13px; color: #7C95A9; }
.cockpit .ck-footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 4px; }
.cockpit .ck-footer a { color: #9BB1C3; text-decoration: none; }
.cockpit .ck-footer .ck-vote img { display: block; border-radius: 4px; }
.cockpit .ck-footer a:hover { color: #6FE7FF; text-decoration: underline; }
.cockpit .ck-footer code { color: #9BB1C3; background: transparent; }

.cockpit .ck-main h3, .cockpit .ck-main h4, .cockpit .ck-main h5 { color: #E6F3FA; }
.cockpit .ck-main .text-muted { color: #9BB1C3 !important; }
.cockpit .ck-main .alert { border: 0; border-radius: 6px; color: #E6F3FA; box-shadow: inset 0 0 0 1px #6FE7FF44; background: #6FE7FF12; }
.cockpit .ck-main .alert-success { background: #8FE3A512; box-shadow: inset 0 0 0 1px #8FE3A566; color: #CFF5DA; }
.cockpit .ck-main .alert-danger { background: #FF5D6C14; box-shadow: inset 0 0 0 1px #FF5D6C66; color: #FFC4C9; }
.cockpit .ck-main .alert-warning { background: #FFB04A12; box-shadow: inset 0 0 0 1px #FFB04A66; color: #FFD9A3; }
.cockpit .ck-main .alert-primary, .cockpit .ck-main .alert-info { background: #6FE7FF10; color: #D3E8F2; }
.cockpit .ck-main .metal { color: var(--ck-metal); }
.cockpit .ck-main .crystal { color: var(--ck-crystal); }
.cockpit .ck-main .deuterium { color: var(--ck-deut); }
.cockpit .ck-main .energy { color: var(--ck-energy); }

/* Knoepfe: aktive Aktion = Bernstein, gesperrt = gedaempft */
.cockpit .ck-main .btn { border-radius: 0; font-weight: 600; min-height: 38px; border: 0; }
.cockpit .ck-main .btn-light,
.cockpit .ck-main .btn-primary,
.cockpit .ck-main .btn-success { color: #1B1204; background: #FFB04A; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-main .btn-light:hover, .cockpit .ck-main .btn-primary:hover, .cockpit .ck-main .btn-success:hover { background: #FFC26E; color: #1B1204; }
.cockpit .ck-main .btn-secondary,
.cockpit .ck-main .btn-outline-secondary,
.cockpit .ck-main .btn-outline-light { color: #C4D6E4; background: #6FE7FF14; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-main .btn-secondary:disabled, .cockpit .ck-main .btn[disabled] { color: #8CA3B5; background: #6FE7FF10; opacity: 1; cursor: not-allowed; }
.cockpit .ck-main .btn-danger { background: #FF5D6C; color: #1E0709; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-main .btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; box-shadow: none; }

/* ---- Kacheln: Gebaeude, Forschung, Schiffswerft, Verteidigung ---- */
.cockpit .ck-main .buildings-container .buildings .row { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; margin: 0; width: 100%; }
.cockpit .ck-main .buildings-container .buildings .row > [class*="col-"] { width: auto; max-width: none; flex: none; padding: 0; }
.cockpit .ck-main .buildings-container .buildings .row .building { background: #6FE7FF0A; border: 0; box-shadow: inset 0 0 0 1px #6FE7FF2E; border-radius: 6px; padding: 12px; color: #E6F3FA; height: 100%; }
.cockpit .ck-main .building-headline { background: transparent !important; border: 0; text-align: left !important; padding: 0 0 8px !important; margin: 0 !important; font-size: 17px; font-weight: 600; color: #E6F3FA !important; }
.cockpit .ck-main .building-headline .level-badge { margin-left: 8px; padding: 1px 8px; font-size: 12.5px; font-weight: 700; color: #06121C !important; background: #6FE7FF; border-radius: 3px; }
.cockpit .ck-main .building-content { gap: 12px; }
.cockpit .ck-main .building-content-image { width: auto; flex: 0 0 42%; padding: 0 !important; }
.cockpit .ck-main .building-content-image .building-image-hover-wrap img { max-height: 150px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px #6FE7FF40; }
.cockpit .ck-main .building-description-overlay { background: #050E19F2 !important; color: #D3E1EC !important; border-radius: 4px; }
.cockpit .ck-main .building-content-specs { margin-left: 0 !important; width: auto; flex: 1; min-width: 0; color: #D3E1EC !important; font-size: 13.5px !important; line-height: 1.5 !important; }
.cockpit .ck-main .building-content-specs h4 { font-size: 13.5px !important; color: #9BB1C3 !important; font-weight: 500; }
.cockpit .ck-main .building-button { margin-top: 10px !important; }
.cockpit .ck-main .building-button .btn, .cockpit .ck-main .building-button button { width: 100%; }
.cockpit .ck-main .shipyard-tile-row .building-content-image { flex: 0 0 42%; max-width: 42%; }
.cockpit .ck-main .ship-description { color: #9BB1C3 !important; font-size: 13px !important; }

/* Ressourcenfarben in den Kacheln (die klassische Regel ist spezifischer) */
.cockpit .ck-main .buildings-container .buildings .row .building .metal { color: var(--ck-metal); }
.cockpit .ck-main .buildings-container .buildings .row .building .crystal { color: var(--ck-crystal); }
.cockpit .ck-main .buildings-container .buildings .row .building .deuterium { color: var(--ck-deut); }
.cockpit .ck-main .buildings-container .buildings .row .building .energy { color: var(--ck-energy); }

/* Bauschlange und Fortschritt */
.cockpit .ck-main .building-queue { background: #6FE7FF0A !important; box-shadow: inset 0 0 0 1px #6FE7FF2E; border-radius: 6px; padding: 12px 14px !important; margin: 0 0 12px !important; color: #E6F3FA; }
.cockpit .ck-main .building-queue .building-headline { padding-bottom: 6px !important; }
.cockpit .ck-main .queue-list { padding: 0; gap: 6px; }
.cockpit .ck-main .queue-item { background: #02080F80; border-radius: 5px; padding: 8px 10px; box-shadow: inset 0 0 0 1px #6FE7FF22; }
/* Balken: Die Restzeit stand im (oft nur wenige Pixel breiten) gefuellten Teil und war nicht lesbar.
   Jetzt hat der Balken Hoehe, und der Text liegt ueber der ganzen Breite. */
.cockpit .ck-main .queue-item-body { display: flex; align-items: center; gap: 10px; flex-wrap: nowrap; }
.cockpit .ck-main .queue-progress-container { position: relative; flex: 1 1 auto; min-width: 140px; width: auto; height: 28px; overflow: hidden; background: #6FE7FF1A; border-radius: 3px; box-shadow: inset 0 0 0 1px #6FE7FF33; }
.cockpit .ck-main .queue-progress-bar { position: static; height: 100%; min-width: 4px; max-width: 100%; overflow: visible; background: #FFB04A !important; box-shadow: 0 0 10px #FFB04A88; border-radius: 0; transition: width .9s linear; }
.cockpit .ck-main .queue-progress-text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; width: auto; padding: 0 8px; overflow: visible; white-space: nowrap; font-size: 14px; font-weight: 700; color: #fff; text-shadow: 0 1px 3px #000, 0 0 6px #000; font-variant-numeric: tabular-nums; }
.cockpit .ck-main .queue-item-icon { flex: 0 0 auto; }
.cockpit .ck-main .queue-item-icon img { width: 36px; height: 36px; object-fit: cover; border-radius: 4px; }
.cockpit .ck-main .queue-cancel { flex: 0 0 auto; }
.cockpit .ck-main .queue-cancel .btn { min-width: 36px; min-height: 36px; padding: 0 8px; }
.cockpit .ck-main .queue-item-header { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-bottom: 6px; font-size: 13px; color: #9BB1C3; }
.cockpit .ck-main .queue-item-type { font-weight: 600; font-size: 15px; color: #E6F3FA; }
@media (max-width: 767px) {
	.cockpit .ck-main .queue-progress-container { min-width: 0; }
	.cockpit .ck-main .queue-item-start { display: none; }
}
.cockpit .ck-main .queue-cancel { color: #FF8A94; }

/* ---- Home ---- */
.cockpit .ck-main .planet-stat { color: #D3E1EC; }
.cockpit .ck-main .planet-stat-label { color: #9BB1C3; }
.cockpit .ck-main .mini-queue-item { background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF26; border-radius: 5px; color: #E6F3FA; }
.cockpit .ck-main .mini-build-progress { background: #6FE7FF1F; height: 14px; border-radius: 2px; }
.cockpit .ck-main .mini-build-progress-bar { background: #FFB04A !important; }
.cockpit .ck-main .fleet-queue-item { background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF2E; border-radius: 6px; color: #E6F3FA; }

/* ---- Flotte, Formulare, Tabellen ---- */
.cockpit .ck-main .card { background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF2E; border: 0; border-radius: 6px; }
.cockpit .ck-main .card-header { background: transparent; border-bottom: 1px solid #6FE7FF1F; color: #6FE7FF; font-weight: 600; }
.cockpit .ck-main .table > :not(caption) > * > * { border-bottom-color: #6FE7FF14; }
.cockpit .ck-main .table thead th { color: #7C95A9; font-weight: 500; font-size: 13px; }
.cockpit .ck-main .form-control, .cockpit .ck-main .form-select { border-radius: 4px; min-height: 36px; }
.cockpit .ck-main .form-control:focus, .cockpit .ck-main .form-select:focus { border-color: #6FE7FF; box-shadow: 0 0 0 2px #6FE7FF33; background: #02080F; color: #E6F3FA; }
.cockpit .ck-main .form-label, .cockpit .ck-main label { color: #B4C8D8; }
.cockpit .ck-main .coord-input { width: 80px; }

/* ---- Galaxie ---- */
.cockpit .ck-main .galaxy-container { background: #02080F; border-radius: 5px; box-shadow: inset 0 0 0 1px #6FE7FF2E; }
.cockpit .ck-main .legend { color: #B4C8D8; gap: 14px; }
.cockpit .ck-main .galaxy-info { color: #9BB1C3; }
.cockpit .ck-main .galaxy-cell-detail { background: #071322F2 !important; color: #E6F3FA; box-shadow: inset 0 0 0 1px #6FE7FF55; border-radius: 6px; }

/* ---- Nachrichten und Berichte ---- */
.cockpit .ck-main .message-text, .cockpit .ck-main .combat-summary { color: #D3E1EC; line-height: 1.55; }
.cockpit .ck-main .message-detail-header { background: #6FE7FF0A; border: 0 !important; box-shadow: inset 0 0 0 1px #6FE7FF2E; border-radius: 6px; padding: 10px 14px !important; }
.cockpit .ck-main .combat-round { background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF26; border-radius: 5px; padding: 8px 12px; margin-bottom: 6px; }

/* ---- Handy ---- */
@media (max-width: 767px) {
	.cockpit .ck-main .buildings-container .buildings .row { grid-template-columns: minmax(0, 1fr); }
	.cockpit .ck-main .building-content { flex-direction: row !important; }
	.cockpit .ck-main .building-content-image { flex: 0 0 38%; width: auto !important; margin: 0 !important; }
	.cockpit .ck-main .building-button .btn { min-height: 44px; }
	.cockpit .ck-main .table { font-size: 13.5px; }
}

/* Oberer Leerraum: die klassischen Seiten haben Abstaende fuer ihre (im Cockpit ausgeblendete) Titelzeile */
.cockpit .ck-main #content .container-fluid.mt-3,
.cockpit .ck-main #content .container-fluid > .row > [class*="col-"] > section > .container-fluid.mt-3 { margin-top: 0 !important; }
.cockpit .ck-main #content .col-12.mt-3 { margin-top: 0 !important; }

/* ---- Phase 4: uebrige Seiten ---- */
.cockpit .ck-main code { color: #6FE7FF; background: transparent; }
.cockpit .ck-main .btn-info, .cockpit .ck-main .btn-outline-primary, .cockpit .ck-main .btn-outline-success { color: #E6F3FA; background: #6FE7FF26; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-main .btn-outline-danger { color: #FFC4C9; background: #FF5D6C1A; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-main .btn-sm { min-height: 30px; }
.cockpit .ck-main .nav-tabs, .cockpit .ck-main .nav-pills { border: 0; gap: 6px; }
.cockpit .ck-main .nav-tabs .nav-link, .cockpit .ck-main .nav-pills .nav-link { border: 0; border-radius: 4px; color: #C4D6E4; background: #6FE7FF10; }
.cockpit .ck-main .nav-tabs .nav-link.active, .cockpit .ck-main .nav-pills .nav-link.active { color: #06121C; background: #6FE7FF; }
/* Bootstrap-Hilfsklasse .bg-transparent (!important) ueberschreibt sonst den Hintergrund; die Rangliste-Tabs tragen sie */
.cockpit .ck-main .nav-tabs .nav-link.bg-transparent { background: #6FE7FF10 !important; }
.cockpit .ck-main .nav-tabs .nav-link.bg-transparent.active { background: #6FE7FF !important; }
.cockpit .ck-main .accordion-item { background: #6FE7FF0A; border: 0; box-shadow: inset 0 0 0 1px #6FE7FF26; border-radius: 6px; margin-bottom: 6px; overflow: hidden; color: #E6F3FA; }
.cockpit .ck-main .accordion-button { background: transparent; color: #E6F3FA; box-shadow: none; }
.cockpit .ck-main .accordion-button:not(.collapsed) { background: #6FE7FF14; color: #fff; }
.cockpit .ck-main .accordion-button::after { filter: invert(1) brightness(1.4); }
.cockpit .ck-main .list-group-item { background: #6FE7FF0A; color: #E6F3FA; border-color: #6FE7FF22; }
.cockpit .ck-main .badge.bg-primary, .cockpit .ck-main .badge.bg-info { background: #6FE7FF !important; color: #06121C; }
.cockpit .ck-main hr { border-color: #6FE7FF33; opacity: 1; }
.cockpit .ck-main .progress { background: #6FE7FF1F; border-radius: 0; }
.cockpit .ck-main .progress-bar { background: #FFB04A; color: #1B1204; }
.cockpit .ck-main .input-group-text { background: #6FE7FF14; border-color: #2A4A5C; color: #C4D6E4; }
.cockpit .ck-main .page-link { background: #6FE7FF10; border-color: #6FE7FF26; color: #C4D6E4; }
.cockpit .ck-main .page-item.active .page-link { background: #6FE7FF; color: #06121C; border-color: #6FE7FF; }
.cockpit .ck-main textarea.form-control { min-height: 96px; }
.cockpit .ck-main .dropdown-menu { background: #071322; border-color: #6FE7FF40; }
.cockpit .ck-main .dropdown-item { color: #E6F3FA; }
.cockpit .ck-main .dropdown-item:hover { background: #6FE7FF1F; }
/* Lange Tabellen und Berichte auf schmalen Bildschirmen: horizontal wischen statt abschneiden */
.cockpit .ck-main .table-responsive, .cockpit .ck-main .message-text { max-width: 100%; overflow-x: auto; }
.cockpit .ck-main img { max-width: 100%; height: auto; }
.cockpit .ck-main pre { color: #D3E1EC; background: #02080F; padding: 10px; border-radius: 4px; overflow-x: auto; }

/* ---- Flotte auf dem Handy: Tabelle schlanker, damit Eingabe und Knoepfe sichtbar bleiben ---- */
@media (max-width: 767px) {
	.cockpit .ck-main table:has(.fleet-send-input) :is(th, td):nth-child(2) { display: none; }
	.cockpit .ck-main table:has(.fleet-send-input) :is(th, td) { padding: 6px 4px; font-size: 13.5px; }
	.cockpit .ck-main .fleet-send-input { width: 64px !important; min-height: 40px; }
	.cockpit .ck-main table:has(.fleet-send-input) .btn { min-height: 40px; min-width: 40px; padding: 0 8px; }
	.cockpit .ck-main table:has(.fleet-send-input) td:last-child > div { flex-wrap: nowrap; }
}

/* ---- Reiter (Gebaeudeliste) ---- */
.cockpit .ck-main .ck-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.cockpit .ck-main .ck-tabbar button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; cursor: pointer; font-weight: 600; font-size: 15px; color: #C4D6E4; background: #6FE7FF10; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.cockpit .ck-main .ck-tabbar button:hover { background: #6FE7FF22; color: #fff; }
.cockpit .ck-main .ck-tabbar button.on { color: #06121C; background: #6FE7FF; }
.cockpit .ck-main .ck-tabbar button .n { min-width: 20px; padding: 0 6px; font-size: 12px; line-height: 18px; text-align: center; border-radius: 9px; background: #02080F55; color: inherit; }
.cockpit .ck-main .ck-tabbar button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cockpit .ck-main .buildings .row [hidden] { display: none !important; }
@media (max-width: 767px) {
	.cockpit .ck-main .ck-tabbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.cockpit .ck-main .ck-tabbar button { flex: 0 0 auto; min-height: 44px; }
}

/* ---- Forschung als Liste (cockpit/science/index.html.twig) ---- */
.cockpit .ck-main .ck-rows-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin: 0 0 10px; }
.cockpit .ck-main .ck-rows-head .ck-tabbar { margin: 0; }
.cockpit .ck-main .ck-avail { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; font-size: 14px; color: #9BB1C3; font-variant-numeric: tabular-nums; }
.cockpit .ck-main .ck-avail b { font-weight: 600; }
.cockpit .ck-main .ck-rows { display: flex; flex-direction: column; gap: 6px; }
.cockpit .ck-main .ck-rr { display: grid; grid-template-columns: 76px minmax(0, 1fr) minmax(260px, 380px) 190px; gap: 14px; align-items: center; min-height: 52px; padding: 5px 12px 5px 6px; background: #6FE7FF0A; box-shadow: inset 0 0 0 1px #6FE7FF26; border-radius: 6px; }
.cockpit .ck-main .ck-rr.is-active { background: #C58BFF14; box-shadow: inset 0 0 0 1px #C58BFF88; }
.cockpit .ck-main .ck-rr[hidden] { display: none; }
.cockpit .ck-main .ck-th { position: relative; width: 70px; height: 42px; border-radius: 4px; overflow: hidden; box-shadow: 0 0 0 1px #6FE7FF33; }
.cockpit .ck-main .ck-th img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; }
.cockpit .ck-main .ck-th::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000000A0, transparent 70%); }
.cockpit .ck-main .ck-th b { position: absolute; left: 5px; bottom: 2px; z-index: 2; font-weight: 700; font-size: 20px; line-height: 1; color: #E6F3FA; text-shadow: 0 1px 5px #000; }
.cockpit .ck-main .ck-rr.is-active .ck-th b { color: #C58BFF; }
.cockpit .ck-main .ck-rr-name .nm { font-weight: 600; font-size: 16px; line-height: 1.15; color: #E6F3FA; }
.cockpit .ck-main .ck-rr-name .sub { white-space: nowrap; font-size: 12.5px; color: #9BB1C3; margin-top: 2px; }
.cockpit .ck-main .ck-rr-running { color: #C58BFF; font-weight: 600; }
.cockpit .ck-main .ck-cost { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; color: #C4D6E4; font-variant-numeric: tabular-nums; }
.cockpit .ck-main .ck-cost .no { color: #FF8A94; }
.cockpit .ck-main .ck-cost .cdot { display: inline-block; width: 7px; height: 7px; border-radius: 2px; margin-right: 5px; }
.cockpit .ck-main .ck-rr-action { margin: 0 !important; }
.cockpit .ck-main .ck-rr-action .btn { width: 100%; }
@media (max-width: 1279px) {
	.cockpit .ck-main .ck-rr { grid-template-columns: 76px minmax(0, 1fr) 190px; }
	.cockpit .ck-main .ck-rr .ck-cost, .cockpit .ck-main .ck-rr .ck-timebar { grid-column: 2 / 3; grid-row: 2; }
	.cockpit .ck-main .ck-rr .ck-rr-action { grid-column: 3; grid-row: 1 / 3; }
}
@media (max-width: 767px) {
	.cockpit .ck-main .ck-rr { grid-template-columns: 60px minmax(0, 1fr); gap: 8px 12px; padding: 8px; }
	.cockpit .ck-main .ck-th { width: 58px; }
	.cockpit .ck-main .ck-rr .ck-cost, .cockpit .ck-main .ck-rr .ck-timebar { grid-column: 1 / -1; grid-row: auto; }
	.cockpit .ck-main .ck-rr .ck-rr-action { grid-column: 1 / -1; grid-row: auto; }
	.cockpit .ck-main .ck-rr-action .btn { min-height: 44px; }
	.cockpit .ck-main .ck-avail { align-items: flex-start; }
}
.cockpit .ck-main .ck-tabs-slot { min-width: 0; max-width: 100%; }

/* ---- Kampfbericht im Entwurfs-Layout (public/js/cockpit-battle.js) ---- */
.cockpit .ck-main #combat-report.is-cockpit-battle { padding: 0; }
.cockpit .ck-battle { display: flex; flex-direction: column; gap: 12px; }
.cockpit .ck-battle-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; }
.cockpit .ck-battle-title { font-weight: 700; font-size: clamp(22px, 2.4vw, 30px); line-height: 1.1; }
.cockpit .ck-battle-title.is-win { color: #8FE3A5; }
.cockpit .ck-battle-title.is-loss { color: #FF8A94; }
.cockpit .ck-battle-title.is-draw { color: #FFB04A; }
.cockpit .ck-battle-head .sub { margin-top: 3px; font-size: 13.5px; color: #9BB1C3; }
.cockpit .ck-battle-revenge { display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; font-weight: 700; text-decoration: none; color: #1B1204 !important; background: #FFB04A; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-battle-revenge:hover { background: #FFC26E; }
.cockpit .ck-battle-sides { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cockpit .ck-battle-side { padding: 10px 14px; border-radius: 6px; background: #6FE7FF08; box-shadow: inset 0 0 0 1px #6FE7FF26; }
.cockpit .ck-battle-side.is-attacker { box-shadow: inset 0 0 0 1px #FF5D6C66; }
.cockpit .ck-battle-side.is-defender { box-shadow: inset 0 0 0 1px #6FE7FF66; }
.cockpit .ck-battle-side .sub { font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-battle-name { font-weight: 600; font-size: 18px; line-height: 1.25; color: #E6F3FA; }
.cockpit .ck-battle-where { font-weight: 400; font-size: 13.5px; color: #9BB1C3; }
.cockpit .ck-battle-cols { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.cockpit .ck-battle-rounds { padding: 4px 14px 8px; border-radius: 6px; background: #6FE7FF08; box-shadow: inset 0 0 0 1px #6FE7FF26; }
.cockpit .ck-battle-rhead { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; padding: 10px 0; border-bottom: 1px solid #6FE7FF1A; }
.cockpit .ck-battle-rhead b { color: #6FE7FF; font-size: 16px; }
.cockpit .ck-battle-rhead .sub { font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-round { padding: 10px 0; border-bottom: 1px solid #6FE7FF14; }
.cockpit .ck-round:last-child { border-bottom: 0; }
.cockpit .ck-round-title { font-weight: 600; font-size: 16px; margin-bottom: 6px; color: #E6F3FA; }
.cockpit .ck-bar-track { height: 8px; background: #6FE7FF1A; }
.cockpit .ck-bar-fill { display: block; height: 8px; }
.cockpit .ck-bar-fill.is-attacker { background: #FF5D6C; box-shadow: 0 0 8px #FF5D6C88; }
.cockpit .ck-bar-fill.is-defender { background: #6FE7FF; box-shadow: 0 0 8px #6FE7FF88; }
.cockpit .ck-bar-cap { display: flex; justify-content: space-between; margin: 2px 0 6px; font-size: 12.5px; color: #C4D6E4; }
.cockpit .ck-bar-cap .t { font-variant-numeric: tabular-nums; }
.cockpit .ck-round-sum { font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-battle-aside { display: flex; flex-direction: column; gap: 10px; }
.cockpit .ck-battle-box { padding: 10px 14px; border-radius: 6px; background: #6FE7FF08; box-shadow: inset 0 0 0 1px #6FE7FF26; }
.cockpit .ck-battle-box.is-loot { box-shadow: inset 0 0 0 1px #FF5D6C66; }
.cockpit .ck-battle-box-title { font-weight: 600; font-size: 15px; color: #6FE7FF; margin-bottom: 6px; }
.cockpit .ck-battle-box.is-loot .ck-battle-box-title { color: #FF8A94; }
.cockpit .ck-battle-boxes { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.cockpit .ck-battle-line { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; line-height: 1.55; font-variant-numeric: tabular-nums; }
.cockpit .ck-battle-line .k { color: #9BB1C3; }
.cockpit .ck-loss-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cockpit .ck-loss-col .sub { font-size: 12.5px; color: #9BB1C3; margin-bottom: 4px; }
.cockpit .ck-loss-row { display: flex; align-items: center; gap: 8px; min-height: 32px; border-bottom: 1px solid #6FE7FF14; font-size: 14px; }
.cockpit .ck-loss-row:last-child { border-bottom: 0; }
.cockpit .ck-loss-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit .ck-loss-n { font-variant-numeric: tabular-nums; }
.cockpit .ck-loss-thumb { width: 36px; height: 24px; object-fit: cover; border-radius: 3px; box-shadow: 0 0 0 1px #6FE7FF33; flex: none; }
.cockpit .ck-loss-thumb.is-empty { background: #0A1624; }
.cockpit .ck-loss-none { font-size: 13.5px; color: #7C95A9; }
@media (max-width: 1023px) {
	.cockpit .ck-battle-cols { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.cockpit .ck-battle-sides { grid-template-columns: minmax(0, 1fr); }
	.cockpit .ck-loss-cols { grid-template-columns: minmax(0, 1fr); }
	.cockpit .ck-battle-revenge { width: 100%; justify-content: center; }
}

/* ---- Galaxiekarte im Entwurfs-Layout (public/js/cockpit-galaxy.js) ---- */
.cockpit .ck-main .ck-gm { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.cockpit .ck-gm-map { min-width: 0; }
.cockpit .ck-gm-canvaswrap { position: relative; width: 100%; aspect-ratio: 1 / 1; background: #00000050; border-radius: 8px; box-shadow: inset 0 0 0 1px #6FE7FF33; }
.cockpit .ck-gm-canvas { display: block; width: 100%; height: 100%; border-radius: 8px; cursor: crosshair; touch-action: manipulation; }
.cockpit .ck-gm-canvas:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.cockpit .ck-gm-zoom { position: absolute; right: 8px; top: 8px; display: flex; flex-direction: column; gap: 6px; }
.cockpit .ck-gm-zoom button { width: 40px; height: 40px; border: 0; border-radius: 5px; cursor: pointer; font-size: 22px; line-height: 1; color: #E6F3FA; background: #071322EB; box-shadow: inset 0 0 0 1px #6FE7FF55; }
.cockpit .ck-gm-zoom button:hover { background: #0E2238; }
.cockpit .ck-gm-hover { position: absolute; z-index: 2; padding: 2px 8px; font-size: 12.5px; white-space: nowrap; pointer-events: none; color: #E6F3FA; background: #071322F2; box-shadow: inset 0 0 0 1px #6FE7FF55; border-radius: 4px; }
.cockpit .ck-gm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 13px; color: #C4D6E4; }
.cockpit .ck-gm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.cockpit .ck-gm-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 2px; }
.cockpit .ck-gm-goto { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin-top: 12px; }
.cockpit .ck-gm-goto label { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-gm-goto input { width: 88px; height: 40px; padding: 0 10px; color: #E6F3FA; background: #02080F; border: 1px solid #2A4A5C; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cockpit .ck-gm-goto button { min-height: 40px; padding: 0 18px; border: 0; cursor: pointer; font-weight: 600; color: #E6F3FA; background: #6FE7FF26; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
.cockpit .ck-gm-side { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.cockpit .ck-gm-sidehead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 16px; }
.cockpit .ck-gm-switch { display: flex; flex-direction: column; gap: 3px; flex: 1 1 200px; min-width: 0; }
.cockpit .ck-gm-switch .sub { font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-select { height: 36px; padding: 0 10px; color: #E6F3FA; background: #02080F; border: 1px solid #2A4A5C; border-radius: 4px; max-width: 100%; }
.cockpit .ck-gm-system { text-align: right; }
.cockpit .ck-gm-system-title { font-weight: 600; font-size: 22px; color: #6FE7FF; }
.cockpit .ck-gm-system .sub { font-size: 13px; color: #9BB1C3; }
.cockpit .ck-gm-detail { container: gmdetail / inline-size; background: #6FE7FF08; box-shadow: inset 0 0 0 1px #6FE7FF26; border-radius: 6px; overflow: hidden; }
.cockpit .ck-gm-loading { padding: 18px; color: #9BB1C3; }
.cockpit .ck-pos { display: grid; grid-template-columns: 30px 46px minmax(0, 1.1fr) minmax(0, 1.3fr) 78px minmax(150px, 262px); gap: 10px; align-items: center; min-height: 30px; padding: 2px 10px; border-bottom: 1px solid #6FE7FF14; font-size: 14px; }
.cockpit .ck-pos:last-child { border-bottom: 0; }
.cockpit .ck-pos-head { min-height: 26px; color: #7C95A9; font-size: 12.5px; }
.cockpit .ck-pos.is-own { background: linear-gradient(90deg, #3BBA6A22, transparent); box-shadow: inset 3px 0 0 #3BBA6A; }
.cockpit .ck-pos.is-selected { background: linear-gradient(90deg, #FFB04A26, transparent); box-shadow: inset 3px 0 0 #FFB04A; }
.cockpit .ck-pos-num { font-weight: 600; color: #9BB1C3; font-variant-numeric: tabular-nums; }
.cockpit .ck-pos.is-selected .ck-pos-num { color: #FFB04A; }
.cockpit .ck-pos-thumb, .cockpit .ck-pos-empty { width: 40px; height: 21px; border-radius: 3px; object-fit: cover; display: block; box-shadow: 0 0 0 1px #6FE7FF33; }
.cockpit .ck-pos-empty { background: #0A1624; box-shadow: inset 0 0 0 1px #6FE7FF1A; }
.cockpit .ck-pos-free { color: #6F8499; }
.cockpit .ck-pos-name, .cockpit .ck-pos-player { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cockpit .ck-tag { margin-left: 6px; padding: 0 6px; font-size: 11.5px; line-height: 17px; border-radius: 3px; background: #6FE7FF18; color: #C4D6E4; }
.cockpit .ck-chip-d { display: inline-flex; align-items: center; padding: 0 8px; font-size: 12px; line-height: 17px; text-decoration: none; color: #6FE7FF; border: 1px solid #2A5B66; border-radius: 10px; }
.cockpit .ck-pos-acts { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.cockpit .ck-pos-acts input { width: 44px; height: 28px; padding: 0; text-align: center; color: #E6F3FA; background: #02080F; border: 1px solid #2A4A5C; border-radius: 3px; }
.cockpit .ck-act { display: inline-flex; align-items: center; justify-content: center; min-height: 28px; padding: 0 10px; border: 0; cursor: pointer; font-size: 13px; font-weight: 600; text-decoration: none; color: #E6F3FA !important; background: #6FE7FF1F; clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px); }
.cockpit .ck-act:hover { background: #6FE7FF38; }
.cockpit .ck-act.is-primary { background: #FFB04A; color: #1B1204 !important; }
.cockpit .ck-pos-note { font-size: 13px; color: #9BB1C3; }
@media (max-width: 1099px) {
	.cockpit .ck-main .ck-gm { grid-template-columns: minmax(0, 1fr); }
	.cockpit .ck-gm-canvaswrap { max-width: 560px; }
}
/* Schmale Detailspalte (neben der Karte) und Handy: Positionen als zweizeilige Karten statt Tabelle */
@container gmdetail (max-width: 640px) {
	.cockpit .ck-pos { grid-template-columns: 26px 40px minmax(0, 1fr) auto; grid-template-areas: "n t name debris" ". . player player" ". . acts acts"; row-gap: 4px; padding: 8px 10px; }
	.cockpit .ck-pos-head { display: none; }
	.cockpit .ck-pos > :nth-child(1) { grid-area: n; }
	.cockpit .ck-pos > :nth-child(2) { grid-area: t; }
	.cockpit .ck-pos > :nth-child(3) { grid-area: name; }
	.cockpit .ck-pos > :nth-child(4) { grid-area: player; }
	.cockpit .ck-pos > :nth-child(5) { grid-area: debris; }
	.cockpit .ck-pos > :nth-child(6) { grid-area: acts; justify-content: flex-start; }
	.cockpit .ck-pos-player:empty, .cockpit .ck-pos-acts:empty { display: none; }
}
@media (max-width: 767px) {
	.cockpit .ck-act { min-height: 40px; }
	.cockpit .ck-pos-acts input { height: 40px; width: 52px; }
	.cockpit .ck-gm-sidehead { align-items: stretch; }
	.cockpit .ck-gm-system { text-align: left; }
}

/* ---- Flotte im Entwurfs-Layout (cockpit/fleet/index.html.twig, public/js/cockpit-fleet.js) ---- */
.cockpit .ck-fl-revenge { margin: 0 0 12px; padding: 8px 12px; font-size: 13.5px; color: #FFC4C9; background: #FF5D6C12; box-shadow: inset 0 0 0 1px #FF5D6C66; border-radius: 6px; }
.cockpit .ck-fl-revenge b { color: #FF8A94; margin-right: 6px; }
.cockpit .ck-fl { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 340px); gap: 14px; align-items: start; }
.cockpit .ck-fl-steps, .cockpit .ck-fl-bar { display: none; }
.cockpit .ck-fl-ships { min-width: 0; border-radius: 6px; background: #6FE7FF08; box-shadow: inset 0 0 0 1px #6FE7FF26; overflow: hidden; }
.cockpit .ck-fr { display: grid; grid-template-columns: 44px minmax(0, 1fr) 54px 150px; gap: 8px; align-items: center; min-height: 46px; padding: 3px 12px; border-bottom: 1px solid #6FE7FF14; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.cockpit .ck-fr:last-child { border-bottom: 0; }
.cockpit .ck-fr-head { min-height: 32px; font-size: 12.5px; color: #7C95A9; }
.cockpit .ck-fr-headcell { display: inline-flex; align-items: center; gap: 8px; }
.cockpit .ck-fr.is-sending { background: #FFB04A12; box-shadow: inset 3px 0 0 #FFB04A; }
.cockpit .ck-fr.ship-row-disabled { opacity: .45; }
.cockpit .ck-fr-thumb { width: 44px; height: 30px; object-fit: cover; border-radius: 4px; box-shadow: 0 0 0 1px #6FE7FF40; }
.cockpit .ck-fr-name { min-width: 0; display: flex; flex-direction: column; }
.cockpit .ck-fr-name .nm { font-weight: 600; color: #E6F3FA; }
.cockpit .ck-fr-name .sub { font-size: 12px; color: #9BB1C3; }
.cockpit .ck-fr-input { display: flex; align-items: center; gap: 6px; }
.cockpit .ck-fr-input input, .cockpit .ck-fl input[type=number], .cockpit .ck-fl .ck-select { box-sizing: border-box; height: 36px; padding: 0 8px; color: #E6F3FA; background: #02080F; border: 1px solid #2A4A5C; border-radius: 4px; font-variant-numeric: tabular-nums; }
.cockpit .ck-fr-input { gap: 4px; }
.cockpit .ck-fr-input input { width: 62px; min-width: 0; }
.cockpit .ck-fl input[type=number]:focus, .cockpit .ck-fl .ck-select:focus { outline: 2px solid #6FE7FF; outline-offset: 1px; }
.cockpit .ck-ib { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 34px; padding: 0; border: 0; border-radius: 4px; cursor: pointer; font-size: 16px; color: #C4D6E4; background: #6FE7FF1A; }
.cockpit .ck-ib:hover { background: #6FE7FF38; color: #fff; }
.cockpit .ck-ib:disabled { opacity: .4; cursor: not-allowed; }
.cockpit .ck-fr-none { padding: 16px; color: #9BB1C3; }
.cockpit .ck-fl-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cockpit .ck-fl-side .ck-card { padding: 12px 14px; }
.cockpit .ck-fl .ck-lab { display: flex; flex-direction: column; gap: 3px; margin: 0 0 8px; font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-fl .ck-select { width: 100%; margin-bottom: 8px; }
.cockpit .ck-coords, .cockpit .ck-res3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cockpit .ck-fl .ck-coords input, .cockpit .ck-fl .ck-res3 input { width: 100%; }
.cockpit .ck-fl .sub { font-size: 12.5px; color: #9BB1C3; }
.cockpit .ck-sub-block { margin-top: 8px; }
.cockpit .ck-note { margin: 0 0 6px; font-size: 13px; color: #9FEFFF; }
.cockpit .ck-err { margin: 6px 0 0; font-size: 13px; color: #FF8A94; }
.cockpit .ck-err.is-warn { color: #FFC87A; }
.cockpit .ck-range { width: 100%; accent-color: #FFB04A; margin: 4px 0 6px; }
.cockpit .ck-calc { display: grid; grid-template-columns: max-content 1fr; gap: 4px 14px; font-size: 14px; }
.cockpit .ck-calc > span { color: #9BB1C3; }
.cockpit .ck-calc > b { font-variant-numeric: tabular-nums; text-align: right; }
.cockpit .ck-btn-start { width: 100%; margin-top: 12px; min-height: 46px; border: 0; cursor: pointer; font-weight: 700; font-size: 16px; color: #1B1204; background: #FFB04A; clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px); }
.cockpit .ck-btn-start:hover { background: #FFC26E; }
.cockpit .ck-btn-start:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 1100px) {
	.cockpit .ck-fl { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767px) {
	.cockpit .ck-fl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-bottom: 10px; }
	.cockpit .ck-fl-steps button { min-height: 44px; border: 0; border-radius: 4px; cursor: pointer; font-weight: 600; font-size: 14px; color: #C4D6E4; background: #6FE7FF12; }
	.cockpit .ck-fl-steps button.on { color: #06121C; background: #6FE7FF; }
	.cockpit .ck-fl[data-step="1"] [data-step-panel]:not([data-step-panel="1"]),
	.cockpit .ck-fl[data-step="2"] [data-step-panel]:not([data-step-panel="2"]),
	.cockpit .ck-fl[data-step="3"] [data-step-panel]:not([data-step-panel="3"]) { display: none; }
	.cockpit .ck-fl[data-step="1"] .ck-fl-side, .cockpit .ck-fl[data-step="1"] .ck-fl-bar ~ * { display: none; }
	.cockpit .ck-fr { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "t n a" "t i i"; row-gap: 4px; padding: 8px 10px; }
	.cockpit .ck-fr-head { display: none; }
	.cockpit .ck-fr > :nth-child(1) { grid-area: t; }
	.cockpit .ck-fr > :nth-child(2) { grid-area: n; }
	.cockpit .ck-fr > :nth-child(3) { grid-area: a; font-weight: 600; }
	.cockpit .ck-fr > :nth-child(4) { grid-area: i; }
	.cockpit .ck-fr-input input { flex: 1; width: auto; min-width: 0; height: 44px; }
	.cockpit .ck-ib { width: 44px; height: 44px; }
	.cockpit .ck-fl-bar { display: flex; position: sticky; bottom: -12px; z-index: 3; align-items: center; gap: 10px; margin: 10px -12px -12px; padding: 8px 12px 10px; background: #050E19; box-shadow: 0 -1px 0 #6FE7FF40; }
	.cockpit .ck-fl-sum { flex: 1; display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; }
	.cockpit .ck-btn-next { min-height: 44px; padding: 0 18px; border: 0; cursor: pointer; font-weight: 700; color: #1B1204; background: #FFB04A; clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px); }
	.cockpit .ck-fl[data-step="3"] .ck-fl-bar .ck-btn-next { background: #6FE7FF26; color: #E6F3FA; }
}

.cockpit .ck-main .ck-cost .ck-miss { flex-basis: 100%; white-space: nowrap; font-size: 12.5px; color: #FF8A94; }
.cockpit .ck-main .ck-timebar { min-width: 0; font-variant-numeric: tabular-nums; }
.cockpit .ck-main .ck-timebar-meta { display: flex; flex-wrap: nowrap; gap: 4px 10px; align-items: baseline; margin-bottom: 5px; font-size: 12px; color: #9BB1C3; white-space: nowrap; overflow: hidden; }
.cockpit .ck-main .ck-timebar-row { display: flex; align-items: center; gap: 10px; }
.cockpit .ck-main .ck-timebar-row .ck-timebar-track { flex: 1; }
.cockpit .ck-main .ck-timebar-left { color: #C58BFF; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.cockpit .ck-main .ck-timebar-track { height: 6px; background: #C58BFF26; border-radius: 3px; overflow: hidden; }
.cockpit .ck-main .ck-timebar-track i { display: block; height: 100%; width: 0; background: #C58BFF; box-shadow: 0 0 8px #C58BFF99; transition: width .9s linear; }
@media (max-width: 767px) { .cockpit .ck-main .ck-timebar-meta { flex-wrap: wrap; white-space: normal; } .cockpit .ck-main .ck-cost .ck-miss { white-space: normal; } }
.cockpit .ck-main .ck-timebar-cancel { margin: 0; }
.cockpit .ck-main .ck-timebar-cancel .ck-ib { width: 28px; height: 28px; font-size: 13px; color: #FF8A94; background: #FF5D6C1A; }
.cockpit .ck-act.is-icon { width: 36px; min-width: 36px; padding: 0; }

/* ---- Startseite fuer Gaeste ---- */
.cockpit .ck-home { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; max-width: 1100px; margin: 0 auto; }
.cockpit .ck-home h1 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 44px); font-weight: 700; }
.cockpit .ck-home h2 { margin: 0 0 12px; font-size: 20px; }
.cockpit .ck-home .lead { font-size: 18px; color: #E6F3FA; }
.cockpit .ck-home .story { color: #A9BECF; line-height: 1.55; }
.cockpit .ck-home-features { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.cockpit .ck-home-features li { padding: 12px 14px; background: #02080F99; border-radius: 6px; box-shadow: inset 0 0 0 1px #6FE7FF33; }
.cockpit .ck-home-features strong { display: block; color: #6FE7FF; margin-bottom: 2px; }
.cockpit .ck-home-features span { color: #B4C8D8; font-size: 14px; }
.cockpit .ck-home-login { padding: 18px; background: #040D18E6; border-radius: 6px; box-shadow: inset 0 0 0 1px #6FE7FF55; }
.cockpit .ck-home-login label { display: block; margin: 10px 0 4px; font-size: 13px; color: #9BB1C3; }
.cockpit .ck-home-login .btn { margin-top: 16px; }
.cockpit .ck-home-register { margin-top: 18px; padding-top: 14px; border-top: 1px solid #6FE7FF26; font-size: 14px; color: #A9BECF; }
.cockpit .ck-home-register .btn { margin-top: 4px; }
@media (max-width: 900px) { .cockpit .ck-home { grid-template-columns: minmax(0, 1fr); } .cockpit .ck-home-login { order: -1; } .cockpit .ck-home-features { grid-template-columns: minmax(0, 1fr); } }
