﻿.sl-counseling-card {
  margin: 18px 0;
  padding: 18px;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}

.sl-counseling-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.sl-counseling-eyebrow {
  margin: 0 0 4px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sl-counseling-head h2 {
  margin: 0 0 6px;
  color: #0f172a;
  font-size: 22px;
  line-height: 1.25;
}

.sl-counseling-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.sl-counseling-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  margin-bottom: 14px;
}

.sl-counseling-form label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #334155;
  font-size: 13px;
  font-weight: 700;
}

.sl-counseling-form select,
.sl-counseling-form textarea {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #f8fafc;
  color: #0f172a;
  font: inherit;
}

.sl-counseling-form textarea {
  min-height: 88px;
  resize: vertical;
  line-height: 1.5;
}

.sl-counseling-memo {
  grid-column: span 2;
}

.sl-counseling-run {
  min-height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #1d4ed8;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}

.sl-counseling-result {
  display: grid;
  gap: 12px;
}

.sl-counseling-title {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-radius: 14px;
  background: #eff6ff;
  color: #0f172a;
}

.sl-counseling-title strong {
  font-size: 18px;
}

.sl-counseling-title span {
  color: #1d4ed8;
  font-weight: 800;
}

.sl-counseling-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.sl-counseling-grid article,
.sl-counseling-parent {
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 14px;
  background: #f8fafc;
}

.sl-counseling-grid h3,
.sl-counseling-parent h3 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 15px;
}

.sl-counseling-grid p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.sl-counseling-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sl-counseling-actions button {
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  background: #ffffff;
  color: #1d4ed8;
  font-weight: 700;
  cursor: pointer;
}

.sl-counseling-actions .sl-counseling-save {
  margin-left: auto;
  border-color: #1d4ed8;
  background: #1d4ed8;
  color: #ffffff;
}

.sl-counseling-form button:disabled,
.sl-counseling-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.sl-counseling-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #334155;
}

.sl-counseling-parent p,
.sl-counseling-empty,
.sl-counseling-status {
  margin: 0;
  color: #64748b;
  line-height: 1.5;
}

.sl-counseling-status {
  margin-top: 10px;
}

.sl-counseling-status.is-error {
  color: #dc2626;
  font-weight: 700;
}

@media (max-width: 900px) {
  .sl-counseling-card {
    padding: 14px;
    border-radius: 14px;
  }

  .sl-counseling-form {
    grid-template-columns: 1fr 1fr;
  }

  .sl-counseling-memo {
    grid-column: 1 / -1;
  }

  .sl-counseling-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .sl-counseling-form {
    grid-template-columns: 1fr;
  }

  .sl-counseling-memo {
    grid-column: auto;
  }

  .sl-counseling-run,
  .sl-counseling-actions button {
    width: 100%;
  }

  .sl-counseling-actions .sl-counseling-save {
    margin-left: 0;
  }
}
