/* "포트포워딩" (views/forwards.js) and the name row of "서버 추가"
   (views/forward-form.js). Tokens come from style.css. */

.fw-area { max-width: 760px; }
.fw-list { display: flex; flex-direction: column; gap: 12px; }
.fw-card { padding: 16px 18px; border-radius: var(--radius-card); background: var(--surface); }
.fw-card[data-state="error"] { box-shadow: inset 0 0 0 1px var(--error); }
.fw-card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 12px; }
.fw-host { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.fw-facts { display: grid; gap: 10px; margin: 12px 0 0; }
.fw-facts > div { display: grid; grid-template-columns: 120px 1fr; gap: 4px 12px; align-items: center; }
.fw-facts dt { color: var(--muted); font-size: 13px; }
.fw-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.fw-error { margin: 12px 0 0; color: var(--error); font-size: 14px; line-height: 1.45; }
.fw-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* The name row: the box and the domain after it. The big one is the form of a new server. */
.fw-domain-row { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.fw-domain-row .fw-sub-input { flex: 1 1 auto; min-width: 0; }
.fw-suffix { flex: none; color: var(--muted); white-space: nowrap; }
.fw-domain-row.big { padding: 12px 16px; border-radius: var(--radius-card); background: var(--surface); }
.fw-domain-row.big .fw-sub-input { font-size: 22px; font-weight: 600; text-align: right; }
.fw-domain-row.big .fw-suffix { font-size: 22px; font-weight: 600; color: var(--text); }

@media (max-width: 520px) {
  .fw-facts > div { grid-template-columns: 1fr; }
  .fw-domain-row.big .fw-sub-input,
  .fw-domain-row.big .fw-suffix { font-size: 18px; }
}
