/*
 * ORDARS 앱 다운로드 페이지 (/apps/download) — 2026-07-26 개편
 * 앱마다 큰 제목 + 한 줄 소개 + **플랫폼 5종 아이콘 행**. 설치 안내·계정 문구는 두지 않는다.
 */
.appdl-page { margin: 0; padding: 40px 16px 56px; background: #f4f5f7; color: #0f172a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Apple SD Gothic Neo", sans-serif; }
.appdl-wrap { max-width: 860px; margin: 0 auto; }

.appdl-head { margin-bottom: 22px; }
.appdl-logo { font-size: 13px; font-weight: 800; letter-spacing: -0.2px; color: #64748b; }
.appdl-logo span { color: #2563eb; }
.appdl-head h1 { margin: 6px 0 0; font-size: 24px; font-weight: 800; letter-spacing: -0.6px; }

.appdl-list { display: flex; flex-direction: column; gap: 18px; }
.appdl-card { background: #fff; border: 1px solid #e6e8ec; border-radius: 18px; padding: 30px 32px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.appdl-card-top { display: flex; align-items: baseline; gap: 12px; }
.appdl-name { margin: 0; font-size: 38px; font-weight: 900; letter-spacing: -1.4px; line-height: 1.1; }
.appdl-ver { flex-shrink: 0; padding: 3px 10px; border-radius: 999px; background: #ecfdf5; color: #047857;
  font-size: 11.5px; font-weight: 800; }
.appdl-tagline { margin: 10px 0 0; font-size: 15.5px; color: #334155; letter-spacing: -0.2px; }
.appdl-desc { margin: 8px 0 0; font-size: 12.5px; color: #94a3b8; line-height: 1.7; }

/* 플랫폼 행 — 아이콘 + 이름 + 다운로드 */
.appdl-plats { display: flex; flex-wrap: wrap; gap: 26px 34px; margin-top: 26px; }
.appdl-plat { display: flex; align-items: center; gap: 11px; }
.appdl-os { width: 30px; height: 30px; flex-shrink: 0; color: #0f172a; }
.appdl-plat-text { display: flex; flex-direction: column; line-height: 1.3; }
.appdl-plat-name { font-size: 14px; font-weight: 700; letter-spacing: -0.2px; }
.appdl-plat-link { font-size: 12.5px; color: #2563eb; text-decoration: none; font-weight: 600; }
.appdl-plat-link:hover { text-decoration: underline; }
.appdl-plat.is-soon { opacity: 0.38; }
.appdl-plat.is-soon .appdl-os { color: #64748b; }
.appdl-plat-soon { font-size: 12px; color: #94a3b8; }

.appdl-card-foot { margin-top: 24px; padding-top: 16px; border-top: 1px solid #f1f5f9; }
.appdl-help { margin: 24px 4px 0; font-size: 11.5px; color: #94a3b8; line-height: 1.7; text-align: center; }

@media (max-width: 640px) {
  .appdl-page { padding: 26px 12px 40px; }
  .appdl-card { padding: 22px 20px; border-radius: 14px; }
  .appdl-name { font-size: 28px; letter-spacing: -1px; }
  .appdl-tagline { font-size: 14px; }
  .appdl-plats { gap: 18px 22px; margin-top: 20px; }
  .appdl-os { width: 26px; height: 26px; }
}

/* 인라인 등록 폼 — JS 없이 details/summary 로 토글 (앱 등록 · 버전 추가)
 * ⚠2026-07-26: 페이지 CSS 를 다시 쓰면서 이 블록이 유실돼 「앱 등록」이 무스타일로 노출됐다.
 *   같은 파일에 페이지·모달 스타일이 함께 있으니 블록 단위 교체 시 주의. */
.sset-inline-add { position: relative; flex-shrink: 0; }
.sset-inline-add > summary { list-style: none; cursor: pointer; padding: 6px 12px; border: 1px solid #93c5fd;
  border-radius: 8px; background: #eff6ff; color: #1d4ed8; font-size: 12px; font-weight: 700; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 4px; }
.sset-inline-add > summary::-webkit-details-marker { display: none; }
.sset-inline-add > summary::marker { content: ""; }
.sset-inline-add > summary:hover { background: #dbeafe; }
.sset-inline-add[open] > summary { background: #dbeafe; }
.sset-inline-form { display: flex; gap: 6px; margin-top: 8px; }
.sset-inline-form input[type="text"] { flex: 1; min-width: 180px; padding: 7px 10px; border: 1px solid #d1d5db;
  border-radius: 7px; font-size: 12.5px; background: #fff; color: #111827; }
.sset-inline-form input[type="text"]:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.sset-inline-form button { padding: 7px 14px; border: none; border-radius: 7px; background: #2563eb; color: #fff;
  font-size: 12.5px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.sset-inline-form button:hover { background: #1d4ed8; }
.sset-inline-hint { display: block; margin-top: 5px; font-size: 10.5px; color: #94a3b8; line-height: 1.5; }

/* 앱 관리 모달 — 한 줄에 하나씩(주소가 길어 잘리던 문제) */
.oapp-form { margin: 0; }
.oapp-rows { display: flex; flex-direction: column; gap: 10px; }
.oapp-row { display: flex; gap: 10px; align-items: flex-end; }
.oapp-field { display: flex; flex-direction: column; gap: 4px; flex: 1 1 auto; min-width: 0; }
.oapp-field > span { font-size: 11.5px; font-weight: 600; color: #374151; }
.oapp-field > span small { font-weight: 400; color: #9ca3af; margin-left: 4px; }
.oapp-field input, .oapp-field textarea { padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 12.5px; background: #fff; color: #111827; font-family: inherit; box-sizing: border-box; width: 100%; }
.oapp-field input:focus, .oapp-field textarea:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }
.oapp-grow1 { flex: 1 1 0; } .oapp-grow2 { flex: 2 1 0; }
.oapp-ver-num { flex: 0 0 110px; }

/* 플랫폼 주소 — 라벨 + 입력 한 줄 */
.oapp-url-row { display: flex; align-items: center; gap: 10px; }
.oapp-url-label { flex: 0 0 74px; font-size: 11.5px; font-weight: 600; color: #374151; }
.oapp-url-row input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #d1d5db; border-radius: 8px;
  font-size: 12.5px; background: #fff; color: #111827; box-sizing: border-box; }
.oapp-url-row input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12); }

.oapp-actions { display: flex; align-items: center; gap: 8px; margin-top: 14px; }
.oapp-spacer { flex: 1; }
.oapp-switch-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #374151; }
.oapp-btn, .oapp-btn-primary, .oapp-btn-danger { padding: 7px 14px; border-radius: 8px; font-size: 12px;
  font-weight: 700; cursor: pointer; border: 1px solid transparent; }
.oapp-btn { background: #fff; border-color: #d1d5db; color: #374151; }
.oapp-btn:hover { background: #f3f4f6; }
.oapp-btn-primary { background: #2563eb; color: #fff; }
.oapp-btn-primary:hover { background: #1d4ed8; }
.oapp-btn-danger { background: #fff; border-color: #fecaca; color: #b91c1c; }
.oapp-btn-danger:hover { background: #fef2f2; }
.oapp-note { margin: 8px 0 0; font-size: 11px; color: #b45309; }

.oapp-sec-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  margin: 20px 0 10px; padding-top: 16px; border-top: 1px solid #e5e7eb; }
.oapp-sec-head h4 { margin: 0 0 3px; font-size: 13px; font-weight: 700; color: #0f172a; }
.oapp-sec-head p { margin: 0; font-size: 11px; color: #6b7280; line-height: 1.6; }
.oapp-ver-form { padding: 12px; margin-top: 8px; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; }

.oapp-empty { padding: 22px 14px; text-align: center; background: #f9fafb; border: 1px dashed #d1d5db;
  border-radius: 10px; font-size: 12px; color: #9ca3af; }
.oapp-vers { display: flex; flex-direction: column; gap: 10px; }
.oapp-ver { padding: 12px 13px; border: 1px solid #e5e7eb; border-radius: 10px; background: #fff; }
.oapp-ver.is-latest { border-color: #bfdbfe; background: #f8fbff; }
.oapp-ver-head { display: flex; align-items: center; gap: 7px; margin-bottom: 12px; }
.oapp-ver-name { font-size: 13px; font-weight: 800; color: #0f172a; }
.oapp-ver-tag { padding: 1px 8px; border-radius: 999px; background: #dbeafe; color: #1e40af; font-size: 10px; font-weight: 700; }
.oapp-ver-warn { padding: 1px 8px; border-radius: 999px; background: #fef3c7; color: #92400e; font-size: 10px; font-weight: 700; }
.oapp-ver-meta { font-size: 10.5px; color: #94a3b8; }

/* 앱 목록 드래그 핸들 */
.oapp-drag { display: flex; align-items: center; flex-shrink: 0; margin-right: 2px; color: #cbd5e1;
  cursor: grab; touch-action: none; }
.oapp-drag:hover { color: #94a3b8; }
.sset-card:hover .oapp-drag { color: #94a3b8; }

/* 버전 안내·이전 버전 (다운로드 페이지) */
.appdl-relnote { margin: 0 0 10px; font-size: 11.5px; color: #64748b; line-height: 1.6; }
.appdl-relnote strong { color: #1e40af; margin-right: 4px; }
.appdl-older { margin-top: 12px; }
.appdl-older > summary { list-style: none; cursor: pointer; font-size: 11.5px; color: #64748b; font-weight: 600; }
.appdl-older > summary::-webkit-details-marker { display: none; }
.appdl-older > summary::before { content: "▸ "; }
.appdl-older[open] > summary::before { content: "▾ "; }
.appdl-older > summary:hover { color: #2563eb; }
.appdl-older ul { margin: 8px 0 0; padding: 0; list-style: none; border-top: 1px solid #f1f5f9; }
.appdl-older li { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding: 7px 0; border-bottom: 1px solid #f1f5f9; font-size: 11.5px; }
.appdl-older-ver { font-weight: 700; color: #0f172a; }
.appdl-older-desc { flex: 1; min-width: 120px; color: #94a3b8; }
.appdl-older-links { display: flex; gap: 8px; }
.appdl-older-links a { color: #2563eb; text-decoration: none; font-weight: 600; }
.appdl-older-links a:hover { text-decoration: underline; }
.appdl-empty { padding: 34px 20px; text-align: center; background: #fff; border: 1px dashed #cbd5e1;
  border-radius: 16px; font-size: 13px; color: #475569; line-height: 1.7; }
.appdl-empty span { font-size: 11.5px; color: #94a3b8; }
