/* Chronoport - html/world/public/style/chronoport.css, unverändert übernommen. */
.rh-chronoport-center-content {
    background: radial-gradient(circle at 50% 0%, rgba(188, 193, 200, 0.10), transparent 34%), rgba(7, 8, 10, 0.96);
}

.rh-chronoport-panel {
    display: grid;
    gap: 18px;
    color: #f0f1f3;
    font-family: 'Rajdhani', system-ui, sans-serif;
}

.rh-chronoport-hero,
.rh-chronoport-card,
.rh-chronoport-section,
.rh-chronoport-message,
.rh-chronoport-footer {
    border: 1px solid rgba(194, 198, 205, 0.28);
    background: linear-gradient(135deg, rgba(13, 15, 17, 0.94), rgba(21, 24, 27, 0.80));
    box-shadow: 0 0 22px rgba(181, 187, 195, 0.08), inset 0 0 0 1px rgba(255, 255, 255, 0.03);
    border-radius: 16px;
}

.rh-chronoport-hero {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 18px;
    align-items: center;
    padding: 22px;
    position: relative;
    overflow: hidden;
}

.rh-chronoport-hero::after {
    content: '';
    position: absolute;
    inset: -40% -10% auto auto;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(188, 193, 201, 0.18), transparent 64%);
    pointer-events: none;
}

.rh-chronoport-orb {
    width: 84px;
    height: 84px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    border: 1px solid rgba(201, 205, 211, 0.55);
    background: radial-gradient(circle, rgba(203, 207, 212, 0.35), rgba(68, 74, 82, 0.18) 48%, rgba(0, 0, 0, 0.22));
    box-shadow: 0 0 34px rgba(188, 193, 200, 0.22);
    font-family: 'Orbitron', monospace;
    font-size: 42px;
    color: #e6e8eb;
}

.rh-chronoport-hero small,
.rh-chronoport-card small,
.rh-chronoport-section h3 {
    color: #cbcfd4;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.rh-chronoport-hero h2 {
    margin: 4px 0;
    font-family: 'Orbitron', monospace;
    font-size: clamp(28px, 3vw, 46px);
    color: #ffffff;
    text-shadow: 0 0 18px rgba(193, 198, 205, 0.32);
}

.rh-chronoport-hero p,
.rh-chronoport-card p,
.rh-chronoport-section p {
    margin: 0;
    color: rgba(242, 243, 245, 0.78);
    line-height: 1.45;
}

.rh-chronoport-status-pill {
    border: 1px solid rgba(205, 209, 214, 0.45);
    border-radius: 999px;
    color: #d7dadf;
    padding: 8px 14px;
    font-weight: 800;
    letter-spacing: 0.12em;
    background: rgba(44, 48, 53, 0.52);
    z-index: 1;
}

.rh-chronoport-hero.locked .rh-chronoport-status-pill {
    color: #ffd685;
    border-color: rgba(255, 196, 92, 0.42);
    background: rgba(89, 60, 16, 0.36);
}

.rh-chronoport-hero.unstable .rh-chronoport-status-pill {
    color: #ff9c9c;
    border-color: rgba(255, 85, 85, 0.46);
    background: rgba(92, 16, 22, 0.42);
}

.rh-chronoport-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.rh-chronoport-card {
    padding: 16px;
}

.rh-chronoport-card header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
    margin-bottom: 12px;
}

.rh-chronoport-card strong {
    font-family: 'Orbitron', monospace;
    color: #ffffff;
}

.rh-chronoport-card.warning {
    border-color: rgba(255, 106, 106, 0.45);
}

.rh-chronoport-meter {
    height: 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
    margin-bottom: 10px;
}

.rh-chronoport-meter span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(173, 180, 188, 0.85), rgba(218, 221, 225, 0.95));
    box-shadow: 0 0 14px rgba(187, 192, 199, 0.36);
}

.rh-chronoport-meter.stability span {
    background: linear-gradient(90deg, rgba(251, 98, 81, 0.86), rgba(125, 255, 196, 0.95));
}

.rh-chronoport-section {
    padding: 18px;
}

.rh-chronoport-section h3 {
    margin: 0 0 12px;
    font-size: 15px;
}

.rh-chronoport-requirements,
.rh-chronoport-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

.rh-chronoport-requirement,
.rh-chronoport-action,
.rh-chronoport-log-row,
.rh-chronoport-empty {
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.045);
    border-radius: 12px;
    padding: 12px;
}

.rh-chronoport-requirement {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.rh-chronoport-requirement span {
    width: 24px;
    height: 24px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}

.rh-chronoport-requirement.met span {
    background: rgba(104, 255, 195, 0.18);
    color: #d2d6da;
}

.rh-chronoport-requirement.missing span {
    background: rgba(255, 175, 79, 0.18);
    color: #ffd08b;
}

.rh-chronoport-requirement strong,
.rh-chronoport-action strong,
.rh-chronoport-log-row strong {
    color: #fff;
}

.rh-chronoport-lock-note {
    margin-top: 12px !important;
    color: #fc998e !important;
}

.rh-chronoport-ok-note {
    margin-top: 12px !important;
    color: #9dffdc !important;
}

.rh-chronoport-action {
    display: grid;
    gap: 8px;
}

.rh-chronoport-action div {
    display: flex;
    justify-content: space-between;
    gap: 8px;
}

.rh-chronoport-action button,
.rh-chronoport-footer button {
    border: 1px solid rgba(200, 204, 210, 0.35);
    color: #f3f4f5;
    background: rgba(95, 104, 117, 0.20);
    border-radius: 10px;
    padding: 9px 12px;
    font-weight: 800;
    cursor: pointer;
}

.rh-chronoport-action button:disabled {
    opacity: 0.58;
    cursor: not-allowed;
}

.rh-chronoport-section.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 16px;
}

.rh-chronoport-steps {
    margin: 0;
    padding-left: 18px;
    color: rgba(242, 243, 245, 0.82);
}

.rh-chronoport-log {
    display: grid;
    gap: 8px;
}

.rh-chronoport-log-row {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 10px;
    align-items: center;
}

.rh-chronoport-empty {
    color: rgba(242, 243, 245, 0.64);
}

.rh-chronoport-message {
    padding: 12px 16px;
    color: #9dffdc;
}

.rh-chronoport-message.error {
    color: #ffb2b2;
    border-color: rgba(255, 94, 94, 0.38);
}

.rh-chronoport-footer {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    color: rgba(242, 243, 245, 0.70);
}

@media (max-width: 1100px) {
    .rh-chronoport-hero,
    .rh-chronoport-grid,
    .rh-chronoport-section.split {
        grid-template-columns: 1fr;
    }
    .rh-chronoport-log-row {
        grid-template-columns: 1fr;
    }
}

/* --- Phase 3.02: Sprung, Ladung und Kalibrierung ------------------------- */

.rh-chronoport-action-state {
    align-self: flex-start;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    letter-spacing: 0.08em;
    border: 1px solid rgba(157, 255, 220, 0.35);
    color: #9dffdc;
}

.rh-chronoport-action.locked .rh-chronoport-action-state {
    border-color: rgba(255, 156, 156, 0.35);
    color: #ff9c9c;
}

.rh-chronoport-message.ok {
    color: #9dffdc;
    border-color: rgba(157, 255, 220, 0.38);
}

.rh-chronoport-jump-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    align-items: start;
}

.rh-chronoport-jump-grid h4 {
    margin: 16px 0 8px;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #e6e8eb;
    text-transform: uppercase;
}

.rh-chronoport-field-label {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    letter-spacing: 0.05em;
    color: rgba(242, 243, 245, 0.75);
}

.rh-chronoport-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(17, 19, 22, 0.85);
    border: 1px solid rgba(203, 207, 212, 0.28);
    color: #f3f4f5;
    font-size: 14px;
}

.rh-chronoport-units,
.rh-chronoport-cargo {
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.rh-chronoport-unit-row,
.rh-chronoport-cargo-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "label input"
        "hint  input";
    gap: 2px 10px;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(20, 23, 26, 0.6);
    border: 1px solid rgba(203, 207, 212, 0.16);
}

.rh-chronoport-unit-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas:
        "label input max"
        "hint  input max";
}

.rh-chronoport-unit-row label,
.rh-chronoport-cargo-row label {
    grid-area: label;
    font-size: 13px;
    color: #f3f4f5;
    min-width: 0;
    overflow-wrap: anywhere;
}

.rh-chronoport-unit-row small,
.rh-chronoport-cargo-row small {
    grid-area: hint;
    font-size: 11px;
    color: rgba(242, 243, 245, 0.6);
}

.rh-chronoport-unit-input,
.rh-chronoport-cargo-input {
    grid-area: input;
    width: 120px;
    padding: 7px 9px;
    border-radius: 6px;
    background: rgba(12, 14, 17, 0.9);
    border: 1px solid rgba(203, 207, 212, 0.28);
    color: #ffffff;
    text-align: right;
    font-size: 13px;
}

.rh-chronoport-mini {
    grid-area: max;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(203, 207, 212, 0.12);
    border: 1px solid rgba(203, 207, 212, 0.32);
    color: #e6e8eb;
    font-size: 11px;
    cursor: pointer;
}

.rh-chronoport-mini:hover {
    background: rgba(203, 207, 212, 0.22);
}

.rh-chronoport-capacity {
    margin: 0 0 10px;
    font-size: 13px;
    color: #9dffdc;
}

.rh-chronoport-capacity.bad {
    color: #ff9c9c;
}

.rh-chronoport-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.rh-chronoport-plan > div {
    padding: 10px;
    border-radius: 8px;
    background: rgba(20, 23, 26, 0.7);
    border: 1px solid rgba(203, 207, 212, 0.18);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.rh-chronoport-plan small {
    font-size: 11px;
    color: rgba(242, 243, 245, 0.62);
}

.rh-chronoport-plan strong {
    font-size: 15px;
    color: #f3f4f5;
    overflow-wrap: anywhere;
}

.rh-chronoport-plan strong.bad {
    color: #ff9c9c;
}

.rh-chronoport-jump-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-top: 16px;
}

.rh-chronoport-jump-actions button {
    padding: 10px 18px;
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(203, 207, 212, 0.25), rgba(203, 207, 212, 0.12));
    border: 1px solid rgba(203, 207, 212, 0.4);
    color: #f3f4f5;
    font-size: 14px;
    cursor: pointer;
}

.rh-chronoport-jump-actions button:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(203, 207, 212, 0.38), rgba(203, 207, 212, 0.18));
}

.rh-chronoport-jump-actions button:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.rh-chronoport-hint {
    font-size: 12px;
    color: rgba(242, 243, 245, 0.7);
}

.rh-chronoport-hint.bad {
    color: #ff9c9c;
}

.rh-chronoport-risk-note {
    margin: 0 0 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: rgba(255, 156, 156, 0.08);
    border: 1px solid rgba(255, 156, 156, 0.28);
    color: #fc998e;
    font-size: 13px;
}

@media (max-width: 1100px) {
    .rh-chronoport-jump-grid {
        grid-template-columns: 1fr;
    }
    .rh-chronoport-unit-input,
    .rh-chronoport-cargo-input {
        width: 96px;
    }
}

/* Anlage noch nicht errichtet: sichtbar, aber erkennbar außer Betrieb. */

.rh-chronoport-panel.rh-chronoport-inactive .rh-chronoport-hero,
.rh-chronoport-panel.rh-chronoport-inactive .rh-chronoport-grid,
.rh-chronoport-panel.rh-chronoport-inactive .rh-chronoport-actions {
    opacity: 0.55;
    filter: grayscale(0.65);
}

.rh-chronoport-panel.rh-chronoport-inactive .rh-chronoport-orb {
    animation: none;
    background: radial-gradient(circle at 35% 30%, rgba(188, 193, 200, 0.25), rgba(16, 19, 22, 0.9));
    border-color: rgba(188, 193, 200, 0.3);
}

.rh-chronoport-panel.rh-chronoport-inactive .rh-chronoport-status-pill {
    border-color: rgba(209, 212, 217, 0.35);
    color: rgba(232, 234, 236, 0.75);
}

/* Die Freischaltungsliste bleibt voll lesbar - sie ist der Weg nach vorn. */
.rh-chronoport-panel.rh-chronoport-inactive .rh-chronoport-section {
    opacity: 1;
    filter: none;
}

/* Linker Menuepunkt gedaempft, solange die Anlage nicht steht. */
.command-nav-item.rh-nav-locked .nav-ico,
.command-nav-item.rh-nav-locked .nav-copy {
    opacity: 0.55;
}

.command-nav-item.rh-nav-locked.active .nav-ico,
.command-nav-item.rh-nav-locked.active .nav-copy {
    opacity: 0.8;
}
