/* MyDIAKO — mobile-first learner portal. Diako tokens, orange only for CTA. */
.s360 {
  margin: 0;
  min-height: 100dvh;
  background: var(--ds-gray-50);
  color: var(--ds-navy-900);
  font-family: "Vazirmatn", Tahoma, sans-serif;
  padding-bottom: calc(72px + env(safe-area-inset-bottom));
}

.s360--auth {
  padding-bottom: 24px;
}

.s360-top,
.s360-main,
.s360-deskfoot {
  width: min(880px, calc(100% - 28px));
  margin-inline: auto;
}

.s360-top {
  padding-top: 12px;
}

.s360-top__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}

.s360-hello {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.s360-hello__hi {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
}

.s360-hello__sub {
  margin: 0;
  color: var(--ds-gray-500);
  font-size: 12px;
}

.s360-top__actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.s360-top__actions form {
  margin: 0;
}

.s360-link {
  background: none;
  border: 0;
  color: var(--ds-navy-600);
  font: inherit;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.s360-link--ink {
  color: var(--ds-navy-800);
  font-weight: 600;
}

.s360-main {
  padding: 8px 0 28px;
}

.s360-pagehead {
  margin: 0 0 12px;
}

.s360-pagehead h1,
.s360-auth h1,
.s360-card h2,
.s360-block h2,
.s360-empty h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 700;
}

.s360-pagehead p,
.s360-muted {
  color: var(--ds-gray-500);
  margin: 0;
  font-size: 13px;
  line-height: 1.6;
}

.s360-kicker {
  margin: 0 0 4px;
  color: var(--ds-orange-600);
  font-size: 11px;
  font-weight: 700;
}

.s360-section-title {
  margin: 18px 0 8px;
  font-size: 14px;
  font-weight: 700;
}

.s360-card,
.s360-row,
.s360-auth__card,
.s360-empty,
.s360-profile,
.s360-service,
.s360-block {
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  border-radius: 14px;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.03);
}

.s360-card,
.s360-empty,
.s360-block {
  padding: 14px;
  margin-bottom: 10px;
}

.s360-card__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.s360-starter-kit {
  border-color: #bbf7d0;
}
.s360-starter-kit .s360-kicker {
  color: #15803d;
}
.s360-starter-kit .s360-badge {
  background: #dcfce7;
  color: #166534;
}

.s360-next {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-color: #fed7aa;
}

.s360-welcome h2,
.s360-next h2 {
  margin: 0 0 4px;
}

.s360-welcome__actions,
.s360-region {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.s360-choice {
  display: grid;
  gap: 4px;
  padding: 14px;
  text-align: right;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  font: inherit;
  cursor: pointer;
}

.s360-choice strong {
  font-size: 14px;
}

.s360-choice span {
  color: var(--ds-gray-500);
  font-size: 12px;
  line-height: 1.6;
}

.s360-choice:hover,
.s360-choice:focus-visible {
  border-color: #fdba74;
}

.s360-welcome .s360-choice:first-child {
  border-color: #fed7aa;
  background: #fff7ed;
}

.s360-next h2 {
  margin: 0 0 2px;
}

.s360-next .s360-btn {
  flex-shrink: 0;
}

.s360-status__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  margin: 0;
}

.s360-status__list dt {
  color: var(--ds-gray-500);
  font-size: 11px;
  margin-bottom: 2px;
}

.s360-status__list dd {
  margin: 0;
  font-size: 13px;
  font-weight: 700;
}

.s360-services {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.s360-service {
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 6px;
  padding: 12px;
  text-decoration: none;
  color: inherit;
  min-height: 0;
}

.s360-service__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--ds-gray-100);
  color: var(--ds-navy-800);
  display: grid;
  place-items: center;
}

.s360-service__icon svg {
  width: 16px;
  height: 16px;
}

.s360-service__body {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.s360-service__body strong {
  font-size: 13px;
}

.s360-service .s360-badge {
  grid-column: 1 / -1;
  justify-self: start;
}

.s360-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.s360-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
}

.s360-row__end {
  display: grid;
  justify-items: end;
  align-content: start;
  gap: 6px;
  text-align: left;
}

.s360-row--past {
  opacity: 0.78;
}

.s360-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 14px;
  margin: 0 0 10px;
}

.s360-meta--stack {
  grid-template-columns: 1fr;
}

.s360-meta dt {
  color: var(--ds-gray-500);
  font-size: 11px;
}

.s360-meta dd {
  margin: 2px 0 0;
  font-weight: 700;
  font-size: 13px;
}

.s360-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  background: var(--ds-gray-100);
  color: var(--ds-navy-700);
}

.s360-badge--paid {
  background: #dcfce7;
  color: #166534;
}

.s360-badge--failed {
  background: #fee2e2;
  color: #991b1b;
}

.s360-badge--pending {
  background: #ffedd5;
  color: #9a3412;
}

.s360-receipt,
.s360-ok {
  margin: 4px 0 0;
  font-size: 12px;
}

.s360-ok {
  color: #166534;
}

.s360-empty {
  text-align: center;
  padding: 22px 16px;
}

.s360-more {
  margin: 8px 0 0;
}

.s360-progress {
  height: 6px;
  margin-top: 8px;
  background: var(--ds-gray-100);
  border-radius: 999px;
  overflow: hidden;
}

.s360-progress span {
  display: block;
  height: 100%;
  background: var(--ds-navy-800);
}

.s360-auth {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.s360-auth__card {
  width: min(420px, 100%);
  padding: 24px 20px;
  text-align: center;
}

.s360-auth__card--wide {
  width: min(520px, 100%);
}

.s360-auth__logo {
  display: block;
  margin: 0 auto 10px;
}

.s360-form {
  display: grid;
  gap: 8px;
  text-align: right;
  margin-top: 16px;
}

.s360-form label {
  font-size: 13px;
  font-weight: 700;
}

.s360-form input[type="tel"],
.s360-form input[type="text"],
.s360-form input[type="email"],
.s360-form input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

.s360-form .da-pw-field {
  border-color: var(--ds-gray-300);
}

.s360-form .da-pw-field > input[type="tel"],
.s360-form .da-pw-field > input[type="text"],
.s360-form .da-pw-field > input[type="email"],
.s360-form .da-pw-field > input[type="password"] {
  border: 0;
  padding-inline-end: 0.35rem;
}

.s360-form input[type="tel"] {
  text-align: left;
  direction: ltr;
}

.s360-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--ds-orange-500);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 11px 14px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.s360-btn--sm {
  padding: 7px 11px;
  font-size: 13px;
  white-space: nowrap;
}

.s360-btn--ghost {
  background: #fff;
  color: var(--ds-navy-900);
  border: 1px solid var(--ds-gray-200);
}

.s360-alert {
  background: #fef2f2;
  color: #991b1b;
  border-radius: 10px;
  padding: 10px 12px;
  margin-top: 12px;
  font-size: 13px;
}

.s360-otp {
  display: flex;
  justify-content: center;
  gap: 8px;
  direction: ltr;
}

.s360-otp__box {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
}

.s360-resend {
  margin: 12px 0 8px;
}

.s360-profiles {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
}

.s360-profile {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  text-align: right;
  font: inherit;
  cursor: pointer;
}

.s360-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ds-navy-800);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  object-fit: cover;
  flex-shrink: 0;
}

.s360-avatar--sm {
  width: 36px;
  height: 36px;
}

.s360-profile__meta {
  flex: 1;
  display: grid;
  gap: 2px;
}

.s360-profile__go {
  color: var(--ds-orange-600);
  font-size: 13px;
  font-weight: 700;
}

.s360-timeline {
  list-style: none;
  margin: 0;
  padding: 0 0 0 10px;
  border-right: 2px solid var(--ds-gray-200);
}

.s360-timeline__item {
  position: relative;
  padding: 0 16px 16px 0;
}

.s360-timeline__item::before {
  content: "";
  position: absolute;
  top: 6px;
  right: -6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ds-navy-400);
}

.s360-timeline time {
  display: block;
  color: var(--ds-gray-500);
  font-size: 12px;
  margin-bottom: 2px;
}

.s360-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  background: #fff;
  border-top: 1px solid var(--ds-gray-200);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  z-index: 30;
}

.s360-nav__item {
  display: grid;
  justify-items: center;
  gap: 2px;
  color: var(--ds-gray-500);
  text-decoration: none;
  font-size: 11px;
  padding: 6px 2px;
}

.s360-nav__item.is-active {
  color: var(--ds-orange-600);
  font-weight: 700;
}

.s360-nav__ico {
  width: 20px;
  height: 20px;
}

.s360-deskfoot {
  display: none;
}

.s360-profile-card .s360-btn {
  margin-top: 8px;
}

.s360-logout {
  margin: 0;
}

.s360-logout__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  appearance: none;
  border: 1px solid var(--ds-gray-200);
  background: #fff;
  color: var(--ds-navy-700);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.s360-logout__btn--menu {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  padding: 8px 4px;
  border-radius: 8px;
}

.s360-usermenu {
  display: block;
  position: relative;
}

.s360-usermenu__btn {
  list-style: none;
  cursor: pointer;
}

.s360-usermenu__btn::-webkit-details-marker {
  display: none;
}

.s360-usermenu__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  display: grid;
  gap: 2px;
  z-index: 40;
}

.s360-usermenu__panel a,
.s360-usermenu__panel button {
  font: inherit;
  font-size: 13px;
  text-align: right;
  color: var(--ds-navy-800);
  text-decoration: none;
  background: none;
  border: 0;
  padding: 8px 10px;
  border-radius: 8px;
}

.s360-usermenu__panel form {
  margin: 0;
}

.s360-avatar--xs {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.s360-avatar--lg {
  width: 72px;
  height: 72px;
  font-size: 22px;
}

.s360-complete-status__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.s360-complete-status h2 {
  margin: 0;
  font-size: 15px;
}

.s360-complete-status__ok {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: #166534;
}

.s360-stepper {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.s360-stepper__item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--ds-gray-200);
  min-width: 0;
}

.s360-stepper__item small {
  display: block;
  color: var(--ds-gray-500);
  font-size: 11px;
}

.s360-stepper__item strong {
  font-size: 12px;
}

.s360-stepper__num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--ds-gray-100);
  color: var(--ds-navy-700);
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}

.s360-stepper__item.is-current {
  border-color: #fed7aa;
  background: #fff7ed;
}

.s360-stepper__item.is-current .s360-stepper__num,
.s360-stepper__item.is-done .s360-stepper__num {
  background: var(--ds-navy-800);
  color: #fff;
}

.s360-complete__form .s360-fields,
.s360-fields {
  display: grid;
  gap: 8px;
}

.s360-form select,
.s360-form textarea,
.s360-form input[type="date"],
.s360-datepicker__input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  padding: 12px;
  font: inherit;
  background: #fff;
}

.s360-datepicker {
  position: relative;
}

.s360-datepicker__field {
  display: flex;
  align-items: center;
  gap: 8px;
}

.s360-datepicker__input {
  flex: 1 1 auto;
  text-align: center;
  letter-spacing: 0.04em;
}

.s360-datepicker__open {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  background: #fff;
  color: var(--ds-navy-800);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.s360-datepicker__open:hover {
  border-color: #fdba74;
  background: #fff7ed;
}

.s360-cal-pop {
  position: fixed;
  z-index: 2147483000;
  margin: 0;
}

.s360-cal {
  border: 1px solid var(--ds-gray-300);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.45);
  padding: 10px;
}

.s360-cal__nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}

.s360-cal__navbtn,
.s360-cal__today {
  border: 0;
  background: #f8fafc;
  color: var(--ds-navy-800);
  border-radius: 8px;
  padding: 6px 8px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.s360-cal__navbtn:hover,
.s360-cal__today:hover {
  background: #fff7ed;
}

.s360-cal__title {
  display: flex;
  gap: 4px;
  min-width: 0;
}

.s360-cal__month,
.s360-cal__year {
  flex: 1 1 auto;
  min-width: 0;
  border: 1px solid var(--ds-gray-300);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-size: 12px;
  padding: 5px 4px;
}

.s360-cal__week,
.s360-cal__days {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.s360-cal__week span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  padding: 4px 0;
}

.s360-cal__day {
  min-height: 34px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--ds-navy-900);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.s360-cal__day:hover {
  background: #fff7ed;
}

.s360-cal__day.is-today {
  box-shadow: inset 0 0 0 1px #fdba74;
}

.s360-cal__day.is-selected {
  background: var(--ds-orange-500);
  color: #fff;
}

.s360-cal__empty {
  min-height: 34px;
}

.s360-cal__foot {
  display: flex;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 640px) {
  .s360-cal__week span {
    font-size: 9px;
  }
  .s360-cal__navbtn {
    font-size: 11px;
    padding: 6px;
  }
}

.s360-form input.is-readonly {
  background: var(--ds-gray-50);
  color: var(--ds-navy-700);
}

.s360-label {
  margin: 8px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.s360-choice-row,
.s360-choice-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.s360-choice-stack {
  display: grid;
}

.s360-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  background: #fff;
  font-size: 13px;
}

.s360-avatar-edit {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.s360-avatar-edit__btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.s360-complete__nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.s360-edu {
  border: 1px solid var(--ds-gray-200);
  border-radius: 12px;
  padding: 12px;
  margin: 0;
}

.s360-edu legend {
  font-size: 13px;
  font-weight: 700;
  padding: 0 4px;
}

.s360-opt,
.s360-req {
  font-weight: 500;
  color: var(--ds-gray-500);
  font-size: 12px;
}

.s360-crop {
  margin-bottom: 14px;
  padding: 12px;
  border: 1px dashed var(--ds-gray-300);
  border-radius: 12px;
}

.s360-crop__stage {
  display: grid;
  place-items: center;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 12px;
  background: var(--ds-gray-100);
}

.s360-logout--desk {
  display: none;
}

@media (max-width: 379px) {
  .s360-services {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 720px) {
  .s360-services {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s360-status__list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .s360 {
    padding-bottom: 16px;
  }

  .s360-services {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .s360-nav {
    display: none;
  }

  .s360-deskfoot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 40px;
    margin-bottom: 16px;
    padding: 8px 0;
    color: var(--ds-gray-500);
    font-size: 12px;
    border-top: 1px solid var(--ds-gray-200);
  }

  .s360-logout--desk {
    display: block;
  }

  .s360-usermenu {
    display: none;
  }
}

.s360-country {
  position: relative;
}

.s360-country__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid var(--ds-gray-300);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--ds-navy-900);
  cursor: pointer;
  text-align: right;
}

.s360-country__trigger:hover,
.s360-country__trigger[aria-expanded="true"] {
  border-color: #fdba74;
}

.s360-country__flag {
  font-size: 1.25rem;
  line-height: 1;
  width: 1.6em;
  text-align: center;
  flex: 0 0 auto;
}

.s360-country__chosen {
  flex: 1 1 auto;
  min-width: 0;
}

.s360-country__caret {
  color: #94a3b8;
  font-size: 12px;
}

.s360-country__panel {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  z-index: 24;
  border: 1px solid var(--ds-gray-300);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 16px 40px -28px rgba(15, 23, 42, 0.45);
  padding: 8px;
}

.s360-country__search {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--ds-gray-300);
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
  margin-bottom: 6px;
}

.s360-country__list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 240px;
  overflow: auto;
}

.s360-country__option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.s360-country__option:hover,
.s360-country__option.is-selected {
  background: #fff7ed;
}

.s360-country__text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.s360-country__text strong {
  font-size: 14px;
  font-weight: 700;
}

.s360-country__text small {
  font-size: 11px;
  color: #64748b;
}

.s360-country__empty {
  margin: 8px 4px 4px;
  text-align: center;
  color: #64748b;
  font-size: 13px;
}

/* Mobile student app chrome — desktop layout stays unchanged. */
.s360-bar,
.s360-side,
.s360-side-scrim,
.s360-m-home {
  display: none;
}

.s360-desk-dash {
  display: contents;
}

.s360-nav__item {
  position: relative;
  min-height: 44px;
}

.s360-nav__badge {
  position: absolute;
  top: 2px;
  inset-inline-end: 14%;
  min-width: 1rem;
  padding: 0 0.22rem;
  border-radius: 999px;
  background: var(--ds-orange-500);
  color: #fff;
  font-size: 0.58rem;
  font-style: normal;
  line-height: 1.2;
}

@media (max-width: 959px) {
  .s360--app:not(.t360-app) {
    padding-bottom: calc(4.5rem + env(safe-area-inset-bottom, 0px));
    overflow-x: hidden;
  }

  .s360--app:not(.t360-app).is-side-open {
    overflow: hidden;
  }

  .s360--app:not(.t360-app) .s360-top,
  .s360--app:not(.t360-app) .s360-deskfoot {
    display: none;
  }

  .s360--app:not(.t360-app) .s360-main,
  .s360--app:not(.t360-app) .s360-bar {
    width: min(880px, calc(100% - 20px));
  }

  .s360-bar {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 52px;
    padding-top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .s360-bar__menu {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 1px solid var(--ds-gray-200);
    border-radius: 10px;
    background: #fff;
    color: var(--ds-navy-900);
    cursor: pointer;
  }

  .s360-bar__menu svg {
    width: 20px;
    height: 20px;
    display: block;
    margin: auto;
  }

  .s360-bar__title {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.25;
  }

  .s360-bar__title strong {
    font-size: 0.92rem;
  }

  .s360-bar__title span {
    color: var(--ds-gray-500);
    font-size: 0.75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .s360-side {
    display: flex;
    flex-direction: column;
    position: fixed;
    inset-block: 0;
    inset-inline-start: 0;
    z-index: 80;
    width: min(300px, calc(100vw - 48px));
    max-width: 100%;
    background: var(--ds-navy-900);
    color: #fff;
    box-shadow: -12px 0 32px rgba(15, 23, 42, 0.18);
    transform: translateX(105%);
    transition: transform 0.22s ease;
  }

  html[dir="rtl"] .s360-side {
    transform: translateX(105%);
  }

  .s360--app.is-side-open .s360-side {
    transform: translateX(0);
  }

  .s360-side-scrim {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: rgba(15, 23, 42, 0.46);
  }

  .s360-side-scrim[hidden] {
    display: none;
  }

  .s360-side__brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: calc(0.85rem + env(safe-area-inset-top, 0px)) 0.9rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .s360-side__logo {
    width: 28px;
    height: 42px;
    object-fit: contain;
    flex: 0 0 auto;
  }

  .s360-side__brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
    flex: 1 1 auto;
  }

  .s360-side__brand-text strong {
    font-size: 0.95rem;
  }

  .s360-side__brand-text span {
    color: var(--ds-orange-500);
    font-size: 0.72rem;
    font-weight: 800;
  }

  .s360-side__close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    cursor: pointer;
  }

  .s360-side__close svg {
    width: 18px;
    height: 18px;
    display: block;
    margin: auto;
  }

  .s360-side__user {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    padding: 0.85rem 0.9rem;
  }

  .s360-side__avatar {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    object-fit: cover;
    flex: 0 0 44px;
    background: #1e293b;
    border: 2px solid rgba(249, 115, 22, 0.45);
  }

  .s360-side__avatar--empty {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
  }

  .s360-side__name {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .s360-side__status {
    display: inline-block;
    margin-top: 0.25rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.16);
    color: #fdba74;
    font-size: 0.68rem;
    font-weight: 800;
  }

  .s360-side__nav {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.35rem 0.65rem 0.7rem;
    overflow: auto;
    flex: 1 1 auto;
    -webkit-overflow-scrolling: touch;
  }

  .s360-side__group {
    margin: 0.65rem 0.45rem 0.2rem;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.68rem;
    font-weight: 800;
  }

  .s360-side__item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    min-height: 44px;
    padding: 0.4rem 0.7rem;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #e2e8f0;
    font: inherit;
    font-size: 0.84rem;
    font-weight: 700;
    text-align: right;
    text-decoration: none;
    cursor: pointer;
  }

  .s360-side__item:hover,
  .s360-side__item:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    outline: none;
  }

  .s360-side__item.is-active {
    background: rgba(249, 115, 22, 0.16);
    color: #fff;
    box-shadow: inset -3px 0 0 var(--ds-orange-500);
  }

  .s360-side__item--exit {
    color: #fecaca;
  }

  .s360-side__ico {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
  }

  .s360-side__label {
    flex: 1 1 auto;
    min-width: 0;
  }

  .s360-side__foot {
    padding: 0.45rem 0.55rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid rgba(255, 255, 255, 0.08);
  }

  .s360-side__logout {
    margin: 0.15rem 0 0;
  }

  .s360-nav {
    padding: 0.28rem 0.15rem calc(0.28rem + env(safe-area-inset-bottom, 0px));
    min-height: 3.85rem;
    box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  }

  .s360-nav__item {
    gap: 0.12rem;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.15;
    padding: 6px 1px;
  }

  .s360-m-home {
    display: block;
    overflow-x: hidden;
  }

  .s360-desk-dash {
    display: none;
  }

  .s360-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "brand photo"
      "identity photo"
      "cta cta";
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 8px;
    padding: 10px 12px 12px;
    border-radius: 16px;
    background:
      radial-gradient(120% 90% at 100% 0%, rgba(249, 115, 22, 0.16), transparent 46%),
      linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    color: #fff;
    overflow: hidden;
  }

  .s360-hero__brand {
    grid-area: brand;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
  }

  .s360-hero__logo {
    height: 52px;
    width: auto;
    max-width: 72px;
    object-fit: contain;
  }

  .s360-hero__kicker {
    margin: 0;
    color: #fdba74;
    font-size: 11px;
    font-weight: 800;
  }

  .s360-hero__identity {
    grid-area: identity;
    min-width: 0;
  }

  .s360-hero h1 {
    margin: 0 0 2px;
    font-size: 1.12rem;
    line-height: 1.3;
    color: #fff;
  }

  .s360-hero__level,
  .s360-hero__meta {
    margin: 0;
    color: #cbd5e1;
    font-size: 0.78rem;
  }

  .s360-hero__photo {
    grid-area: photo;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #1e293b;
    border: 2px solid rgba(253, 186, 116, 0.7);
    font-weight: 800;
    color: #fff;
  }

  .s360-hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .s360-hero__cta {
    grid-area: cta;
    justify-self: start;
    margin-top: 4px;
    color: #fff;
    background: var(--ds-orange-500);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
    min-height: 32px;
    display: inline-flex;
    align-items: center;
  }

  .s360-m-card {
    padding: 10px 12px;
    margin-bottom: 8px;
  }

  .s360-m-card--next {
    border-color: #fed7aa;
    background: #fff7ed;
  }

  .s360-m-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 6px;
  }

  .s360-m-card__head h2,
  .s360-m-card h2,
  .s360-acc h3 {
    margin: 0;
    font-size: 0.95rem;
  }

  .s360-m-card__title {
    margin: 0 0 2px;
    font-size: 0.92rem;
    font-weight: 800;
  }

  .s360-m-empty,
  .s360-m-note {
    margin: 0;
    color: var(--ds-gray-500);
    font-size: 13px;
  }

  .s360-m-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 6px;
  }

  .s360-m-list li {
    display: grid;
    gap: 1px;
    min-width: 0;
  }

  .s360-m-kv {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin: 0 0 8px;
  }

  .s360-m-kv dt {
    color: var(--ds-gray-500);
    font-size: 11px;
  }

  .s360-m-kv dd {
    margin: 2px 0 0;
    font-size: 13px;
    font-weight: 800;
  }

  .s360-m-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .s360-m-service {
    display: grid;
    gap: 2px;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid var(--ds-gray-200);
    border-radius: 10px;
    text-decoration: none;
    color: inherit;
    background: #fff;
  }

  .s360-m-service span {
    color: var(--ds-gray-500);
    font-size: 11px;
  }

  .s360-acc {
    padding: 0;
    overflow: hidden;
  }

  .s360-acc__sum {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    min-height: 44px;
    padding: 0.55rem 0.85rem;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    list-style: none;
  }

  .s360-acc__sum::-webkit-details-marker {
    display: none;
  }

  .s360-acc__chev {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    color: var(--ds-orange-600);
    transition: transform 0.2s ease;
  }

  details[open] > .s360-acc__sum .s360-acc__chev {
    transform: rotate(180deg);
  }

  .s360-acc__body {
    padding: 0 0.85rem 0.75rem;
  }

  details[open] > .s360-acc__body {
    animation: s360-acc-in 0.2s ease;
  }

  @keyframes s360-acc-in {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: none; }
  }

  .s360-m-home .s360-welcome__actions {
    margin-top: 10px;
  }
}

@media (max-width: 379px) {
  .s360-nav__item span {
    font-size: 0.56rem;
  }

  .s360-hero__logo {
    height: 44px;
    max-width: 58px;
  }

  .s360-hero h1 {
    font-size: 1rem;
  }

  .s360-m-kv,
  .s360-m-services {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 960px) {
  .s360-bar,
  .s360-side,
  .s360-side-scrim,
  .s360-m-home {
    display: none !important;
  }

  .s360-desk-dash {
    display: contents;
  }
}
