/* static/css/settings.css */
/* Settings page only */

.st-wrap {
  width: 100%;
  max-width: 700px;
  margin: 20px auto 34px;
  padding: 0 14px;
  box-sizing: border-box;
}

.st-card {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 14px;
  padding: 18px 20px 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  box-sizing: border-box;
}

.st-title {
  margin: 0 0 12px;
  color: #222;
  font-size: 22px;
  font-weight: 800;
  text-align: center;
}

.st-account-box {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid rgba(13, 148, 90, 0.18);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.08), rgba(59, 130, 246, 0.05));
}

.st-account-title {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 17px;
  font-weight: 900;
}

.st-account-row {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  padding: 6px 0;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  color: #334155;
  font-size: 14px;
}

.st-account-row:first-of-type {
  border-top: 0;
}

.st-account-label {
  color: #64748b;
  font-weight: 800;
}

.st-account-value {
  color: #0f172a;
  font-weight: 800;
  text-align: right;
  word-break: break-word;
}

.st-ok {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
  font-size: 12px;
  font-weight: 900;
}

.st-warn-text {
  color: #dc2626;
  font-weight: 900;
}

.st-muted {
  color: #94a3b8;
  font-weight: 800;
}

.st-avatar-box {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: nowrap;
  margin: 0 0 12px;
  padding: 8px 10px;
  min-height: 52px;
  border: 1px solid rgba(13, 148, 90, 0.16);
  border-radius: 14px;
  background: #f8fffa;
  box-sizing: border-box;
}

.st-avatar-preview {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #35aa34;
  color: #fff;
  font-size: 16px;
  font-weight: 900;
}

.st-avatar-preview img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.st-avatar-body {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: nowrap;
  min-width: 0;
}

.st-avatar-title,
.st-avatar-sub {
  display: none;
}

.st-avatar-btn {
  min-height: 30px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: #168f4d;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  white-space: nowrap;
}

.st-avatar-note {
  color: #64748b;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.st-avatar-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.st-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}

.st-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0;
}

.st-col-title {
  margin: 0;
  color: #333;
  font-size: 14px;
  font-weight: 800;
  text-align: left;
}

.st-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.st-label {
  color: #444;
  font-size: 13px;
  line-height: 1.2;
}

.st-wrap input.st-input,
.st-wrap .st-input {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid #d8d8d8;
  border-radius: 10px;
  background: #fff;
  color: #111;
  font-size: 15px;
  outline: none;
  box-sizing: border-box;
  appearance: none;
}

.st-wrap input.st-input:focus,
.st-wrap .st-input:focus {
  border-color: #2f8f63;
  box-shadow: 0 0 0 3px rgba(47, 143, 99, 0.15);
}

.st-legal-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 2px 0 0;
}

.st-actions {
  margin-top: 12px;
  display: flex;
  justify-content: center;
}

.st-btn {
  width: 100%;
  height: 42px;
  border: none;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-sizing: border-box;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.st-btn-primary {
  max-width: 360px;
  background: linear-gradient(135deg, #1c9675, #2f80ed);
}

.st-btn-primary:hover,
.st-btn-warn:hover,
.st-btn-danger:hover {
  filter: brightness(0.96);
}

.st-btn-primary:active,
.st-btn-warn:active,
.st-btn-danger:active {
  transform: translateY(1px);
}

.st-btn-primary:disabled,
.st-btn:disabled {
  background: #b9c2c9;
  color: #ffffff;
  cursor: not-allowed;
  filter: none;
  transform: none;
  opacity: 1;
}

.st-footer-actions {
  margin-top: 12px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.st-btn-warn {
  background: #E56E2B;
}

.st-btn-danger {
  background: #D5284A;
}

.st-note {
  margin-top: 10px;
  color: #777;
  font-size: 12px;
  text-align: center;
}

@media (max-width: 640px) {
  .st-wrap {
    margin: 14px auto 24px;
    padding: 0 10px;
  }

  .st-card {
    padding: 14px 12px;
    border-radius: 12px;
  }

  .st-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .st-account-box {
    padding: 10px 12px;
    margin-bottom: 10px;
  }

  .st-account-row {
    display: block;
    padding: 5px 0;
  }

  .st-account-value {
    display: block;
    margin-top: 2px;
    text-align: left;
  }

  .st-avatar-box {
    gap: 8px;
    padding: 8px;
    margin-bottom: 10px;
  }

  .st-avatar-preview {
    width: 34px;
    height: 34px;
    min-width: 34px;
    font-size: 15px;
  }

  .st-avatar-note {
    font-size: 12px;
  }

  .st-form {
    gap: 9px;
  }

  .st-col {
    gap: 7px;
  }

  .st-footer-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .st-avatar-note {
    display: none;
  }
}


/* Settings dense final */
.st-wrap {
  max-width: 680px;
  margin: 12px auto 26px;
}

.st-card {
  padding: 14px 18px;
}

.st-title {
  margin-bottom: 8px;
  font-size: 20px;
}

.st-account-box {
  margin-bottom: 10px;
  padding: 10px 14px;
}

.st-account-title {
  margin-bottom: 6px;
  font-size: 16px;
}

.st-account-row {
  padding: 4px 0;
}

.st-avatar-box {
  min-height: 46px;
  margin-bottom: 10px;
  padding: 6px 8px;
}

.st-avatar-preview {
  width: 32px;
  height: 32px;
  min-width: 32px;
  font-size: 15px;
}

.st-avatar-btn {
  min-height: 28px;
  padding: 0 11px;
}

.st-form {
  gap: 8px;
}

.st-col {
  gap: 6px;
}

.st-col-title {
  margin: 0 0 2px;
  text-align: left;
}

.st-field {
  gap: 3px;
}

.st-wrap input.st-input,
.st-wrap .st-input {
  height: 36px;
  padding: 0 10px;
}

.st-legal-line {
  margin: 2px 0 0;
  justify-content: flex-start;
}

.st-checkbox {
  width: 16px;
  height: 16px;
}

.st-legal-fields {
  display: none;
  flex-direction: column;
  gap: 6px;
}

.st-col--legal.is-open .st-legal-fields {
  display: flex;
}

.st-actions {
  margin-top: 10px;
}

.st-btn {
  height: 40px;
}

.st-footer-actions {
  margin-top: 10px;
}

.st-note {
  margin-top: 8px;
}

@media (max-width: 640px) {
  .st-wrap {
    margin: 10px auto 22px;
  }

  .st-card {
    padding: 12px 10px;
  }

  .st-avatar-note {
    font-size: 12px;
  }
}
/* /Settings dense final */


/* Settings avatar selected state */
.st-avatar-box.is-selected {
  border-color: rgba(22, 143, 77, 0.45);
  background: #f1fff6;
}

.st-avatar-box.is-selected .st-avatar-note {
  color: #168f4d;
  font-weight: 900;
}

.st-btn-primary--ready {
  box-shadow: 0 0 0 3px rgba(22, 143, 77, 0.14);
}
/* /Settings avatar selected state */
