.autoearn-market-launch {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    place-items: center;
    padding: 32px;
    background: rgba(2, 2, 7, 0.82);
    backdrop-filter: blur(12px);
}

.autoearn-market-launch[hidden] {
    display: none;
}

.autoearn-market-launch__panel {
    width: min(620px, calc(100vw - 64px));
    border: 1px solid #27283b;
    background: #09090f;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.autoearn-market-launch__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    padding: 0 28px;
    border-bottom: 1px solid #27283b;
}

.autoearn-market-launch__title {
    margin: 0;
    color: #f3f3f8;
    font-family: "Neue Machina", sans-serif;
    font-size: 22px;
    font-weight: 700;
}

.autoearn-market-launch__close {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #27283b;
    border-radius: 0;
    background: transparent;
    color: #878897;
    font-family: Arial, sans-serif;
    font-size: 20px;
    line-height: 24px;
    cursor: pointer;
}

.autoearn-market-launch__close:hover {
    border-color: #a0a4fe;
    color: #f3f3f8;
}

.autoearn-market-launch__body {
    padding: 26px 28px 28px;
}

.autoearn-market-launch__market {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 14px;
    padding-bottom: 24px;
    border-bottom: 1px solid #202130;
}

.autoearn-market-launch__icon,
.autoearn-farming-market__icon {
    width: 44px;
    height: 44px;
    border: 1px solid #292a3c;
    border-radius: 4px;
    object-fit: cover;
    background: #11121a;
}

.autoearn-market-launch__question {
    margin: 0;
    overflow: hidden;
    color: #e9e9ef;
    font-family: "Google Sans Mono", monospace;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.autoearn-market-launch__prices {
    display: grid;
    gap: 5px;
    min-width: 88px;
    color: #8b8c9c;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
    text-align: right;
}

.autoearn-market-launch__price strong {
    color: #c9caf4;
    font-weight: 500;
}

.autoearn-market-launch__field {
    margin-top: 24px;
}

.autoearn-market-launch__label-row,
.autoearn-market-launch__summary-row,
.autoearn-market-launch__balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.autoearn-market-launch__label {
    color: #9b9ca9;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
}

.autoearn-market-launch__minimum {
    border: 0;
    background: transparent;
    color: #a0a4fe;
    font-family: "Google Sans Mono", monospace;
    font-size: 11px;
    cursor: pointer;
}

.autoearn-market-launch__input-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    height: 48px;
    margin-top: 9px;
    border: 1px solid #303148;
    background: #0c0d14;
}

.autoearn-market-launch__input {
    min-width: 0;
    height: 100%;
    padding: 0 14px;
    border: 0;
    outline: none;
    background: transparent;
    color: #f3f3f8;
    font-family: "Google Sans Mono", monospace;
    font-size: 16px;
}

.autoearn-market-launch__input-unit {
    padding: 0 14px;
    color: #7d7e8d;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
}

.autoearn-market-launch__balance-row {
    margin-top: 8px;
    color: #676876;
    font-family: "Google Sans Mono", monospace;
    font-size: 11px;
}

.autoearn-market-launch__balance-value {
    color: #9698b5;
}

.autoearn-market-launch__summary {
    margin-top: 24px;
    padding: 16px 0;
    border-top: 1px solid #202130;
    border-bottom: 1px solid #202130;
}

.autoearn-market-launch__summary-copy {
    margin: 5px 0 0;
    color: #c1c2cf;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
    line-height: 1.45;
}

.autoearn-market-launch__edit {
    border: 0;
    background: transparent;
    color: #a0a4fe;
    font-family: "Google Sans Mono", monospace;
    font-size: 11px;
    cursor: pointer;
}

.autoearn-market-launch__notice {
    min-height: 18px;
    margin: 14px 0 0;
    color: #9b9ca9;
    font-family: "Google Sans Mono", monospace;
    font-size: 11px;
    line-height: 1.5;
}

.autoearn-market-launch__notice--error {
    color: #ff8f9c;
}

.autoearn-market-launch__submit {
    width: 100%;
    height: 44px;
    margin-top: 18px;
    border: 1px solid #b1b4ff;
    border-radius: 0;
    background: #a0a4fe;
    color: #08080d;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.autoearn-market-launch__submit:hover:not(:disabled) {
    background: #b1b4ff;
}

.autoearn-market-launch__submit:disabled {
    border-color: #313244;
    background: #1a1b25;
    color: #646574;
    cursor: not-allowed;
}

.autoearn-farming-markets {
    margin-top: 34px;
}

.autoearn-farming-markets[hidden] {
    display: none;
}

.autoearn-farming-markets__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 14px;
}

.autoearn-farming-markets__title {
    margin: 0;
    color: #eeeef4;
    font-family: "Neue Machina", sans-serif;
    font-size: 20px;
    font-weight: 700;
}

.autoearn-farming-markets__count {
    color: #70717e;
    font-family: "Google Sans Mono", monospace;
    font-size: 11px;
}

.autoearn-farming-markets__list {
    display: grid;
    gap: 10px;
}

.autoearn-farming-market {
    display: grid;
    grid-template-columns: minmax(250px, 1.55fr) repeat(3, minmax(112px, 0.62fr)) minmax(170px, 0.9fr) auto;
    align-items: center;
    gap: 18px;
    min-height: 112px;
    padding: 18px 20px;
    border: 1px solid #252637;
    background: #08090e;
}

.autoearn-farming-market__identity {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 13px;
    min-width: 0;
}

.autoearn-farming-market__question {
    margin: 0;
    overflow: hidden;
    color: #dedee7;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.45;
    text-overflow: ellipsis;
}

.autoearn-farming-market__status {
    display: block;
    margin-top: 7px;
    color: #8f91b7;
    font-family: "Google Sans Mono", monospace;
    font-size: 10px;
    text-transform: uppercase;
}

.autoearn-farming-market__status--exiting,
.autoearn-farming-market__status--needs-attention {
    color: #f0bb7c;
}

.autoearn-farming-market__status--paused,
.autoearn-farming-market__status--stopped {
    color: #777886;
}

.autoearn-farming-market__metric {
    min-width: 0;
}

.autoearn-farming-market__metric-label {
    display: block;
    margin-bottom: 6px;
    color: #60616f;
    font-family: "Google Sans Mono", monospace;
    font-size: 9px;
    text-transform: uppercase;
}

.autoearn-farming-market__metric-value {
    overflow: hidden;
    color: #d2d3df;
    font-family: "Google Sans Mono", monospace;
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
}

.autoearn-farming-market__orders {
    color: #9192a3;
    font-family: "Google Sans Mono", monospace;
    font-size: 10px;
    line-height: 1.65;
}

.autoearn-farming-market__orders strong {
    color: #c9caf4;
    font-weight: 500;
}

.autoearn-farming-market__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.autoearn-farming-market__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    height: 34px;
    padding: 0 11px;
    border: 1px solid #303148;
    border-radius: 0;
    background: transparent;
    color: #a5a6b4;
    font-family: "Google Sans Mono", monospace;
    font-size: 10px;
    cursor: pointer;
    text-decoration: none;
}

.autoearn-farming-market__action:hover {
    border-color: #a0a4fe;
    color: #e8e8ef;
}

.autoearn-farming-market__action:disabled {
    border-color: #242532;
    color: #565763;
    cursor: not-allowed;
}

.autoearn-farming-market__action--icon {
    min-width: 34px;
    width: 34px;
    padding: 0;
    font-family: Arial, sans-serif;
    font-size: 17px;
}

@media (max-width: 1400px) {
    .autoearn-market-launch {
        display: none;
    }
}
