/* GREY OCEAN — BOOT EMBEDDED ARCHITECTURE V2
   Hauptglas ausschließlich .boatOverlayInner.
   Innen: Fenster 2 -> Bereiche I–VI -> Fenster 3 links + Fenster 4 rechts. */
.boatEmbedded{position:absolute;inset:0;overflow:auto;padding:18px 20px 20px;box-sizing:border-box;background:transparent!important;color:rgba(255,255,255,.88);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif}
.boatEmbedded .boatWrap{display:flex;flex-direction:column;gap:14px;min-height:100%}
.boatEmbedded .boatTopbar{min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:0 110px}
.boatEmbedded .boatTitle{text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:clamp(24px,2vw,34px);line-height:1;font-weight:700;color:rgba(255,255,255,.92)}
.boatEmbedded .boatDesignation{text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:clamp(42px,3.2vw,58px);line-height:.95;font-weight:700;color:rgba(255,255,255,.95)}

/* FENSTER 2 */
.boatEmbedded .boatWindow2{min-height:260px;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:12px;overflow:hidden;background:rgba(0,0,0,.16);box-sizing:border-box}
.boatEmbedded .boatWindow2Body{min-height:234px;background:transparent}

/* BEREICHE */
.boatEmbedded .boatSectionList{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.boatEmbedded .secBtn{position:relative;min-height:112px;padding:14px 16px 14px 78px;text-align:left;border-width:1px;border-style:solid;border-radius:11px;box-shadow:none;color:inherit;cursor:pointer}
.boatEmbedded .secBtn::before{position:absolute;left:18px;top:50%;transform:translateY(-50%);width:42px;height:42px;display:flex;align-items:center;justify-content:center;border:1px solid currentColor;border-radius:50%;font-family:Georgia,"Times New Roman",serif;font-size:20px;font-weight:700}
.boatEmbedded .sectionStructure::before{content:"I"}.boatEmbedded .sectionEngine::before{content:"II"}.boatEmbedded .sectionElectrical::before{content:"III"}.boatEmbedded .sectionTower::before{content:"IV"}.boatEmbedded .sectionTorpedo::before{content:"V"}.boatEmbedded .sectionSupplies::before{content:"VI"}
.boatEmbedded .secLabel{margin-bottom:6px;font-size:17px;line-height:1.2;font-weight:650;color:rgba(255,255,255,.92)}.boatEmbedded .secMeta{font-size:13px;line-height:1.42;color:rgba(255,255,255,.68)}.boatEmbedded .secBtn.active{border-color:rgba(255,255,255,.34)!important}
.boatEmbedded .sectionStructure{border-color:rgba(63,156,154,.78);background:linear-gradient(180deg,rgba(21,94,96,.50),rgba(8,43,45,.34))}.boatEmbedded .sectionStructure::before{color:rgba(79,194,192,.96)}
.boatEmbedded .sectionEngine{border-color:rgba(117,122,126,.62);background:linear-gradient(180deg,rgba(50,52,54,.50),rgba(24,25,26,.42))}.boatEmbedded .sectionEngine::before{color:rgba(150,154,158,.86)}
.boatEmbedded .sectionElectrical{border-color:rgba(194,165,67,.76);background:linear-gradient(180deg,rgba(113,94,31,.50),rgba(57,49,24,.36))}.boatEmbedded .sectionElectrical::before{color:rgba(222,193,82,.94)}
.boatEmbedded .sectionTower{border-color:rgba(72,124,166,.76);background:linear-gradient(180deg,rgba(38,78,112,.52),rgba(21,43,62,.36))}.boatEmbedded .sectionTower::before{color:rgba(102,164,211,.95)}
.boatEmbedded .sectionTorpedo{border-color:rgba(154,67,63,.76);background:linear-gradient(180deg,rgba(103,43,40,.52),rgba(52,27,26,.38))}.boatEmbedded .sectionTorpedo::before{color:rgba(202,88,80,.95)}
.boatEmbedded .sectionSupplies{border-color:rgba(126,88,154,.74);background:linear-gradient(180deg,rgba(78,49,101,.52),rgba(42,29,54,.38))}.boatEmbedded .sectionSupplies::before{color:rgba(166,116,199,.94)}

/* FENSTER 3 + 4 */
.boatEmbedded .boatLowerGrid{display:grid;grid-template-columns:minmax(310px,.78fr) minmax(0,1.72fr);gap:14px;align-items:stretch}
.boatEmbedded .boatWindow3,.boatEmbedded .boatWindow4{border:1px solid rgba(255,255,255,.18);border-radius:12px;background:rgba(0,0,0,.16);box-sizing:border-box;overflow:hidden}
.boatEmbedded .boatWindow3{padding:18px 20px 20px}
.boatEmbedded .boatPaneTitle,.boatEmbedded .boatRevisionTitle{font-family:Georgia,"Times New Roman",serif;font-size:18px;line-height:1.15;font-weight:700;color:rgba(255,255,255,.91)}
.boatEmbedded .boatRule{height:1px;margin:13px 20px 12px;background:rgba(255,255,255,.11)}
.boatEmbedded .boatInfoLabel{margin-bottom:5px;font-size:11px;line-height:1;text-transform:uppercase;letter-spacing:.04em;color:rgba(211,174,93,.88)}
.boatEmbedded .boatInfoValue{font-size:13px;line-height:1.42;color:rgba(255,255,255,.68)}
.boatEmbedded .boatRevisionBlock{padding-top:2px}.boatEmbedded .boatRevisionLabel{margin-top:10px;font-size:12px;color:rgba(255,255,255,.70)}.boatEmbedded .boatRevisionTimer{font-family:Georgia,"Times New Roman",serif;margin-top:12px;font-size:38px;line-height:1;font-weight:800;letter-spacing:.03em;color:rgba(255,255,255,.92)}.boatEmbedded .boatRevisionHint{margin-top:6px;font-size:11px;color:rgba(255,255,255,.48)}

.boatEmbedded .boatWindow4{min-height:360px;display:flex;flex-direction:column;padding:18px 20px 20px}
.boatEmbedded .boatWindow4Content{flex:1 1 auto;min-height:130px}.boatEmbedded .boatPaneText{font-size:13px;line-height:1.52;color:rgba(255,255,255,.72);white-space:pre-line}
.boatEmbedded .boatWindow4Action{display:flex;justify-content:center;padding:18px 0 12px}
.boatEmbedded .boatBtn{appearance:none;cursor:pointer;border:1px solid rgba(255,255,255,.14);border-radius:11px;color:rgba(255,255,255,.86)}
.boatEmbedded .boatBtnReady{width:min(620px,92%);min-height:54px;padding:0 24px;font-size:17px;font-weight:700;background:rgba(255,255,255,.06)}
.boatEmbedded .boatBtnReady:not(:disabled){color:#1f1910;border-color:rgba(60,61,65,.34);background:linear-gradient(180deg,rgba(180,150,70,.98),rgba(140,110,40,.96) 38%,rgba(124,96,34,.98));box-shadow:inset 0 1px 0 rgba(213,194,143,.28),inset 0 -2px 4px rgba(0,0,0,.42),0 2px 8px rgba(0,0,0,.34)}.boatEmbedded .boatBtn:disabled{opacity:.55;cursor:default}
.boatEmbedded .boatWindow4Li{margin-top:auto}.boatEmbedded .boatLiLabel{margin-bottom:7px;text-align:center;font-family:Georgia,"Times New Roman",serif;font-size:14px;font-weight:700;color:rgba(211,174,93,.88)}.boatEmbedded .boatLiReport{width:min(900px,92%);margin:0 auto;text-align:center;font-size:13px;line-height:1.5;color:rgba(255,255,255,.68)}

.boatEmbedded{scrollbar-width:thin;scrollbar-color:rgba(174,174,170,.58) transparent}.boatEmbedded::-webkit-scrollbar{width:12px;background:transparent}.boatEmbedded::-webkit-scrollbar-track,.boatEmbedded::-webkit-scrollbar-track-piece,.boatEmbedded::-webkit-scrollbar-corner{background:transparent}.boatEmbedded::-webkit-scrollbar-thumb{background:rgba(174,174,170,.56);border:3px solid transparent;background-clip:padding-box;border-radius:999px}
@media(max-width:1100px){.boatEmbedded .boatSectionList{grid-template-columns:repeat(2,minmax(0,1fr))}.boatEmbedded .boatLowerGrid{grid-template-columns:1fr}}
@media(max-width:720px){.boatEmbedded{padding:12px}.boatEmbedded .boatTopbar{padding:0 20px}.boatEmbedded .boatSectionList{grid-template-columns:1fr}.boatEmbedded .boatBtnReady{width:100%}}


/* ==========================================================
   GREY OCEAN — FENSTER 3 / INSTANDSETZUNG V2
   Instandsetzung innerhalb von Fenster 3 vollständig zentriert.
========================================================== */
.boatEmbedded .boatRevisionBlock{
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  padding-top:4px;
}

.boatEmbedded .boatRevisionTitle,
.boatEmbedded .boatRevisionLabel,
.boatEmbedded .boatRevisionHint{
  width:100%;
  text-align:center;
}

.boatEmbedded .boatRevisionTimer{
  width:100%;
  margin-left:auto;
  margin-right:auto;
  text-align:center;
  font-variant-numeric:tabular-nums;
}


/* ==========================================================
   GREY OCEAN — BOOT FENSTER 3 IN FENSTER 4 V1
   Crew-Referenz:
   - Fenster 4 ist die eine große äußere Glasfläche
   - Fenster 3 liegt darin links als eingelassenes Innenfenster
   - rechte Fläche von Fenster 4 bleibt rahmenlos/materiallos
========================================================== */

/* Alte Zwei-Fenster-Nebene vollständig neutralisieren */
.boatEmbedded .boatLowerGrid{
  display:block !important;
}

/* FENSTER 4 = äußerer großer Bereich */
.boatEmbedded .boatWindow4{
  min-height:420px !important;
  padding:12px !important;
  border:1px solid rgba(255,255,255,.18) !important;
  border-radius:12px !important;
  background:rgba(0,0,0,.16) !important;
  overflow:hidden !important;
  box-sizing:border-box !important;
}

/* Innenaufteilung analog Crew: links Innenfenster, rechts ruhige Fläche */
.boatEmbedded .boatWindow4Layout{
  display:grid !important;
  grid-template-columns:minmax(320px,34%) minmax(0,1fr) !important;
  gap:14px !important;
  min-height:396px !important;
  height:100% !important;
}

/* FENSTER 3 = eingelassenes Innenfenster */
.boatEmbedded .boatWindow3{
  min-width:0 !important;
  min-height:100% !important;
  padding:18px 20px 20px !important;

  border:1px solid rgba(255,255,255,.16) !important;
  border-radius:11px !important;
  background:rgba(0,0,0,.08) !important;
  box-sizing:border-box !important;
  overflow:hidden !important;
}

/* rechte Fläche ist KEIN weiteres Fenster */
.boatEmbedded .boatWindow4Stage{
  position:relative !important;
  min-width:0 !important;
  min-height:100% !important;

  display:flex !important;
  flex-direction:column !important;

  padding:6px 8px 8px !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
  box-shadow:none !important;
}

.boatEmbedded .boatWindow4Content{
  flex:1 1 auto !important;
  min-height:150px !important;
  padding:0 !important;
  background:transparent !important;
}

.boatEmbedded .boatWindow4Action{
  display:flex !important;
  justify-content:center !important;
  align-items:center !important;
  padding:18px 0 14px !important;
  border:0 !important;
  background:transparent !important;
}

.boatEmbedded .boatWindow4Li{
  margin-top:auto !important;
  padding:0 0 4px !important;
  background:transparent !important;
}

/* Crew-artig: Linien bleiben eingerückt und nicht von Kante zu Kante */
.boatEmbedded .boatWindow4Stage .boatRule{
  margin-left:20px !important;
  margin-right:20px !important;
}

/* Instandsetzung bleibt zentriert in Fenster 3 */
.boatEmbedded .boatWindow3 .boatRevisionBlock{
  width:100% !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  text-align:center !important;
}

.boatEmbedded .boatWindow3 .boatRevisionTimer{
  font-family:Georgia,"Times New Roman",serif !important;
  font-weight:800 !important;
  text-align:center !important;
}

/* Responsive */
@media(max-width:1000px){
  .boatEmbedded .boatWindow4Layout{
    grid-template-columns:minmax(290px,40%) minmax(0,1fr) !important;
  }
}

@media(max-width:820px){
  .boatEmbedded .boatWindow4Layout{
    grid-template-columns:1fr !important;
  }

  .boatEmbedded .boatWindow3{
    min-height:auto !important;
  }

  .boatEmbedded .boatWindow4Stage{
    min-height:280px !important;
    padding-top:14px !important;
  }
}

/* GREY OCEAN — BEREICHE I–VI / VERSCHLEISSANZEIGE V1 */
.boatEmbedded .secWear{
  margin-top:4px;
  font-size:12px;
  line-height:1.35;
  font-weight:600;
  color:rgba(255,255,255,.78);
  font-variant-numeric:tabular-nums;
}

/* GREY OCEAN — BEREICHE I–VI / NEUTRAL TECHNICAL PALETTE V1 */
.boatEmbedded .secBtn,
.boatEmbedded .sectionStructure,.boatEmbedded .sectionEngine,.boatEmbedded .sectionElectrical,
.boatEmbedded .sectionTower,.boatEmbedded .sectionTorpedo,.boatEmbedded .sectionSupplies{
  border-color:rgba(145,150,154,.68)!important;
  background:linear-gradient(180deg,rgba(64,67,70,.58),rgba(31,33,35,.48))!important;
  color:rgba(174,178,181,.92)!important;
  transition:background .16s ease,border-color .16s ease,box-shadow .16s ease,filter .16s ease!important;
}
.boatEmbedded .sectionStructure::before,.boatEmbedded .sectionEngine::before,
.boatEmbedded .sectionElectrical::before,.boatEmbedded .sectionTower::before,
.boatEmbedded .sectionTorpedo::before,.boatEmbedded .sectionSupplies::before{
  color:rgba(178,182,185,.92)!important;
}
.boatEmbedded .secBtn:hover{
  border-color:rgba(225,228,230,.88)!important;
  background:linear-gradient(180deg,rgba(100,104,108,.74),rgba(50,53,56,.62))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 0 0 1px rgba(255,255,255,.07),0 5px 14px rgba(0,0,0,.24)!important;
  filter:brightness(1.10)!important;
}
.boatEmbedded .secBtn:hover::before{color:rgba(238,240,241,.98)!important;border-color:rgba(238,240,241,.88)!important}
.boatEmbedded .secBtn.active{
  border-color:rgba(235,237,238,.96)!important;
  background:linear-gradient(180deg,rgba(82,86,89,.78),rgba(40,43,45,.68))!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.10),inset 0 0 18px rgba(255,255,255,.025),0 0 0 1px rgba(255,255,255,.10)!important;
  filter:none!important;
}
.boatEmbedded .secBtn.active::before{color:rgba(248,248,246,.98)!important;border-color:rgba(248,248,246,.94)!important}
.boatEmbedded .secBtn.active .secLabel{color:rgba(255,255,255,.98)!important}
.boatEmbedded .secWear,.boatEmbedded .secBtn:hover .secWear,.boatEmbedded .secBtn.active .secWear{color:rgba(255,255,255,.78)!important}


/* ==========================================================
   GREY OCEAN — FENSTER 2 / BOOT PLACEHOLDER V1
   Bild bleibt mittig und unverzerrt.
   Freie Breite links/rechts wird mit dem dunklen Bildrandton gefüllt.
========================================================== */
.boatEmbedded .boatWindow2{
  background:#07181c !important;
}

.boatEmbedded .boatWindow2Body{
  min-height:234px;
  height:234px;
  background-color:#07181c !important;
  background-image:url("../assets/placeholder-boot-management.png") !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:auto 100% !important;
}


/* ==========================================================
   GREY OCEAN — FENSTER 2 / BOOT PLACEHOLDER V2
   Bild füllt die komplette Fensterbreite ohne Verzerrung.
   Vertikal wird bewusst beschnitten, damit das U-Boot groß
   und präsent im Fenster liegt. Restfläche bleibt im Bildrandton.
========================================================== */
.boatEmbedded .boatWindow2{
  background:#07181c !important;
}

.boatEmbedded .boatWindow2Body{
  min-height:234px !important;
  height:234px !important;

  background-color:#07181c !important;
  background-image:url("../assets/placeholder-boot-management.png") !important;
  background-repeat:no-repeat !important;

  /* volle Breite, Seitenverhältnis bleibt erhalten */
  background-size:100% auto !important;

  /* U-Boot mittig; vertikaler Ausschnitt etwas nach unten gesetzt */
  background-position:center 55% !important;
}


/* ==========================================================
   GREY OCEAN — FENSTER 2 / BOOT PLACEHOLDER V3
   Vollständiges Motiv: kein Beschnitt, keine Verzerrung.
   Bild maximal groß innerhalb Fenster 2, mittig.
   Übrige Fläche wird mit passendem dunklen Petrol aufgefüllt.
========================================================== */
.boatEmbedded .boatWindow2{
  background:#07181c !important;
}

.boatEmbedded .boatWindow2Body{
  min-height:234px !important;
  height:234px !important;

  background-color:#07181c !important;
  background-image:url("../assets/placeholder-boot-management.png") !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;

  /* vollständiges Bild innerhalb der verfügbaren Fläche */
  background-size:contain !important;
}


/* ==========================================================
   GREY OCEAN — FENSTER 2 / BOOT PLACEHOLDER V4
   Temporärer Placeholder: Bild füllt Fenster 2 vollständig.
   Beschnitt an den Bildrändern ist ausdrücklich akzeptiert.
========================================================== */
.boatEmbedded .boatWindow2Body{
  background-color:#07181c !important;
  background-image:url("../assets/placeholder-boot-management.png") !important;
  background-repeat:no-repeat !important;
  background-position:center center !important;
  background-size:cover !important;
}

/* ==========================================================
   GREY OCEAN — PATCH 7.1 / RISIKOANZEIGE V2
   - keine erklärende Überschrift "Technische Risikoeinschätzung"
   - keine Stufenanzeige für den Spieler
   - keine Trennlinien ober-/unterhalb der Risikoanzeige
   - 2px umlaufender, abgerundeter Signalrahmen
   - Symbol + Überschrift = Signalfarbe
   - Beschreibung = hellere, abgestimmte Sekundärfarbe
   - Stufe 1–3 nautisches Symbol / Stufe 4–6 Warnsymbol
========================================================== */

.boatEmbedded .boatWindow3{
  display:flex !important;
  flex-direction:column !important;
  gap:22px !important;
}

.boatEmbedded .boatRiskBlock{
  --risk-color:#3F9C9A;
  --risk-text:rgba(205,222,221,.82);
  --risk-soft:rgba(63,156,154,.08);

  position:relative;
  display:grid;
  grid-template-columns:72px minmax(0,1fr);
  align-items:center;
  gap:16px;

  width:100%;
  box-sizing:border-box;
  padding:16px 18px;

  border:2px solid var(--risk-color);
  border-radius:13px;
  background:
    linear-gradient(180deg,var(--risk-soft),rgba(0,0,0,.10));

  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 0 0 1px rgba(0,0,0,.16);

  overflow:hidden;
}

.boatEmbedded .boatRiskIcon{
  width:56px;
  height:56px;
  display:flex;
  align-items:center;
  justify-content:center;
  justify-self:center;

  border:2px solid var(--risk-color);
  border-radius:50%;

  font-family:Georgia,"Times New Roman",serif;
  font-size:31px;
  line-height:1;
  font-weight:700;
  color:var(--risk-color);

  text-shadow:0 0 10px color-mix(in srgb,var(--risk-color) 18%,transparent);
  box-shadow:inset 0 0 12px rgba(0,0,0,.18);
}

.boatEmbedded .boatRiskBlock[data-risk-level="4"] .boatRiskIcon,
.boatEmbedded .boatRiskBlock[data-risk-level="5"] .boatRiskIcon,
.boatEmbedded .boatRiskBlock[data-risk-level="6"] .boatRiskIcon{
  border-radius:10px;
  border-color:transparent;
  box-shadow:none;
  font-size:45px;
}

.boatEmbedded .boatRiskContent{
  min-width:0;
}

.boatEmbedded .boatRiskTitle{
  margin:0;
  font-family:Georgia,"Times New Roman",serif;
  font-size:22px;
  line-height:1.08;
  font-weight:700;
  letter-spacing:.025em;
  color:var(--risk-color);
}

.boatEmbedded .boatRiskText{
  margin-top:8px;
  font-family:Georgia,"Times New Roman",serif;
  font-size:13px;
  line-height:1.42;
  font-weight:400;
  color:var(--risk-text);
}

/* Kein Trenner zwischen Risikoanzeige und Instandsetzung. */
.boatEmbedded .boatRiskBlock + .boatRevisionBlock{
  margin-top:0 !important;
}

/* Stufe 1 */
.boatEmbedded .boatRiskBlock[data-risk-level="1"]{
  --risk-color:#3F9C9A;
  --risk-text:rgba(196,218,217,.84);
  --risk-soft:rgba(63,156,154,.09);
}

/* Stufe 2 */
.boatEmbedded .boatRiskBlock[data-risk-level="2"]{
  --risk-color:#78A66F;
  --risk-text:rgba(206,222,201,.84);
  --risk-soft:rgba(120,166,111,.09);
}

/* Stufe 3 */
.boatEmbedded .boatRiskBlock[data-risk-level="3"]{
  --risk-color:#C5A64D;
  --risk-text:rgba(225,214,183,.86);
  --risk-soft:rgba(197,166,77,.10);
}

/* Stufe 4 */
.boatEmbedded .boatRiskBlock[data-risk-level="4"]{
  --risk-color:#C8752E;
  --risk-text:rgba(231,203,176,.88);
  --risk-soft:rgba(200,117,46,.11);
}

/* Stufe 5 */
.boatEmbedded .boatRiskBlock[data-risk-level="5"]{
  --risk-color:#B95F4C;
  --risk-text:rgba(232,199,191,.88);
  --risk-soft:rgba(185,95,76,.12);
}

/* Stufe 6 */
.boatEmbedded .boatRiskBlock[data-risk-level="6"]{
  --risk-color:#C9443E;
  --risk-text:rgba(238,194,191,.90);
  --risk-soft:rgba(201,68,62,.14);
}

@media(max-width:820px){
  .boatEmbedded .boatRiskBlock{
    grid-template-columns:58px minmax(0,1fr);
    gap:12px;
    padding:14px;
  }
  .boatEmbedded .boatRiskIcon{
    width:48px;
    height:48px;
    font-size:27px;
  }
  .boatEmbedded .boatRiskTitle{font-size:19px}
  .boatEmbedded .boatRiskText{font-size:12px}
}


/* ==========================================================
   GREY OCEAN — PATCH 7.1 BUGFIX / SECTION INTERACTION V1
   Risikoanzeige ist reine Ausgabe und darf keine Pointer-Events
   der technischen Bereiche beeinflussen.
========================================================== */
.boatEmbedded .boatRiskBlock,
.boatEmbedded .boatRiskBlock *{
  pointer-events:none !important;
}

/* Stabiler Hover/Active-Zustand ohne flackernde Filter-Neuberechnung. */
.boatEmbedded .secBtn{
  will-change:auto !important;
}
.boatEmbedded .secBtn:hover,
.boatEmbedded .secBtn.active{
  transform:none !important;
}

/* ==========================================================
   GREY OCEAN — PATCH 10.1 / OKM + GENERALÜBERHOLUNG UI
   OKM-Kommunikationsstandard:
   - vergilbtes Dienstpapier
   - warmer, dunkler Papierrand
   - nahezu schwarzes Schreibmaschinen-Farbband
========================================================== */
.boatEmbedded{
  --okm-paper:#d7cdb7;
  --okm-paper-hover:#e1d8c4;
  --okm-paper-pressed:#c9bea5;
  --okm-paper-border:#8f7d5d;
  --okm-paper-border-hover:#aa9570;
  --okm-ink:#191611;
}


.boatEmbedded .secBtn{padding-right:168px!important;min-height:126px}
.boatEmbedded .secOkmActions{position:absolute;right:12px;top:12px;bottom:12px;width:142px;display:flex;flex-direction:column;justify-content:center;gap:8px;z-index:2}
.boatEmbedded .secOkmBtn{appearance:none;width:100%;min-height:34px;padding:6px 8px;border:1px solid rgba(255,255,255,.18);border-radius:8px;background:rgba(0,0,0,.22);color:rgba(255,255,255,.82);font:600 11px/1.15 Arial,Helvetica,sans-serif;letter-spacing:.01em;text-align:center;cursor:pointer}
.boatEmbedded .secOkmBtn.isOkmReportActive{
  background:var(--okm-paper)!important;
  border-color:var(--okm-paper-border)!important;
  color:var(--okm-ink)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.22),
    inset 0 -1px 0 rgba(68,52,32,.14),
    0 1px 4px rgba(0,0,0,.22);
}
.boatEmbedded .secOkmBtn.isOkmReportActive:hover{
  background:var(--okm-paper-hover)!important;
  border-color:var(--okm-paper-border-hover)!important;
  color:var(--okm-ink)!important;
}
.boatEmbedded .secOkmBtn.isOkmReportActive:active{
  background:var(--okm-paper-pressed)!important;
  border-color:var(--okm-paper-border)!important;
  color:var(--okm-ink)!important;
  box-shadow:
    inset 0 1px 3px rgba(57,43,26,.18),
    0 1px 2px rgba(0,0,0,.16);
}

.boatEmbedded .secOkmBtn:not(:disabled):hover{border-color:rgba(255,255,255,.48);background:rgba(63,156,154,.22);color:#fff}
.boatEmbedded .secOkmBtn:disabled{opacity:.38;cursor:default}
.boatEmbedded .secOkmBtn.isAvailable{border-color:rgba(197,166,77,.68);background:rgba(197,166,77,.13);color:rgba(238,225,188,.96)}
.boatEmbedded .secOkmBtn.isRequested{font-variant-numeric:tabular-nums}

.boatOkmModal,.boatOverhaulLock{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;opacity:0;pointer-events:none;transition:opacity 180ms ease;background:rgba(0,0,0,.62);backdrop-filter:blur(7px);-webkit-backdrop-filter:blur(7px)}
.boatOkmModal{z-index:40}.boatOverhaulLock{z-index:60;background:rgba(0,0,0,.78)}
.boatOkmModal.open,.boatOverhaulLock.open{opacity:1;pointer-events:auto}

/* ==========================================================
   PATCH 10.2 — OKM-DOKUMENT
   Papier-/Schreibmaschinen-Sprache für amtliche OKM-Mitteilungen.
   Keine Bildtextur: Falten, Knicke und Gebrauchsspuren entstehen in CSS.
========================================================== */
.boatOkmCard{
  position:relative;
  isolation:isolate;
  width:min(720px,84vw);
  max-height:84vh;
  overflow-x:hidden;
  overflow-y:auto;
  box-sizing:border-box;
  padding:42px 54px 34px;

  border:1px solid var(--okm-paper-border);
  border-radius:5px;
  background:
    /* vertikaler Mittelfalz */
    linear-gradient(90deg,
      transparent 0 49.55%,
      rgba(89,70,43,.10) 49.72%,
      rgba(255,255,255,.12) 50%,
      rgba(84,66,41,.08) 50.28%,
      transparent 50.45%),
    /* leichter horizontaler alter Knick */
    linear-gradient(180deg,
      transparent 0 60.8%,
      rgba(93,72,45,.075) 61.05%,
      rgba(255,255,255,.09) 61.28%,
      transparent 61.55%),
    /* unregelmäßige Papieralterung */
    radial-gradient(circle at 9% 12%,rgba(108,78,38,.075),transparent 21%),
    radial-gradient(circle at 88% 84%,rgba(92,65,31,.065),transparent 24%),
    radial-gradient(circle at 72% 17%,rgba(255,255,255,.10),transparent 28%),
    linear-gradient(135deg,rgba(255,255,255,.07),transparent 33%),
    var(--okm-paper);

  color:var(--okm-ink);
  box-shadow:
    inset 0 0 34px rgba(81,61,35,.09),
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 24px 80px rgba(0,0,0,.58);

  text-align:left;
  scrollbar-width:thin;
  scrollbar-color:rgba(77,66,52,.40) transparent;
}
.boatOkmCard::before,
.boatOkmCard::after{
  content:"";
  position:absolute;
  pointer-events:none;
  z-index:-1;
}
.boatOkmCard::before{
  inset:0;
  border-radius:inherit;
  background:
    linear-gradient(24deg,transparent 0 18%,rgba(67,53,35,.055) 18.3%,rgba(255,255,255,.07) 18.6%,transparent 19.1%),
    linear-gradient(154deg,transparent 0 78%,rgba(70,54,34,.055) 78.3%,rgba(255,255,255,.065) 78.65%,transparent 79.1%);
  mix-blend-mode:multiply;
}
.boatOkmCard::after{
  left:7%;
  right:5%;
  bottom:13%;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(77,58,36,.12),rgba(255,255,255,.14),transparent);
  transform:rotate(-.55deg);
}
.boatOkmCard::-webkit-scrollbar{width:9px;background:transparent}
.boatOkmCard::-webkit-scrollbar-track{background:transparent}
.boatOkmCard::-webkit-scrollbar-thumb{background:rgba(77,66,52,.38);border:3px solid transparent;background-clip:padding-box;border-radius:999px}

.boatOkmTitle{
  margin:0;
  text-align:center;
  font-family:"Courier New",Courier,monospace;
  font-size:clamp(15px,1.65vw,24px);
  line-height:1.12;
  white-space:nowrap;
  font-weight:400;
  letter-spacing:.12em;
  color:var(--okm-ink);
  text-shadow:.25px 0 rgba(0,0,0,.40),-.25px 0 rgba(0,0,0,.20);
}
.boatOkmDepartment,
.boatOkmDateLine,
.boatOkmBerlin{
  font-family:"Courier New",Courier,monospace;
  font-weight:400;
  color:var(--okm-ink);
  text-shadow:.2px 0 rgba(0,0,0,.35);
}
.boatOkmDepartment{
  margin-top:11px;
  text-align:center;
  font-size:12px;
  line-height:1.25;
}
.boatOkmDateLine{
  margin-top:18px;
  text-align:center;
  font-size:16px;
  line-height:1.3;
}
.boatOkmText{
  margin-top:44px;
  white-space:pre-line;
  font-family:"Courier New",Courier,monospace;
  font-size:15px;
  line-height:1.64;
  font-weight:400;
  color:var(--okm-ink);
  text-shadow:.22px 0 rgba(0,0,0,.38);
}
.boatOkmAck{
  appearance:none;
  display:block;
  min-width:280px;
  min-height:46px;
  margin:36px auto 0;
  padding:8px 22px;

  border:1px solid transparent;
  border-radius:2px;
  background:transparent;

  font-family:"Courier New",Courier,monospace;
  font-size:15px;
  line-height:1.15;
  font-weight:400;
  letter-spacing:.015em;
  color:var(--okm-ink);

  cursor:pointer;
  box-shadow:none;
  transition:border-color 130ms ease;
}
.boatOkmAck:hover,
.boatOkmAck:focus-visible{
  background:transparent;
  border-color:rgba(32,29,24,.84);
  color:var(--okm-ink);
  outline:none;
}
.boatOkmAck:active{
  background:transparent;
  border-color:rgba(25,22,18,.96);
  color:var(--okm-ink);
}

.boatOkmStampWrap{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:132px;
  margin-top:22px;
}
.boatOkmStamp{
  display:block;
  width:min(150px,26vw);
  height:auto;
  max-height:150px;
  object-fit:contain;
  opacity:.82;
  filter:grayscale(1) contrast(1.12);
}
.boatOkmStamp.isMissing{
  visibility:hidden;
}
.boatOkmBerlin{
  margin-top:8px;
  text-align:center;
  font-size:14px;
  line-height:1.3;
}

@media(max-width:720px){
  .boatOkmCard{width:90vw;padding:34px 28px 28px}
  .boatOkmTitle{font-size:15px;letter-spacing:.08em;white-space:nowrap}
  .boatOkmText{margin-top:34px;font-size:14px}
  .boatOkmAck{min-width:0;width:100%;font-size:15px}
}

.boatOverhaulLockCard{width:min(900px,86vw);padding:34px 38px;text-align:center}
.boatOverhaulLockSection{margin-top:10px;font:600 16px/1.2 Arial,Helvetica,sans-serif;color:rgba(255,255,255,.68)}
.boatOverhaulTimers{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-top:30px}
.boatOverhaulTimerBox{padding:24px 18px;border:1px solid rgba(255,255,255,.14);border-radius:11px;background:rgba(255,255,255,.035)}
.boatOverhaulTimerLabel{font:700 15px/1.1 Georgia,"Times New Roman",serif;color:rgba(255,255,255,.86)}
.boatOverhaulTimerValue{margin-top:14px;font:800 clamp(28px,3vw,44px)/1 Georgia,"Times New Roman",serif;font-variant-numeric:tabular-nums;color:rgba(255,255,255,.96)}
.boatOverhaulTimerHint{margin-top:8px;font:400 10px/1 Arial,Helvetica,sans-serif;color:rgba(255,255,255,.42)}
.boatOverhaulLockText{margin:24px auto 0;max-width:680px;font:400 13px/1.5 Arial,Helvetica,sans-serif;color:rgba(255,255,255,.58)}

@media(max-width:900px){.boatEmbedded .secBtn{padding-right:14px!important;padding-bottom:92px!important}.boatEmbedded .secOkmActions{left:14px;right:14px;bottom:12px;top:auto;width:auto;flex-direction:row}.boatEmbedded .secOkmBtn{flex:1}.boatOverhaulTimers{grid-template-columns:1fr}}


/* ==========================================================
   GREY OCEAN — PATCH 10.9 / WERFTSPERRE FINAL
   - Werftzustand bleibt vollständig im sichtbaren Viewport
   - darunterliegende Bootsverwaltung ist währenddessen nicht scrollbar
   - "Verstanden" verlässt nur die Ansicht; Backend-Timer laufen weiter
========================================================== */
.boatEmbedded.isOverhaulLocked{
  overflow:hidden !important;
  overscroll-behavior:none !important;
}

.boatEmbedded .boatOverhaulLock{
  position:absolute !important;
  inset:0 !important;
  overflow:hidden !important;
  align-items:center !important;
  justify-content:center !important;
  padding:24px !important;
  box-sizing:border-box !important;
  overscroll-behavior:none !important;
}

.boatEmbedded .boatOverhaulLockCard{
  width:min(900px,calc(100% - 48px)) !important;
  max-height:calc(100% - 48px) !important;
  margin:0 !important;
  box-sizing:border-box !important;
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
  justify-content:center !important;
  overflow:hidden !important;
}

.boatEmbedded .boatOverhaulTimers{
  width:100% !important;
}

.boatEmbedded .boatOverhaulLockAction{
  display:flex;
  justify-content:center;
  align-items:center;
  margin-top:22px;
}

.boatEmbedded .boatOverhaulUnderstand{
  appearance:none;
  min-width:170px;
  min-height:42px;
  padding:9px 24px;
  border:1px solid rgba(255,255,255,.20);
  border-radius:8px;
  background:rgba(255,255,255,.045);
  color:rgba(255,255,255,.78);
  font:600 13px/1 Arial,Helvetica,sans-serif;
  letter-spacing:.025em;
  cursor:pointer;
  transition:
    border-color 140ms ease,
    background 140ms ease,
    color 140ms ease,
    box-shadow 140ms ease;
}

.boatEmbedded .boatOverhaulUnderstand:hover,
.boatEmbedded .boatOverhaulUnderstand:focus-visible{
  border-color:rgba(255,255,255,.58);
  background:rgba(255,255,255,.085);
  color:#fff;
  box-shadow:0 0 0 1px rgba(255,255,255,.045);
  outline:none;
}

.boatEmbedded .boatOverhaulUnderstand:active{
  background:rgba(255,255,255,.025);
  transform:translateY(1px);
}

@media(max-width:900px){
  .boatEmbedded .boatOverhaulLock{
    padding:16px !important;
  }
  .boatEmbedded .boatOverhaulLockCard{
    width:100% !important;
    max-height:100% !important;
    padding:24px 20px !important;
  }
}


/* PATCH 10.9.1 — HOTSPOT-SCHUTZ
   Ein geschlossener Boot-Overlay darf niemals über ein noch "open"
   markiertes Kind Pointer-Events im Kapitänszimmer abfangen. */
.boatOverlay:not(.open) .boatOverhaulLock,
.boatOverlay.closing .boatOverhaulLock{
  pointer-events:none !important;
}
