/* Server templates: the administrators' pages (views/admin-templates.js) and
   the template choice of 서버 추가 (views/server-new.js). The text editor's
   own styles are in server-manage.css. Tokens come from style.css. */

/* ---- the window of 서버 추가 and the template choice ---- */
.add-choices { display: flex; flex-direction: column; gap: 10px; min-width: min(420px, 80vw); }
.add-choice { display: flex; flex-direction: column; gap: 4px; width: 100%; padding: 14px 16px; border: 1px solid transparent; border-radius: var(--radius-card); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.add-choice:hover:not(:disabled) { background: var(--fill); }
.add-choice:focus-visible { border-color: var(--accent); outline: none; }
.add-choice:disabled { opacity: 0.55; cursor: not-allowed; }
.add-choice strong { font-size: 16px; }
.add-choice span { color: var(--muted); font-size: 13px; }
.tpl-pick-list { display: flex; flex-direction: column; gap: 8px; }
.tpl-pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid transparent; border-radius: var(--radius-card); background: var(--surface); color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tpl-pick:hover:not(:disabled) { background: var(--fill); }
.tpl-pick[aria-pressed="true"] { border-color: var(--accent); }
.tpl-pick:disabled { opacity: 0.55; cursor: not-allowed; }
.tpl-pick-icon { flex: none; width: 48px; height: 48px; border-radius: 8px; background: var(--fill); image-rendering: pixelated; }
.tpl-pick-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tpl-pick-desc { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; }
.tpl-pick-meta { color: var(--faint); font-size: 12px; }
.tpl-pick-warn { color: var(--warn); font-size: 12px; }

/* ---- 서버 템플릿 (administrators) ---- */
.tpl-area { display: flex; flex-direction: column; gap: 16px; }
.tpl-table td, .tpl-table th { vertical-align: middle; }
.tpl-name { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tpl-name .tpl-pick-icon { width: 32px; height: 32px; }
.tpl-sub { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }
.tpl-head-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tpl-form { display: flex; flex-direction: column; gap: 16px; max-width: 640px; }
.tpl-form textarea.input { min-height: 72px; resize: vertical; }
.tpl-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tpl-props { font: 13px/1.5 var(--mono); min-height: 96px; }
.tpl-form-actions { display: flex; justify-content: flex-end; gap: 8px; }
.tpl-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .tpl-pair { grid-template-columns: 1fr; } }
