/* Version: v1.6.0 (2026-07-27) | 간소 문의·조회 */
.header-track-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 10px;
  border: 2px solid #2dd4bf;
  background: rgba(45, 212, 191, 0.14);
  color: #2dd4bf !important;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 24px rgba(45, 212, 191, 0.2);
}
.header-track-btn:hover {
  background: rgba(45, 212, 191, 0.22);
  transform: translateY(-1px);
}
.linq-submit--track {
  font-size: 1.05rem !important;
  padding: 1.05rem 1.15rem !important;
}
.linq-done-close {
  margin-top: 1rem !important;
  max-width: 200px;
}
.linq-input--track {
  font-size: 1rem;
  padding: 0.75rem 0.85rem;
}
.linq-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(6, 20, 22, 0.68);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}
.linq-backdrop.is-open {
  display: flex !important;
}
.linq-sheet {
  width: 100%;
  max-width: 420px;
  background: #ffffff !important;
  color: #0a2428 !important;
  border-radius: 20px;
  box-shadow:
    0 24px 64px rgba(6, 20, 22, 0.35),
    0 0 0 1px rgba(45, 212, 191, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  max-height: min(90vh, 640px);
}
.linq-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 1.15rem 1.35rem 0.75rem;
  background: #fff !important;
  flex-shrink: 0;
}
.linq-tabs {
  display: flex;
  gap: 0.5rem;
  padding: 0 1.35rem 0.75rem;
  background: #fff !important;
  flex-shrink: 0;
}
.linq-tab {
  flex: 1;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1.5px solid #8795a8;
  background: #f7fcfb !important;
  color: #5a7a78 !important;
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
}
.linq-tab.is-active {
  border-color: #2dd4bf;
  background: #e6f7f5 !important;
  color: #0f5c61 !important;
}
.linq-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0a2428 !important;
}
.linq-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid #8795a8;
  border-radius: 10px;
  background: #f2faf9 !important;
  color: #5a7a78 !important;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
}
.linq-close:hover {
  border-color: #2dd4bf;
  color: #0f5c61 !important;
}
.linq-form {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.linq-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.linq-body {
  padding: 0 1.35rem 0.75rem;
  background: #fff !important;
}
.linq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.75rem;
  margin-bottom: 0.75rem;
}
.linq-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.linq-field-block {
  margin-top: 0.15rem;
}
.linq-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #5a7a78 !important;
  letter-spacing: -0.01em;
}
.linq-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.55rem 0.65rem;
  border: 1.5px solid #8795a8;
  border-radius: 10px;
  font-family: Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  font-size: 0.88rem;
  color: #0a2428 !important;
  background: #f7fcfb !important;
  -webkit-text-fill-color: #0a2428;
}
.linq-input:focus {
  outline: none;
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.2);
}
.linq-memo-wrap {
  border: 1.5px solid #8795a8;
  border-radius: 14px;
  background: #f7fcfb !important;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.linq-memo-wrap:focus-within {
  border-color: #2dd4bf;
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.22);
}
.linq-memo {
  display: block;
  width: 100%;
  min-height: 120px;
  max-height: 28vh;
  padding: 0.85rem 1rem;
  border: none;
  resize: vertical;
  font-family: Pretendard, 'Noto Sans KR', system-ui, sans-serif;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #0a2428 !important;
  background: transparent !important;
  -webkit-text-fill-color: #0a2428;
  box-sizing: border-box;
}
.linq-memo:focus {
  outline: none;
}
.linq-memo::placeholder {
  color: #9ab5b2 !important;
  -webkit-text-fill-color: #9ab5b2;
}
.linq-foot {
  padding: 0.5rem 1.35rem 1.25rem;
  background: #fff !important;
  flex-shrink: 0;
}
.linq-submit {
  width: 100%;
  border: none;
  border-radius: 12px;
  padding: 0.95rem 1.15rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #0f5c61 0%, #148a8f 100%) !important;
  color: #fff !important;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 92, 97, 0.32);
  transition: transform 0.15s, box-shadow 0.15s;
}
.linq-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 14px 32px rgba(15, 92, 97, 0.38);
}
.linq-submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.linq-err {
  font-size: 0.78rem;
  color: #b91c1c !important;
  margin: 0;
  font-weight: 700;
  padding: 0 1.35rem 0.35rem;
  flex-shrink: 0;
}
.linq-confirm {
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: center;
  background: #fff !important;
}
.linq-confirm p {
  margin: 0 0 1.15rem;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0a2428 !important;
  line-height: 1.55;
}
.linq-confirm-btns {
  display: flex;
  gap: 0.65rem;
}
.linq-btn-yes,
.linq-btn-no {
  flex: 1;
  padding: 0.8rem 0.75rem;
  border-radius: 12px;
  font-weight: 800;
  font-size: 0.88rem;
  cursor: pointer;
  border: none;
}
.linq-btn-yes {
  background: #2dd4bf !important;
  color: #061416 !important;
}
.linq-btn-no {
  background: #f2faf9 !important;
  color: #5a7a78 !important;
  border: 1.5px solid #8795a8 !important;
}
.linq-done {
  padding: 2.25rem 1.35rem 2rem;
  text-align: center;
  background: #fff !important;
}
.linq-done i {
  color: #0f5c61 !important;
  font-size: 2rem;
}
.linq-done p {
  margin: 0.85rem 0 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: #047857 !important;
  line-height: 1.5;
}
.linq-receipt {
  margin-top: 0.5rem !important;
  font-size: 0.8rem !important;
  font-weight: 800 !important;
  color: #0f5c61 !important;
  letter-spacing: 0.04em;
}
.linq-receipt-hint {
  margin-top: 0.45rem !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  color: #5a7a78 !important;
  line-height: 1.45;
}
.linq-link-btn {
  display: block;
  width: 100%;
  margin-top: 0.55rem;
  padding: 0.5rem;
  border: none;
  background: transparent !important;
  color: #0f5c61 !important;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.linq-foot-link {
  margin-top: 0.35rem;
  border: none;
  background: transparent;
  color: rgba(45, 212, 191, 0.85);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}
.linq-foot-link--on-dark {
  color: rgba(45, 212, 191, 0.75);
}
.linq-track-lead {
  font-size: 0.8rem;
  line-height: 1.5;
  color: #5a7a78 !important;
  margin: 0 0 0.85rem;
}
.linq-input--receipt {
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.linq-track-result {
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: #f2faf9 !important;
  border: 1.5px solid #8795a8;
}
.linq-status-badge {
  margin: 0 0 0.5rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: #0f5c61 !important;
}
.linq-status-badge.is-new {
  color: #5a7a78 !important;
}
.linq-status-badge.is-read {
  color: #047857 !important;
}
.linq-track-meta {
  margin: 0.2rem 0;
  font-size: 0.78rem;
  color: #5a7a78 !important;
}
.linq-track-preview {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  line-height: 1.55;
  color: #0a2428 !important;
}
@media (max-width: 639px) {
  .linq-backdrop.is-open {
    align-items: flex-end;
    padding: 0;
  }
  .linq-sheet {
    max-width: 100%;
    border-radius: 20px 20px 0 0;
    max-height: min(94vh, 680px);
  }
  .linq-top {
    padding: 1.1rem 1.2rem 0.7rem;
  }
  .linq-body {
    padding: 0 1.2rem 0.65rem;
  }
  .linq-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }
  .linq-foot {
    padding: 0.45rem 1.2rem 1.2rem;
    padding-bottom: calc(1.2rem + env(safe-area-inset-bottom, 0px));
  }
  .linq-err {
    padding: 0 1.2rem 0.35rem;
  }
}


/* Ticket lookup · reply */
.linq-ticket { margin: 0.75rem 0 0.25rem; font-size: 0.9rem; font-weight: 600; color: #0F5C61; }
.linq-ticket-hint { font-size: 0.78rem; color: #6B7280; margin: 0 0 1rem; line-height: 1.45; }
.linq-reply { margin-top: 0.85rem; padding: 0.85rem 1rem; border-radius: 12px; background: #F0FDFA; border: 1px solid #99F6E4; }
.linq-reply-label { font-size: 0.72rem; font-weight: 800; color: #0F5C61; margin: 0 0 0.35rem; text-transform: uppercase; letter-spacing: 0.04em; }
.linq-reply-body { margin: 0; font-size: 0.9rem; line-height: 1.55; color: #134E4A; white-space: pre-wrap; }
.linq-reply-empty { margin-top: 0.75rem; font-size: 0.82rem; color: #9CA3AF; }
.linq-meta { font-size: 0.8rem; color: #64748B; margin: 0.25rem 0; }
