/* Русский комментарий: cabinet-only стиль. Страницы forgot/reset теперь независимы от этого файла. */

:root{
  --cab-panel:#4b775f;
  --cab-panel-2:#436b55;
  --cab-line:rgba(255,255,255,.14);
  --cab-text:#f4fbf6;
  --cab-muted:rgba(234,245,238,.78);
  --cab-input-bg:rgba(255,255,255,.92);
  --cab-input-border:rgba(27,62,43,.10);
  --cab-input-text:#173124;
  --cab-shadow:0 18px 42px rgba(15,38,28,.12);
}

#profileUpgradeBox{
  padding: 22px !important;
  background: rgba(255,255,255,.92) !important;
  border: 1px solid rgba(64,103,82,.10) !important;
  border-radius: 16px !important;
  box-shadow: var(--cab-shadow) !important;
}

#profileUpgradeBox h2{
  margin: 0 0 8px 0;
  color: #1f3b2d !important;
}

#profileUpgradeBox > .muted{
  margin: 0 0 16px 0 !important;
  color: #587061 !important;
}

#profileUpgradeMsg{
  display: none;
  margin-bottom: 14px !important;
}

.profile-shell{
  display: grid;
  gap: 14px;
}

.profile-top-row{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.profile-card{
  background: linear-gradient(180deg, var(--cab-panel) 0%, var(--cab-panel-2) 100%) !important;
  border: 1px solid var(--cab-line) !important;
  border-radius: 14px !important;
  padding: 18px !important;
  box-shadow: none !important;
}

.profile-card-title{
  margin: 0 0 12px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--cab-text) !important;
}

.profile-summary-list{
  display: grid;
  gap: 10px;
}

.profile-summary-line{
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 10px;
  align-items: start;
  color: var(--cab-text) !important;
  line-height: 1.45;
}

.profile-summary-line b{
  color: #ffffff !important;
  font-weight: 800;
}

.profile-avatar-row{
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

.profile-avatar-box{
  width: 50px;
  height: 50px;
  min-width: 50px;
  min-height: 50px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.10);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
  overflow: hidden;
}

.profile-avatar-box img{
  width: 50px;
  height: 50px;
  object-fit: cover;
  display: block;
}

.profile-avatar-controls{
  min-width: 260px;
  flex: 1;
}

.profile-avatar-controls form{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  display: grid;
  gap: 10px;
}

.profile-file-picker{
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.profile-file-trigger{
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.12) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
  padding: 12px 16px !important;
  font-weight: 700 !important;
  cursor: pointer;
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-file-trigger:hover{
  background: rgba(255,255,255,.16) !important;
}

.profile-file-name{
  color: var(--cab-muted);
  font-size: 14px;
  line-height: 1.35;
}

.profile-avatar-controls input[type="file"]{
  display: none !important;
}

.profile-help{
  font-size: 12px;
  line-height: 1.4;
  color: var(--cab-muted) !important;
  margin: 0;
}

.profile-contacts-card .muted{
  color: var(--cab-muted) !important;
}

.profile-contacts-card form{
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.profile-contacts-grid{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
  margin-top: 14px;
}

.profile-field{
  display: grid;
  gap: 6px;
}

.profile-field label{
  font-weight: 700;
  color: #ffffff !important;
}

.profile-field input{
  width: 100% !important;
  max-width: 100% !important;
  min-height: 48px !important;
  padding: 12px 14px !important;
  line-height: 1.2 !important;
  background: var(--cab-input-bg) !important;
  border: 1px solid var(--cab-input-border) !important;
  color: var(--cab-input-text) !important;
  border-radius: 10px !important;
}

.profile-field input::placeholder{
  color: #7e9085 !important;
}

.profile-actions{
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.profile-actions .muted,
#contactsStateText{
  color: var(--cab-muted) !important;
}

#profileUpgradeBox .btn[disabled]{
  color: #ffffff !important;
  background: #93a69a !important;
  border-color: #93a69a !important;
}

@media (max-width: 860px){
  .profile-top-row{
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px){
  .profile-summary-line{
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .profile-contacts-grid{
    grid-template-columns: 1fr;
  }

  #profileUpgradeBox{
    padding: 16px !important;
  }
}
