.tp-admin-profile { display: grid; grid-template-columns: 220px minmax(0,1fr); margin: -6px -12px -12px; min-height: 620px; }
.tp-admin-tabs { background: #f7f4f0; border-right: 1px solid #e8ded2; padding: 18px 0; }
.tp-admin-tabs button { background: transparent; border: 0; border-left: 3px solid transparent; color: #6b5f5c; cursor: pointer; display: block; font-size: 13px; font-weight: 600; padding: 13px 18px; text-align: left; width: 100%; }
.tp-admin-tabs button:hover { color: #1c1820; }
.tp-admin-tabs button.is-active { background: #fff; border-left-color: #910a9a; color: #910a9a; }
.tp-admin-panels { padding: 30px; }
.tp-admin-panel { display: none; max-width: 980px; }
.tp-admin-panel.is-active { display: block; }
.tp-admin-panel__heading { border-bottom: 1px solid #e8ded2; margin-bottom: 28px; padding-bottom: 20px; }
.tp-admin-panel__heading h3 { font-size: 23px; margin: 0 0 7px; }
.tp-admin-panel__heading p { color: #6b5f5c; margin: 0; }
.tp-admin-fields { display: grid; gap: 20px; }
.tp-admin-fields--two { grid-template-columns: repeat(2,minmax(0,1fr)); }
.tp-admin-fields--three { grid-template-columns: repeat(3,minmax(0,1fr)); }
.tp-admin-field { margin-bottom: 24px; }
.tp-admin-field > label { color: #1c1820; display: block; font-weight: 600; margin-bottom: 8px; }
.tp-admin-field input[type="text"],
.tp-admin-field input[type="url"],
.tp-admin-field input[type="email"],
.tp-admin-field input[type="number"],
.tp-admin-field select,
.tp-admin-field textarea { border-color: #d7cdc3; border-radius: 7px; min-height: 40px; width: 100%; }
.tp-admin-field input:focus,
.tp-admin-field select:focus,
.tp-admin-field textarea:focus { border-color: #910a9a; box-shadow: 0 0 0 1px #910a9a; }
.tp-admin-field .required { color: #ff6e13; }
.tp-admin-choices { display: flex; flex-wrap: wrap; gap: 10px; }
.tp-admin-choices label { background: #f7f4f0; border: 1px solid #e8ded2; border-radius: 999px; padding: 8px 13px; }
.tp-admin-toggle { align-items: center; background: #f7f4f0; border-radius: 8px; display: flex; min-height: 58px; padding: 0 15px; }
.tp-admin-toggle label { align-items: center; display: flex; gap: 9px; margin: 0; }
.tp-admin-photo__preview { align-items: center; background: #f7f4f0; border: 1px dashed #cfc2b7; border-radius: 12px; color: #6b5f5c; display: flex; height: 210px; justify-content: center; overflow: hidden; width: 210px; }
.tp-admin-photo__preview img { height: 100%; object-fit: cover; width: 100%; }
.tp-admin-photo__actions { align-items: center; display: flex; gap: 14px; margin-top: 11px; }
.tp-admin-static { background: #f7f4f0; border-radius: 7px; min-height: 40px; padding: 10px 12px; }
.tp-admin-empty { background: #fff8e5; border-left: 3px solid #ff6e13; padding: 10px 12px; }
.tp-account-card { background: #fff; border: 1px solid #e8ded2; border-radius: 14px; overflow: hidden; }
.tp-account-card__head { align-items: center; background: #f7f4f0; display: flex; gap: 16px; padding: 22px; }
.tp-account-avatar { align-items: center; background: linear-gradient(110deg,#ff6e13,#910a9a); border-radius: 50%; color: #fff; display: flex; flex: 0 0 54px; font-size: 17px; font-weight: 700; height: 54px; justify-content: center; }
.tp-account-card__head h4 { font-size: 18px; margin: 5px 0 2px; }
.tp-account-card__head a { color: #910a9a; font-size: 12px; text-decoration: none; }
.tp-account-status { align-items: center; color: #6b5f5c; display: inline-flex; font-size: 10px; font-weight: 700; gap: 6px; letter-spacing: .08em; text-transform: uppercase; }
.tp-account-status i { background: #9d918a; border-radius: 50%; height: 7px; width: 7px; }
.tp-account-status--active { color: #246c50; }
.tp-account-status--active i { background: #2a7758; }
.tp-account-status--invited { color: #910a9a; }
.tp-account-status--invited i { background: #910a9a; }
.tp-account-details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); }
.tp-account-details > div { border-bottom: 1px solid #eee5dd; padding: 17px 22px; }
.tp-account-details > div:nth-child(odd) { border-right: 1px solid #eee5dd; }
.tp-account-details span,
.tp-account-details strong { display: block; }
.tp-account-details span { color: #6b5f5c; font-size: 10px; margin-bottom: 5px; }
.tp-account-details strong { color: #1c1820; font-size: 12px; }
.tp-account-access { padding: 19px 22px; }
.tp-account-access > strong { display: block; margin-bottom: 11px; }
.tp-account-access > div { display: flex; flex-wrap: wrap; gap: 7px; }
.tp-account-access span { background: #f7f4f0; border-radius: 999px; color: #65006c; font-size: 10px; padding: 7px 10px; }
.tp-account-actions { align-items: center; border-top: 1px solid #e8ded2; display: flex; flex-wrap: wrap; gap: 10px; padding: 17px 22px; }
.tp-account-actions .button-link-delete { margin-left: auto; }
.tp-account-create { background: #faf8f5; border: 1px solid #e8ded2; border-radius: 14px; padding: 24px; }
.tp-account-create__icon { align-items: center; background: linear-gradient(110deg,#ff6e13,#910a9a); border-radius: 12px; color: #fff; display: flex; font-size: 26px; height: 48px; justify-content: center; margin-bottom: 17px; width: 48px; }
.tp-account-create h4 { font-size: 19px; margin: 0; }
.tp-account-create > div > p { color: #6b5f5c; line-height: 1.6; margin: 8px 0 23px; max-width: 700px; }
.tp-account-create__check { align-items: flex-start; background: #fff; border: 1px solid #e8ded2; border-radius: 10px; display: flex; gap: 11px; padding: 15px; }
.tp-account-create__check input { margin-top: 3px; }
.tp-account-create__check strong,
.tp-account-create__check small { display: block; }
.tp-account-create__check small { color: #6b5f5c; margin-top: 4px; }
.tp-repeater-rows { display: grid; gap: 14px; margin-bottom: 13px; }
.tp-repeater-row { align-items: center; background: #faf8f5; border: 1px solid #e8ded2; border-radius: 10px; display: grid; gap: 12px; grid-template-columns: 25px minmax(0,1fr) auto; padding: 14px; }
.tp-repeater-row .tp-admin-field { margin: 0; }
.tp-repeater-handle { color: #9d918a; cursor: grab; font-size: 18px; }
.tp-repeater-row--stacked { display: block; padding: 20px; }
.tp-repeater-row--stacked .tp-admin-field { margin-bottom: 16px; }
.tp-repeater-row--stacked .tp-admin-fields { margin-bottom: 16px; }
.tp-repeater-row--stacked .tp-admin-fields .tp-admin-field { margin-bottom: 0; }
.tp-repeater-row__head { align-items: center; border-bottom: 1px solid #e8ded2; display: flex; justify-content: space-between; margin-bottom: 18px; padding-bottom: 12px; }

.tp-training-admin { max-width: 980px; padding: 8px 4px 4px; }
.tp-training-admin > .description { border-bottom: 1px solid #e8ded2; margin: 0 0 24px; padding-bottom: 18px; }
.tp-training-admin__grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-training-admin label { display: block; margin-bottom: 22px; }
.tp-training-admin label > strong { color: #1c1820; display: block; margin-bottom: 8px; }
.tp-training-admin input,
.tp-training-admin select,
.tp-training-admin textarea { border-color: #d7cdc3; border-radius: 7px; width: 100%; }
.tp-training-admin input,
.tp-training-admin select { min-height: 42px; }
.tp-training-admin textarea { display: block; }
.tp-training-admin input:focus,
.tp-training-admin select:focus,
.tp-training-admin textarea:focus { border-color: #910a9a; box-shadow: 0 0 0 1px #910a9a; }
.tp-training-admin label > .description { display: block; margin-top: 7px; }

.tp-material-admin { max-width: 980px; padding: 8px 4px 4px; }
.tp-material-admin > .description { border-bottom: 1px solid #e8ded2; margin: 0 0 24px; padding-bottom: 18px; }
.tp-material-admin__grid { display: grid; gap: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tp-material-admin label { display: block; margin-bottom: 22px; }
.tp-material-admin label > strong { color: #1c1820; display: block; margin-bottom: 8px; }
.tp-material-admin input[type="text"],
.tp-material-admin input[type="url"],
.tp-material-admin input[type="datetime-local"],
.tp-material-admin select,
.tp-material-admin textarea { border-color: #d7cdc3; border-radius: 7px; min-height: 42px; width: 100%; }
.tp-material-admin input:focus,
.tp-material-admin select:focus,
.tp-material-admin textarea:focus { border-color: #910a9a; box-shadow: 0 0 0 1px #910a9a; }
.tp-material-admin label > .description { display: block; margin-top: 7px; }
.tp-material-file { background: #faf8f5; border: 1px solid #e8ded2; border-radius: 10px; margin-bottom: 22px; padding: 18px; }
.tp-material-file > label { margin-bottom: 9px; }
.tp-material-file__selection { background: #fff; border: 1px solid #d7cdc3; border-radius: 7px; color: #6b5f5c; min-height: 42px; padding: 10px 12px; }
.tp-material-file__actions { align-items: center; display: flex; gap: 14px; margin-top: 11px; }
.tp-material-cover { background: #faf8f5; border: 1px solid #e8ded2; border-radius: 10px; margin-bottom: 22px; padding: 18px; }
.tp-material-cover > label { margin-bottom: 12px; }
.tp-material-cover__preview { align-items: center; background: #f0e7df; border: 1px dashed #d8c9bd; border-radius: 9px; color: #7c706a; display: flex; height: 150px; justify-content: center; overflow: hidden; width: min(100%, 320px); }
.tp-material-cover__preview.has-image { background-position: center; background-size: cover; border-style: solid; }
.tp-material-cover__preview span { font-size: 11px; }
.tp-material-featured { align-items: center; background: #f7f4f0; border-radius: 8px; display: flex !important; gap: 9px; min-height: 58px; padding: 0 15px; }
.tp-material-featured > strong { margin: 0 !important; }

@media (max-width: 900px) {
  .tp-admin-profile { grid-template-columns: 1fr; }
  .tp-admin-tabs { border-bottom: 1px solid #e8ded2; border-right: 0; display: flex; overflow-x: auto; padding: 0; }
  .tp-admin-tabs button { border-bottom: 3px solid transparent; border-left: 0; flex: 0 0 auto; padding: 14px; width: auto; }
  .tp-admin-tabs button.is-active { border-bottom-color: #910a9a; }
  .tp-admin-fields--three { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .tp-admin-panels { padding: 22px 16px; }
  .tp-admin-fields--two,
  .tp-admin-fields--three { grid-template-columns: 1fr; }
  .tp-training-admin__grid { grid-template-columns: 1fr; }
  .tp-material-admin__grid { grid-template-columns: 1fr; }
  .tp-account-details { grid-template-columns: 1fr; }
  .tp-account-details > div:nth-child(odd) { border-right: 0; }
  .tp-account-actions { align-items: flex-start; flex-direction: column; }
  .tp-account-actions .button-link-delete { margin-left: 0; }
}
