* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    height: 100%;
    overflow: hidden;
}

body {
    background: #060606;
    font-family: 'Courier New', Courier, monospace;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 30px;
}

.terminal {
    width: 100%;
    height: 100%;
    max-width: 1400px;
    max-height: 1000px;
    background: #060606;
    border-radius: 20px;
    padding: 32px 36px 28px;
    display: flex;
    flex-direction: column;
}

.header-line {
    width: 100%;
    border-bottom: 2px solid #2bb0bf;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.header {
    display: flex;
    justify-content: flex-start;
    align-items: baseline;
    padding-bottom: 12px;
    flex-shrink: 0;
    scale: 80%;
    width: 100%;
}

.header-left {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    margin-left: -13%;
    padding-left: 0;
    width: 100%;
}

.sys {
    font-size: clamp(14px, 1.5vw, 20px);
    letter-spacing: 2px;
    color: #2bb0bf;
    text-transform: uppercase;
}

.slash {
    color: #2bb0bf;
    font-size: clamp(15px, 1.6vw, 22px);
}

.panel {
    border-radius: 16px;
    padding: 18px 22px 20px;
    margin-bottom: 16px;
    flex-shrink: 0;
}

.panel-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 14px 18px;
}

.field {
    flex: 1 1 150px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field label {
    font-size: 12px;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
}

.field label .paste-btn {
    background: transparent;
    border: none;
    color: #2bb0bf;
    font-size: 12px;
    cursor: pointer;
    padding: 0 8px;
    transition: 0.15s;
    line-height: 1;
    flex-shrink: 0;
}

.field label .paste-btn:hover {
    color: #7ae0f0;
    transform: scale(1.1);
}

.field input,
.field select {
    background: #101010;
    border: 2px solid #2bb0bf;
    border-radius: 0px;
    padding: 10px 18px;
    font-size: clamp(14px, 1.2vw, 17px);
    color: #ffffff;
    outline: none;
    width: 100%;
}

.field input:focus,
.field select:focus {
    border-color: #2bb0bf;
}

.field input::placeholder {
    color: #ffffff;
    font-size: 13px;
}

.field select option {
    background: #0a1a2a;
    color: #c8e4ff;
}

.btn {
    padding: 11px 30px;
    border: 2px solid #2bb0bf;
    background: #101010;
    color: #ffffff;
    font-size: clamp(13px, 1.1vw, 16px);
    letter-spacing: 2px;
    cursor: pointer;
    transition: 0.15s;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn:hover {
    background: #212121;
    border-color: #2bb0bf;
    color: #ffffff;
}

.list-area {
    border-radius: 12px;
    padding: 6px 8px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.list-area::-webkit-scrollbar {
    width: 8px;
}
.list-area::-webkit-scrollbar-track {
    background: #2bb0bf65;
}
.list-area::-webkit-scrollbar-thumb {
    background: #2bb0bf;
    border-radius: 4px;
}

.empty {
    text-align: center;
    padding: 80px 20px;
    color: #2a4a6a;
    font-size: clamp(16px, 1.5vw, 22px);
    letter-spacing: 3px;
    text-transform: uppercase;
}

.entry {
    background: #101010;
    margin: 8px 0;
    padding: 12px 18px 14px 18px;
    border: 2px solid #2bb0bf;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.entry:hover {
    background: #2a2a2a;
}

.entry.selected {
    background: #101010;
    border-color: #d00418;
}

.entry-left {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    flex: 1;
}

.entry-name-display {
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.entry-sep {
    color: #2bb0bf;
    font-size: clamp(16px, 1.2vw, 20px);
}

.entry-address {
    font-size: clamp(16px, 1.4vw, 22px);
    color: #ffffff;
    letter-spacing: 4px;
    text-transform: uppercase;
}

.entry-type {
    font-size: 11px;
    padding: 2px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #2a5a7a;
    color: #ffffff;
    background: #101010;
}

.entry-type.local {
    border-color: #2a7a6a;
    color: #ffffff;
    background: #0a2220;
}

.entry-type.inter-dimensional {
    border-color: #5a3a8a;
    color: #ffffff;
    background: #101010;
}

.entry-copy {
    background: transparent;
    border: none;
    color: #2bb0bf;
    font-size: 22px;
    cursor: pointer;
    padding: 0 8px;
    transition: 0.15s;
    line-height: 1;
    flex-shrink: 0;
}

.entry-copy:hover {
    color: #7ae0f0;
    transform: scale(1.1);
}

.selected-area {
    display: none;
    background: #101010;
    border: 2px solid #2bb0bf;
    padding: 12px 20px 14px 20px;
    margin-top: 14px;
    flex-shrink: 0;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.selected-display {
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.selected-label {
    font-size: 11px;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
}

.selected-name {
    font-size: clamp(15px, 1.3vw, 20px);
    font-weight: 600;
    color: #ffffff;
}

.selected-sep {
    color: #2bb0bf;
    font-size: clamp(16px, 1.2vw, 20px);
}

.selected-address {
    font-size: clamp(15px, 1.3vw, 20px);
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.selected-type {
    font-size: 11px;
    padding: 2px 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #2a5a7a;
    color: #2bb0bf;
    background: #0a1a2a;
}

.selected-type.local {
    border-color: #2a7a6a;
    color: #ffffff;
    background: #101010;
}

.selected-type.inter-dimensional {
    border-color: #5a3a8a;
    color: #ffffff;
    background: #101010;
}

.btn.remove-selected {
    background: #3a1a1a;
    border-color: #5a2a2a;
    color: #aa5a5a;
    padding: 6px 20px;
    font-size: clamp(11px, 0.9vw, 13px);
}

.btn.remove-selected:hover {
    background: #5a2020;
    border-color: #cc3333;
    color: #ff4444;
}

@media (max-width: 700px) {
    body {
        padding: 15px;
    }
    .terminal {
        padding: 18px;
        max-height: none;
        border-radius: 14px;
    }
    .panel-row {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .btn {
        padding: 12px;
        text-align: center;
    }
    .entry-left {
        gap: 6px 8px;
    }
    .entry-address {
        font-size: 14px;
        letter-spacing: 3px;
    }
    .entry-name-display {
        font-size: 13px;
    }
    .entry {
        padding: 10px 14px 12px 14px;
    }
    .selected-area {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
    }
    .selected-display {
        gap: 6px 10px;
    }
    .selected-name {
        font-size: 14px;
    }
    .selected-address {
        font-size: 14px;
        letter-spacing: 2px;
    }
    .btn.remove-selected {
        padding: 8px;
        text-align: center;
    }
}