295 lines
5.4 KiB
CSS
295 lines
5.4 KiB
CSS
rojo-settings-panel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
height: 100%;
|
|
background: #0f1117;
|
|
overflow: hidden;
|
|
}
|
|
|
|
/* ── Toolbar ─────────────────────────────────────────────── */
|
|
|
|
.rsp-toolbar {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 6px 10px;
|
|
background: #13151f;
|
|
border-bottom: 1px solid #2a2d3a;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rsp-toolbar-title {
|
|
flex: 1;
|
|
color: #e2e4ed;
|
|
font-size: 0.92rem;
|
|
font-weight: 600;
|
|
}
|
|
|
|
.rsp-save {
|
|
padding: 4px 14px;
|
|
background: #1a5fd4;
|
|
border: none;
|
|
border-radius: 5px;
|
|
color: #fff;
|
|
cursor: pointer;
|
|
font-size: 0.85rem;
|
|
}
|
|
|
|
.rsp-save:hover:not(:disabled) { background: #1450b0; }
|
|
|
|
.rsp-save:disabled {
|
|
opacity: 0.3;
|
|
cursor: default;
|
|
}
|
|
|
|
/* ── Empty state ─────────────────────────────────────────── */
|
|
|
|
.rsp-empty {
|
|
flex: 1;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
color: #555;
|
|
font-size: 0.9rem;
|
|
}
|
|
|
|
/* ── Portrait ────────────────────────────────────────────── */
|
|
|
|
.rsp-portrait-wrap {
|
|
display: flex;
|
|
justify-content: center;
|
|
padding: 8px 0 4px;
|
|
}
|
|
|
|
.rsp-portrait {
|
|
width: 300px;
|
|
height: 300px;
|
|
flex-shrink: 0;
|
|
border-radius: 12px;
|
|
overflow: hidden;
|
|
background: #0a0c12;
|
|
}
|
|
|
|
.rsp-portrait svg {
|
|
display: block;
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
|
|
/* ── Form ────────────────────────────────────────────────── */
|
|
|
|
.rsp-form {
|
|
flex: 1;
|
|
overflow-y: auto;
|
|
padding: 16px;
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 20px;
|
|
}
|
|
|
|
.rsp-section {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
.rsp-section-title {
|
|
color: #7c8cff;
|
|
font-size: 0.78rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.08em;
|
|
padding-bottom: 4px;
|
|
border-bottom: 1px solid #1e2235;
|
|
}
|
|
|
|
.rsp-name-row {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rsp-name-label {
|
|
flex: 1;
|
|
min-width: 0;
|
|
}
|
|
|
|
.rsp-sync-btn {
|
|
flex-shrink: 0;
|
|
padding: 6px 10px;
|
|
background: #1e2235;
|
|
border: 1px solid #2a2d3a;
|
|
border-radius: 6px;
|
|
color: #8890a8;
|
|
font-size: 0.78rem;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.rsp-sync-btn:hover { background: #252a40; color: #c0c6de; }
|
|
|
|
.rsp-id-row {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 2px 0 4px;
|
|
}
|
|
|
|
.rsp-id-label {
|
|
font-size: 0.72rem;
|
|
font-weight: 700;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.07em;
|
|
color: #555;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rsp-id-value {
|
|
font-size: 0.75rem;
|
|
font-family: ui-monospace, "Cascadia Code", monospace;
|
|
color: #555;
|
|
word-break: break-all;
|
|
user-select: all;
|
|
}
|
|
|
|
.rsp-label {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 5px;
|
|
color: #8890a8;
|
|
font-size: 0.8rem;
|
|
font-weight: 600;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.05em;
|
|
}
|
|
|
|
.rsp-input {
|
|
background: #13151f;
|
|
color: #dde0f0;
|
|
border: 1px solid #2a2d3a;
|
|
border-radius: 6px;
|
|
padding: 7px 10px;
|
|
font-size: 0.88rem;
|
|
font-family: inherit;
|
|
outline: none;
|
|
width: 100%;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.rsp-input:focus {
|
|
border-color: #3a4a8a;
|
|
background: #141620;
|
|
}
|
|
|
|
.rsp-textarea {
|
|
resize: vertical;
|
|
line-height: 1.5;
|
|
}
|
|
|
|
.rsp-system-prompt {
|
|
min-height: 120px;
|
|
font-family: ui-monospace, "Cascadia Code", monospace;
|
|
font-size: 0.83rem;
|
|
}
|
|
|
|
select.rsp-input {
|
|
appearance: none;
|
|
cursor: pointer;
|
|
}
|
|
|
|
.rsp-endpoint-external,
|
|
.rsp-endpoint-tunnel {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
}
|
|
|
|
/* ── Tunnel picker ───────────────────────────────────────────────────────── */
|
|
|
|
.rsp-tunnel-row {
|
|
display: flex;
|
|
align-items: flex-end;
|
|
gap: 8px;
|
|
}
|
|
|
|
.rsp-tunnel-id-label { flex: 1; min-width: 0; }
|
|
|
|
.rsp-browse-tunnels-btn {
|
|
flex-shrink: 0;
|
|
padding: 6px 10px;
|
|
background: #1e2235;
|
|
border: 1px solid #2a2d3a;
|
|
border-radius: 6px;
|
|
color: #8890a8;
|
|
font-size: 0.78rem;
|
|
cursor: pointer;
|
|
white-space: nowrap;
|
|
margin-bottom: 1px;
|
|
}
|
|
|
|
.rsp-browse-tunnels-btn:hover { background: #252a40; color: #c0c6de; }
|
|
|
|
.rsp-tunnel-picker {
|
|
border: 1px solid #1e2235;
|
|
border-radius: 7px;
|
|
overflow: hidden;
|
|
background: #0d0f18;
|
|
}
|
|
|
|
.rsp-tunnel-list {
|
|
display: flex;
|
|
flex-direction: column;
|
|
max-height: 180px;
|
|
overflow-y: auto;
|
|
}
|
|
|
|
.rsp-tunnel-entry {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
padding: 8px 10px;
|
|
cursor: pointer;
|
|
border-bottom: 1px solid #1a1d2a;
|
|
transition: background 0.12s;
|
|
}
|
|
|
|
.rsp-tunnel-entry:last-child { border-bottom: none; }
|
|
.rsp-tunnel-entry:hover { background: #141826; }
|
|
|
|
.rsp-tunnel-dot {
|
|
width: 7px;
|
|
height: 7px;
|
|
border-radius: 50%;
|
|
flex-shrink: 0;
|
|
background: #2a2d3a;
|
|
}
|
|
|
|
.rsp-tunnel-active .rsp-tunnel-dot {
|
|
background: #22c55e;
|
|
box-shadow: 0 0 5px #22c55e88;
|
|
}
|
|
|
|
.rsp-tunnel-name {
|
|
flex: 1;
|
|
color: #c0c6de;
|
|
font-size: 0.83rem;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
}
|
|
|
|
.rsp-tunnel-purpose {
|
|
font-size: 0.72rem;
|
|
color: #555;
|
|
flex-shrink: 0;
|
|
}
|
|
|
|
.rsp-tunnel-loading,
|
|
.rsp-tunnel-empty {
|
|
padding: 10px;
|
|
font-size: 0.8rem;
|
|
color: #555;
|
|
text-align: center;
|
|
}
|