/* Shared statics for web mode submit feedback */
.run-status {
    display: none;
    margin-top: 10px;
    padding: 10px 12px;
    border: 2px dashed #39ff14;
    background: #001608;
    color: #b8ffb0;
    font-weight: 700;
}

.run-status.is-active {
    display: block;
}

.run-status.is-complete {
    border-color: #00e5ff;
    background: #031724;
    color: #9defff;
}

.run-status.is-failed {
    border-color: #ff6f6f;
    background: #2c0000;
    color: #ffd6d6;
}

.run-status[hidden] {
    display: none !important;
}

button.is-busy {
    opacity: 0.72;
    pointer-events: none;
}

.mode-row {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.selected-repos-wrap {
    display: none;
    margin-top: 10px;
}

.selected-repos-wrap.is-active {
    display: block;
}

.repo-select-actions {
    display: flex;
    gap: 8px;
    margin: 6px 0 8px;
}

.mini-btn {
    border: 2px solid #000;
    padding: 5px 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 12px;
    background: #ffe600;
    color: #000;
    box-shadow: 3px 3px 0 #000;
    text-transform: uppercase;
    cursor: pointer;
    font-weight: 700;
    transition: transform 80ms ease-in-out;
}

.mini-btn:hover {
    transform: translate(-1px, -1px);
}

.mini-btn-success {
    background: #39ff14;
    color: #000;
}

.mini-btn-danger {
    background: #ff2f7f;
    color: #fff;
}

.unified-repos-section {
    margin-top: 10px;
    border: 3px solid #000;
    background: rgba(12, 12, 12, 0.95);
    padding: 14px;
    box-shadow: 6px 6px 0 #000;
}

.repos-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
}

.repos-section-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffe600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.repo-helper-text {
    font-size: 12px;
    color: #f6f6f0;
    margin-top: 4px;
    opacity: 0.85;
}

.repos-toolbar-right {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.repo-filter-box {
    margin-bottom: 10px;
}

.repo-search-input {
    width: 100%;
    border: 3px solid #000;
    background: #1a1a1a;
    color: #f6f6f0;
    padding: 8px 12px;
    font-family: "Courier New", Courier, monospace;
    font-size: 14px;
}

.repo-search-input:focus {
    outline: none;
    border-color: #00e5ff;
    background: #000;
}

.unified-repo-list-container {
    max-height: 420px;
    overflow-y: auto;
    border: 2px solid #000;
    background: #080808;
}

.repo-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.repo-table th {
    position: sticky;
    top: 0;
    background: #181818;
    color: #00e5ff;
    text-align: left;
    padding: 9px 12px;
    border-bottom: 2px solid #000;
    font-size: 12px;
    letter-spacing: 0.05em;
    z-index: 2;
}

.repo-table td {
    padding: 8px 12px;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: middle;
}

.repo-row.is-enabled {
    background: rgba(57, 255, 20, 0.04);
}

.repo-row.is-disabled {
    background: rgba(255, 47, 127, 0.06);
    opacity: 0.75;
}

.repo-row:hover {
    background: rgba(0, 229, 255, 0.1);
}

.repo-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #39ff14;
}

.repo-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 6px;
    text-transform: uppercase;
}

.repo-badge-active {
    background: #39ff14;
    color: #000;
}

.repo-badge-disabled {
    background: #ff2f7f;
    color: #fff;
}

.repo-link {
    color: #39ff14;
    font-weight: 700;
    text-decoration: none;
    font-size: 13px;
}

.repo-link:hover {
    text-decoration: underline;
    color: #ffe600;
}

.repo-url-sub {
    font-size: 11px;
    color: #888;
    margin-top: 2px;
}

.repo-msg-cell {
    color: #aaa;
    font-size: 11px;
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.repo-select-list {
    width: 100%;
    border: 3px solid #000;
    background: #f6f6f0;
    color: #000;
    padding: 8px;
    font-family: "Courier New", Courier, monospace;
    font-size: 13px;
}

.history-wrap {
    margin-top: 14px;
    border-top: 2px dashed #6400ff;
    padding-top: 12px;
}

.history-wrap h4 {
    margin: 0 0 8px;
    text-transform: uppercase;
    color: #00e5ff;
}

.history-item {
    margin-top: 8px;
    border: 2px solid #000;
    background: #0b0b0b;
    padding: 8px;
}

.history-item summary {
    cursor: pointer;
    color: #39ff14;
    font-weight: 700;
}

.history-meta {
    margin-top: 8px;
    color: #ffe600;
    font-size: 12px;
    word-break: break-word;
}

.history-steps {
    margin-top: 8px;
    border: 1px dashed #00e5ff;
    background: #051018;
    padding: 8px;
}

.history-step {
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
    word-break: break-word;
}

.history-step:first-child {
    margin-top: 0;
}

.history-step.is-ok {
    color: #39ff14;
}

.history-step.is-fail {
    color: #ff6f6f;
}

.history-error {
    margin-top: 6px;
    color: #ff6f6f;
    font-weight: 700;
}

.history-output {
    margin: 8px 0 0;
    max-height: 220px;
    overflow: auto;
    border: 1px dashed #6400ff;
    padding: 8px;
    white-space: pre-wrap;
    word-break: break-word;
    color: #f6f6f0;
}

.history-empty {
    color: #b8ffb0;
}
