#admin-remote-view[hidden] { display: none !important; }
.remote-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; margin-bottom: 22px; }
.remote-heading h2 { margin: 7px 0 8px; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.05em; }
.remote-heading p { max-width: 680px; margin: 0; color: var(--muted); line-height: 1.65; }
.remote-eyebrow { color: var(--accent-2); font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.remote-status { display: flex; gap: 13px; align-items: flex-start; padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: color-mix(in srgb, var(--surface) 82%, transparent); }
.remote-status i { width: 9px; height: 9px; margin-top: 5px; flex: none; border-radius: 50%; background: #989aa4; box-shadow: 0 0 0 5px #989aa418; }
.remote-status strong, .remote-status span { display: block; }
.remote-status span { margin-top: 4px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.remote-status[data-state="ready"] i { background: #89d491; box-shadow: 0 0 0 5px #89d49118; }
.remote-status[data-state="offline"] i { background: #e58b7d; box-shadow: 0 0 0 5px #e58b7d18; }
.remote-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; margin: 18px 0; }
.remote-preset { min-height: 105px; padding: 16px; text-align: left; color: inherit; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); cursor: pointer; font: inherit; }
.remote-preset:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.remote-preset:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.remote-preset strong, .remote-preset span { display: block; }
.remote-preset span { margin-top: 8px; color: var(--muted); font-size: 11px; line-height: 1.55; }
.remote-form { padding: 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.remote-form label { display: grid; gap: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.remote-form :is(textarea, input, select) { box-sizing: border-box; width: 100%; min-height: 44px; padding: 12px 13px; color: var(--text); border: 1px solid var(--line); border-radius: 11px; background: var(--bg); font: inherit; resize: vertical; }
.remote-form :is(textarea, input, select):focus { border-color: var(--accent-2); outline: none; }
.remote-fields { display: grid; grid-template-columns: minmax(180px, .6fr) minmax(240px, 1.4fr); gap: 12px; margin-top: 13px; }
.remote-rule { margin: 15px 0; padding-left: 13px; color: var(--muted); border-left: 2px solid var(--accent-2); font-size: 11px; line-height: 1.65; }
.remote-actions { display: flex; flex-wrap: wrap; gap: 9px; }
#remote-feedback { margin-top: 14px; }
#remote-feedback.error { border-color: #9b5148; color: #ffd5cf; }
.remote-results { margin-top: 24px; }
.remote-results h3 { margin: 0 0 12px; }
.remote-jobs { display: grid; gap: 10px; }
.remote-job { padding: 17px 18px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface); }
.remote-job-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.remote-job-head strong { font-size: 13px; line-height: 1.5; }
.remote-job-head span { flex: none; padding: 5px 8px; border-radius: 20px; color: var(--muted); background: color-mix(in srgb, var(--line) 65%, transparent); font-size: 9px; font-weight: 800; text-transform: uppercase; }
.remote-job[data-status="succeeded"] .remote-job-head span { color: #bcebc1; background: #34763d38; }
.remote-job[data-status="failed"] .remote-job-head span, .remote-job[data-status="uncertain"] .remote-job-head span { color: #ffd0ca; background: #864b4338; }
.remote-job-target { margin: 6px 0 0; color: var(--muted); font-size: 10px; }
.remote-job-answer, .remote-job-error { margin-top: 13px; padding-top: 13px; border-top: 1px solid var(--line); white-space: pre-wrap; font-size: 12px; line-height: 1.65; }
.remote-job-error { color: #ffd0ca; }
.remote-notes { margin-top: 24px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; }
.remote-notes h3 { margin: 0 0 12px; }
.remote-notes ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 24px; margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.55; }
.remote-notes p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
@media (max-width: 760px) {
  .remote-heading { display: grid; gap: 14px; }
  .remote-heading .admin-button { width: 100%; }
  .remote-grid { grid-template-columns: 1fr 1fr; }
  .remote-fields, .remote-notes ul { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
  .remote-grid { grid-template-columns: 1fr; }
  .remote-form { padding: 17px; }
}
