:root {
  --cream: #eeebe7;
  --gold: #a48050;
  --gold-soft: rgba(164, 128, 80, 0.14);
  --teal: #002c3c;
  --teal-2: #0a3d4e;
  --white: #fcfcfc;
  --ink: #202020;
  --muted: #6d675f;
  --line: rgba(32, 32, 32, 0.08);
  --field-line: rgba(32, 32, 32, 0.22);
  --sidebar: 268px;
  --radius: 22px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body.hera-body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Vazirmatn", sans-serif;
  font-weight: 400;
  letter-spacing: -0.01em;
}

a {
  color: inherit;
  text-decoration: none;
}

.hera-app {
  min-height: 100vh;
}

.hera-sidebar {
  width: var(--sidebar);
  background: var(--teal);
  color: var(--cream);
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  padding: 22px 20px 16px;
  z-index: 40;
}

.hera-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 6px 16px;
  border-bottom: 1px solid rgba(238, 235, 231, 0.12);
}

.hera-brand__mark {
  width: 40px;
  height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}

.hera-brand__en {
  font-family: "Cormorant Garamond", serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.12em;
  font-weight: 500;
}

.hera-brand__fa {
  margin-top: 4px;
  font-size: 12px;
  color: rgba(238, 235, 231, 0.72);
}

.hera-nav {
  overflow-x: hidden;
  overflow-y: auto;
  padding: 14px 2px 12px 0;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(238, 235, 231, 0.28) transparent;
}

.hera-nav::-webkit-scrollbar {
  width: 4px;
}

.hera-nav::-webkit-scrollbar-track {
  background: transparent;
}

.hera-nav::-webkit-scrollbar-thumb {
  background: rgba(238, 235, 231, 0.28);
  border-radius: 999px;
}

.hera-nav::-webkit-scrollbar-thumb:hover {
  background: rgba(238, 235, 231, 0.48);
}

.hera-nav__group {
  margin-bottom: 16px;
}

.hera-nav__group:last-child {
  margin-bottom: 0;
}

.hera-nav__label {
  display: block;
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.08em;
  padding: 0 12px 6px;
}

.hera-nav__link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 12px;
  border-radius: 12px;
  color: rgba(238, 235, 231, 0.78);
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 1px;
  transition: background 0.2s ease, color 0.2s ease;
}

.hera-nav__link i {
  width: 18px;
  text-align: center;
  opacity: 0.85;
}

.hera-nav__link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.hera-nav__link.is-active {
  background: var(--gold-soft);
  color: #f3e6d2;
}

.hera-nav__branch {
  margin-bottom: 1px;
}

.hera-nav__toggle {
  width: 100%;
  border: 0;
  background: transparent;
  font: inherit;
  cursor: pointer;
  text-align: right;
}

.hera-nav__caret {
  margin-inline-start: auto;
  font-size: 12px;
  transition: transform 0.2s ease;
}

.hera-nav__branch.is-open .hera-nav__caret {
  transform: rotate(180deg);
}

.hera-nav__sub {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: 2px 28px 8px 8px;
}

.hera-nav__branch.is-open .hera-nav__sub {
  display: flex;
}

.hera-nav__sub a {
  padding: 6px 10px;
  border-radius: 10px;
  color: rgba(238, 235, 231, 0.72);
  font-size: 13px;
}

.hera-nav__sub a:hover,
.hera-nav__sub a.is-active {
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
}

.hera-sidebar__foot {
  font-size: 12px;
  color: rgba(238, 235, 231, 0.72);
  padding: 10px 8px 0;
  border-top: 1px solid rgba(238, 235, 231, 0.12);
}

.hera-cal-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hera-cal-bar__nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hera-cal-bar__title {
  font-weight: 600;
  margin-right: 4px;
}

.hera-day__row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 10px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.hera-day__row:last-child {
  border-bottom: 0;
}

.hera-day__time {
  color: var(--muted);
  font-size: 12px;
  padding-top: 6px;
}

.hera-day__free {
  display: block;
  color: var(--muted);
  font-size: 12px;
  padding: 6px 2px;
}

.hera-appt {
  display: block;
  background: #f7f4ef;
  border: 1px solid rgba(164, 128, 80, 0.14);
  border-radius: 10px;
  padding: 7px 10px;
  margin-bottom: 6px;
}

.hera-appt:last-child {
  margin-bottom: 0;
}

.hera-appt__line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hera-appt strong {
  font-size: 13px;
  font-weight: 500;
  color: var(--teal);
  line-height: 1.4;
}

.hera-appt__time {
  color: var(--gold);
  font-size: 12px;
}

.hera-appt__meta {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.hera-day .hera-chip {
  padding: 1px 7px;
  font-size: 10px;
}

.hera-day .hera-score {
  font-size: 10px;
  padding: 0 6px;
  margin-inline-start: 4px;
}

.hera-week {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hera-week__day {
  min-height: 120px;
  padding: 12px;
}

.hera-week__day.is-today {
  background: #f6efe4;
  border-color: var(--gold);
  box-shadow: inset 0 3px 0 var(--gold);
}

.hera-week__day.is-today .hera-week__head strong {
  color: var(--gold);
}

.hera-day.is-today {
  box-shadow: inset 0 3px 0 var(--gold);
}

.hera-week__head {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.hera-week__head span {
  color: var(--muted);
  font-size: 12px;
}

.hera-week__count {
  display: block;
  color: var(--teal);
  font-size: 14px;
  font-weight: 500;
}

.hera-month__head,
.hera-month {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.hera-month__head {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.hera-month__cell {
  min-height: 96px;
  background: var(--white);
  border-radius: 16px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hera-month__cell span,
.hera-month__cell em {
  font-style: normal;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.hera-month__cell.is-empty span {
  color: rgba(109, 103, 95, 0.7);
}

.hera-month__cell.is-today {
  background: #f6efe4;
  box-shadow: inset 0 0 0 2px var(--gold);
}

.hera-month__cell.is-today strong {
  color: var(--gold);
}

.hera-month__cell.is-blank {
  background: transparent;
}

.hera-time {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hera-time .hera-input {
  min-width: 0;
}

.hera-time select.hera-input {
  width: 108px;
  flex-shrink: 0;
}

.hera-line-next {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.hera-line-next:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.hera-line-next__name {
  min-width: 160px;
}

.hera-line-next__name span,
.hera-line-next__queue span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hera-line-next__queue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.hera-line-next__queue a {
  background: rgba(164, 128, 80, 0.1);
  border-radius: 12px;
  padding: 8px 10px;
  min-width: 140px;
}

.hera-line-next__queue em {
  display: block;
  font-style: normal;
  color: var(--gold);
  font-size: 12px;
}

.hera-wait {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

@media (max-width: 1199.98px) {
  .hera-week,
  .hera-month,
  .hera-month__head {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hera-month__head {
    display: none;
  }
}

.hera-sidebar__foot a {
  color: var(--cream);
  display: inline-block;
  margin-top: 6px;
}

.hera-main {
  margin-right: var(--sidebar);
  min-height: 100vh;
  padding: 28px 32px 48px;
}

.hera-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

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

.hera-count {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--gold-soft);
  border: 1px solid rgba(164, 128, 80, 0.28);
  color: #7a5e38;
  font-size: 13px;
  font-weight: 600;
}

.hera-kicker {
  color: var(--gold);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
  margin-bottom: 6px;
}

.hera-kicker.mb-0 {
  margin-bottom: 0;
}

.hera-title {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  margin: 0;
  line-height: 1.45;
  letter-spacing: -0.02em;
}

.hera-menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--white);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  color: var(--teal);
}

.hera-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  height: 100%;
}

.hera-card--flush {
  padding: 0;
  overflow: hidden;
}

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

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: inherit;
}

.hera-card__head h2,
.hera-section-title,
.hera-card h3,
.hera-card .h4 {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

.hera-stat {
  padding: 20px 18px 16px;
}

.hera-stat__top,
.hera-kpi__head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: nowrap;
}

.hera-kpi {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-height: 0;
  padding: 18px 18px 16px;
}

.hera-stat__value,
.hera-stat__hint,
.hera-stat__value + .hera-muted,
.hera-stat__value + p,
.hera-stat .hera-muted {
  text-align: center;
}

.hera-kpi__head .hera-icon,
.hera-stat__top .hera-icon {
  width: 32px;
  height: 32px;
  font-size: 14px;
}

.hera-kpi__head .hera-stat__label,
.hera-kpi__head .hera-kicker,
.hera-stat__top .hera-kicker {
  margin: 0;
  line-height: 1.3;
}

.hera-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(164, 128, 80, 0.28);
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
  background: rgba(164, 128, 80, 0.06);
}

.hera-icon--teal {
  border-color: rgba(0, 44, 60, 0.16);
  color: var(--teal);
  background: rgba(0, 44, 60, 0.05);
}

.hera-stat__value,
.hera-num {
  font-family: "Vazirmatn", sans-serif;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

.hera-stat__value {
  font-size: 22px;
  font-weight: 600;
  color: var(--teal);
  line-height: 1.35;
}

.hera-stat__label {
  margin-top: 10px;
  font-weight: 600;
  font-size: 14px;
}

.hera-stat__hint {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.hera-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  background: var(--cream);
  color: var(--ink);
  white-space: nowrap;
}

.hera-chip--gold {
  background: var(--gold-soft);
  color: #7a5e38;
}

.hera-chip--teal {
  background: rgba(0, 44, 60, 0.08);
  color: var(--teal);
}

.hera-chip--wait {
  background: #f4efe4;
  color: #8a6a32;
}

.hera-chip--run {
  background: rgba(0, 44, 60, 0.1);
  color: var(--teal);
}

.hera-chip--ok {
  background: #edf3ee;
  color: #2f5d3a;
}

.hera-chip--off {
  background: #f3eeee;
  color: #7a3d3d;
}

.hera-table {
  width: 100%;
  margin: 0;
}

.hera-table th {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding: 12px 16px;
  background: transparent;
}

.hera-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  font-size: 14px;
}

.hera-table tr:last-child td {
  border-bottom: 0;
}

.hera-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--teal);
  color: var(--cream);
  font-size: 12px;
  flex-shrink: 0;
}

.hera-avatar--gold {
  background: var(--gold);
  color: var(--white);
}

.hera-person {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hera-avatar--lg {
  width: 52px;
  height: 52px;
  font-size: 16px;
}

.hera-profile__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.hera-profile__id {
  flex: 1;
  min-width: 0;
}

.hera-profile__sheet {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 36px;
}

.hera-profile__row {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 12px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: start;
}

.hera-profile__row span {
  color: var(--muted);
  font-size: 13px;
}

.hera-profile__row strong {
  font-weight: 500;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.hera-profile__row--wide {
  grid-column: 1 / -1;
  align-items: start;
}

.hera-profile__row--wide strong {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (max-width: 767.98px) {
  .hera-profile__sheet {
    grid-template-columns: 1fr;
  }
}

.hera-muted {
  color: var(--muted);
  font-size: 13px;
}

.hera-link {
  color: var(--teal);
  font-weight: 500;
}

.hera-link:hover {
  color: var(--gold);
}

.hera-pillars {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
}

.hera-hero {
  background: var(--teal);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.hera-hero::after {
  content: "É";
  position: absolute;
  left: 18px;
  bottom: -28px;
  font-family: "Cormorant Garamond", serif;
  font-size: 160px;
  opacity: 0.09;
  font-style: italic;
}

.hera-hero__en {
  font-family: "Cormorant Garamond", serif;
  letter-spacing: 0.28em;
  font-size: 34px;
}

.hera-hero__tag {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: rgba(238, 235, 231, 0.62);
  margin-top: 4px;
}

.hera-hero p {
  max-width: 36ch;
  margin: 18px 0 0;
  color: rgba(238, 235, 231, 0.82);
  font-size: 14px;
}

.hera-line-card {
  display: flex;
  flex-direction: column;
  min-height: 180px;
}

.hera-line-card h3 {
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  margin: 8px 0 10px;
}

.hera-line-card .hera-muted {
  flex: 1;
}

.hera-search {
  border: 1px solid var(--field-line);
  background: var(--white);
  border-radius: 14px;
  padding: 10px 14px;
  min-width: min(320px, 100%);
}

.hera-search input,
.hera-main .hera-search input {
  border: 0 !important;
  outline: 0;
  width: 100%;
  background: transparent;
  font-family: inherit;
}

.hera-filters a,
.hera-filters button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13px;
  color: var(--ink);
}

.hera-filters a.is-on,
.hera-filters a:hover {
  background: var(--teal);
  color: var(--cream);
  border-color: var(--teal);
}

.hera-bar {
  height: 8px;
  background: var(--cream);
  border-radius: 99px;
  overflow: hidden;
}

.hera-bar > span {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: 99px;
}

.hera-bar--teal > span {
  background: var(--teal);
}

.hera-timeline {
  list-style: none;
  padding: 0;
  margin: 0;
}

.hera-timeline li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 12px;
  padding-bottom: 18px;
}

.hera-dot {
  width: 12px;
  height: 12px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  margin-top: 6px;
  background: var(--white);
}

.hera-file dt {
  font-size: 12px;
  color: var(--muted);
}

.hera-file dd {
  margin: 0 0 14px;
  font-weight: 500;
}

.hera-low {
  color: #8a3b3b;
  font-weight: 600;
}

.offcanvas.hera-offcanvas {
  background: var(--teal);
  color: var(--cream);
  width: min(86vw, 300px);
}

@media (max-width: 991.98px) {
  .hera-sidebar {
    display: none;
  }

  .hera-main {
    margin-right: 0;
    padding: 18px 16px 40px;
  }

  .hera-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hera-pillars {
    grid-template-columns: 1fr;
  }

  .hera-top {
    align-items: center;
  }

  .hera-title {
    font-size: 20px;
  }
}

.hera-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 42px;
  border: 0;
  background: var(--teal);
  color: var(--cream);
  border-radius: 12px;
  padding: 0 16px;
  font-family: inherit;
  font-size: 14px;
  white-space: nowrap;
  line-height: 1;
}

.hera-btn:hover {
  background: var(--teal-2);
  color: var(--cream);
}

.hera-btn--ghost {
  background: var(--white);
  color: var(--teal);
  border: 1px solid var(--line);
}

.hera-btn--ghost:hover {
  background: var(--cream);
  color: var(--teal);
}

.hera-btn--gold {
  background: var(--gold);
  color: #fff;
}

.hera-btn--gold:hover {
  background: #8d6c41;
  color: #fff;
}

.hera-btn--cream {
  background: var(--cream);
  color: var(--teal);
  border: 1px solid rgba(164, 128, 80, 0.35);
}

.hera-btn--cream:hover {
  background: #e4ddd4;
  color: var(--teal);
}

.hera-btn--danger {
  background: #7a3d3d;
  color: #fff;
}

.hera-btn--danger:hover {
  background: #5f2e2e;
  color: #fff;
}

.hera-label {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.hera-req::after {
  content: " *";
  color: #8a3b3b;
}

.hera-input,
.hera-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.hera-main select,
.hera-main textarea,
.hera-login input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]) {
  border: 1px solid var(--field-line);
}

.hera-input {
  width: 100%;
  height: 42px;
  background: var(--white);
  border-radius: 12px;
  padding: 0 12px;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.4;
}

.hera-input:focus,
.hera-main input:not([type="hidden"]):not([type="checkbox"]):focus,
.hera-main select:focus,
.hera-main textarea:focus,
.hera-login input:focus,
.hera-search:focus-within {
  outline: none;
  border-color: var(--gold);
}

select.hera-input {
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  padding-left: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: left 16px center, left 10px center;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

textarea.hera-input {
  height: auto;
  min-height: 96px;
  padding: 10px 12px;
}

.hera-inline-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
}

.hera-inline-actions .hera-btn {
  height: 42px;
  padding: 0 14px;
  white-space: nowrap;
}

.hera-field-error {
  color: #8a3b3b;
  font-size: 12px;
  margin-top: 4px;
}

.hera-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 28px;
  margin-bottom: 6px;
}

.hera-plus {
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  border-radius: 8px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.hera-plus--danger {
  color: #7a3d3d;
}

.hera-password {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hera-password .hera-input {
  flex: 1 1 220px;
}

.hera-password-lights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.hera-light {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
}

.hera-light::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d9d3cb;
}

.hera-light.is-ok {
  color: #2f5d3a;
  border-color: #c5dccb;
  background: #edf3ee;
}

.hera-light.is-ok::before {
  background: #3c8f52;
}

.hera-chip-form {
  margin: 0;
}

.hera-chip button {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0 2px;
  font-size: 14px;
}

.hera-line-add {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hera-btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 12px;
  border-radius: 10px;
}

.hera-row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
}

.hera-actions-cell {
  width: 1%;
  white-space: nowrap;
  text-align: left;
}

.hera-actions-cell form {
  display: inline-flex;
  margin: 0;
}

.hera-row-actions--end {
  flex-wrap: nowrap;
  justify-content: flex-end;
}

.hera-icon-btn {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--teal);
  padding: 0;
  flex-shrink: 0;
}

.hera-icon-btn--danger {
  color: #7a3d3d;
}

button.hera-icon-btn {
  cursor: pointer;
}

.hera-edit-row td {
  background: rgba(238, 235, 231, 0.55);
  padding: 16px 18px 18px;
}

.hera-score {
  display: inline-flex;
  align-items: center;
  margin-inline-start: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: #7a5a2e;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.7;
}

.hera-ledger {
  min-height: 460px;
}

.hera-ledger__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 22px 8px;
}

.hera-ledger__stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 13px;
}

.hera-debt {
  color: #8a3b3b;
  font-weight: 600;
}

.hera-rate-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(circle at 20% 10%, rgba(164, 128, 80, 0.16), transparent 32%),
    var(--cream);
}

.hera-rate-card {
  width: min(460px, 100%);
  text-align: center;
}

.hera-rate-card h1 {
  font-size: 28px;
  margin: 8px 0 12px;
}

.hera-rate {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.hera-rate button {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  font-size: 18px;
}

.hera-rate button:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.hera-table-wrap {
  overflow-x: auto;
}

.hera-table--fit {
  table-layout: fixed;
  width: 100%;
}

.hera-table--fit th,
.hera-table--fit td {
  padding: 10px 8px;
  font-size: 12px;
  vertical-align: middle;
  overflow: hidden;
}

.hera-table--fit th:nth-child(1),
.hera-table--fit td:nth-child(1) { width: 15%; }
.hera-table--fit th:nth-child(2),
.hera-table--fit td:nth-child(2) { width: 10%; }
.hera-table--fit th:nth-child(3),
.hera-table--fit td:nth-child(3) { width: 15%; }
.hera-table--fit th:nth-child(4),
.hera-table--fit td:nth-child(4) { width: 13%; }
.hera-table--fit th:nth-child(5),
.hera-table--fit td:nth-child(5) { width: 12%; }
.hera-table--fit th:nth-child(6),
.hera-table--fit td:nth-child(6) { width: 13%; }
.hera-table--fit th:nth-child(7),
.hera-table--fit td:nth-child(7),
.hera-table--fit td.hera-actions-cell {
  width: 22%;
  overflow: visible;
  white-space: nowrap;
}

.hera-status {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-items: center;
}

.hera-table--fit .hera-chip {
  padding: 2px 7px;
  font-size: 11px;
}

.hera-table--fit .hera-btn--sm {
  height: 28px;
  padding: 0 8px;
  font-size: 11px;
  flex-shrink: 0;
}

.hera-revision {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  background: var(--gold-soft);
  border-radius: 12px;
  padding: 8px 12px;
  margin-bottom: 12px;
}

.hera-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.hera-open-ticket__when {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.hera-open-ticket__date {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
}

.hera-open-ticket__weekday {
  color: var(--gold);
  font-weight: 600;
  font-size: 15px;
}

.hera-open-ticket__when strong {
  font-size: 18px;
  color: var(--teal);
}

.hera-open-ticket__clock {
  font-size: 14px;
  color: var(--gold);
  font-weight: 600;
  background: var(--gold-soft);
  border-radius: 999px;
  padding: 4px 12px;
}

.hera-ticket-form {
  margin-top: 18px;
  padding: 14px 16px 16px;
  background: rgba(238, 235, 231, 0.7);
  border-radius: 16px;
}

.hera-ticket-form__row {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 1fr) 150px;
  grid-template-rows: 18px 42px auto;
  grid-template-areas:
    "amount-label note-label ."
    "amount note submit"
    ". chips .";
  column-gap: 12px;
  row-gap: 6px;
  align-items: stretch;
}

.hera-ticket-form .hera-label {
  margin: 0;
  height: 18px;
  line-height: 18px;
}

.hera-ticket-form__amount-label { grid-area: amount-label; }
.hera-ticket-form__note-label { grid-area: note-label; }
.hera-ticket-form .hera-money { grid-area: amount; }
.hera-ticket-form .hera-note-field { grid-area: note; }
.hera-ticket-form .hera-btn { grid-area: submit; }
.hera-ticket-form .hera-file-chips { grid-area: chips; }

.hera-ticket-form .hera-money,
.hera-ticket-form .hera-note-field,
.hera-ticket-form .hera-btn {
  height: 42px;
}

.hera-ticket-form .hera-btn {
  padding: 0 16px;
}

.hera-file-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.hera-file-chip {
  font-size: 11px;
  color: var(--teal);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: 999px;
  padding: 3px 10px;
}

.hera-visit {
  margin-bottom: 16px;
}

.hera-ticket-line + .hera-ticket-line {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.hera-ticket__form {
  display: grid;
  grid-template-columns: minmax(170px, 0.85fr) minmax(240px, 1.5fr) 150px;
  grid-template-rows: auto 42px;
  column-gap: 12px;
  row-gap: 6px;
  align-items: stretch;
  margin-top: 16px;
}

.hera-ticket__form .hera-label {
  margin: 0;
  height: 18px;
  line-height: 18px;
}

.hera-ticket__form .hera-money,
.hera-ticket__form .hera-note-field,
.hera-ticket__form .hera-btn {
  height: 42px;
}

.hera-ticket__form .hera-btn {
  white-space: nowrap;
  padding: 0 16px;
}

.hera-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 28px;
}

.hera-ticket__history {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.hera-fact {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.hera-fact--wide {
  grid-column: 1 / -1;
}

.hera-fact__label {
  color: var(--muted);
  font-size: 12px;
  padding-top: 2px;
}

.hera-fact__value {
  font-size: 13px;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.hera-fact__list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: var(--muted);
}

.hera-note-field {
  position: relative;
}

.hera-note-field .hera-input {
  padding-left: 42px;
}

.hera-note-field [data-ticket-files] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  overflow: hidden;
}

.hera-clip {
  position: absolute;
  left: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.hera-clip:hover,
.hera-clip.is-open {
  background: var(--gold-soft);
  color: var(--teal);
}

.hera-attach {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 8px;
}

.hera-attach__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  background: var(--cream);
  border-radius: 12px;
  padding: 8px 10px;
}

.hera-attach__item input {
  font-size: 12px;
}

.hera-photos {
  display: flex;
  gap: 10px;
  margin-top: 8px;
  font-size: 12px;
}

.hera-photos a {
  color: var(--gold);
}

.hera-money {
  position: relative;
}

.hera-money .hera-input {
  padding-left: 48px;
}

.hera-money span {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 12px;
}

.hera-hint {
  margin: 8px 0 0;
  font-size: 12px;
}

.hera-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}

.hera-filter > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 1 1 150px;
  min-width: 150px;
}

.hera-filter .hera-label {
  height: 18px;
  line-height: 18px;
  margin-bottom: 6px;
}

.hera-filter .hera-input,
.hera-filter .hera-btn {
  height: 42px;
  width: 100%;
}

.hera-filter__action {
  flex: 0 0 150px;
  min-width: 150px;
}

.hera-filter__wide {
  flex: 2 1 280px;
}

.hera-ticket__form .hera-btn {
  height: 42px;
}

.hera-customer-hint,
.hera-customer-matches button {
  margin-top: 8px;
  width: 100%;
  text-align: right;
  border-radius: 12px;
  border: 1px solid rgba(0, 44, 60, 0.12);
  background: rgba(0, 44, 60, 0.05);
  color: var(--teal);
  font-size: 13px;
  padding: 8px 12px;
}

.hera-customer-matches {
  display: flex;
  flex-direction: column;
}

@media (max-width: 767px) {
  .hera-facts,
  .hera-ticket__form,
  .hera-ticket-form__row,
  .hera-attach {
    grid-template-columns: 1fr;
  }

  .hera-ticket__form .hera-btn,
  .hera-ticket-form .hera-btn {
    width: 100%;
  }

  .hera-ticket-form__row {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    grid-template-areas:
      "amount-label"
      "amount"
      "note-label"
      "note"
      "chips"
      "submit";
  }
}

.hera-table--compact td,
.hera-table--compact th {
  padding: 10px 12px;
}

.hera-login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(300px, 440px) 1fr;
  background:
    radial-gradient(circle at 20% 10%, rgba(164, 128, 80, 0.16), transparent 32%),
    var(--cream);
}

.hera-login__brand {
  position: relative;
  background: var(--teal);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 64px 52px;
}

.hera-login__brand::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(164, 128, 80, 0.7);
  pointer-events: none;
}

.hera-login__mark {
  width: 62px;
  height: 84px;
  color: var(--cream);
  margin-bottom: 32px;
}

.hera-login__en {
  font-family: "Cormorant Garamond", serif;
  font-size: 72px;
  letter-spacing: 0.16em;
  line-height: 0.85;
}

.hera-login__fa {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 400;
}

.hera-login__brand p {
  margin: 26px 0 0;
  letter-spacing: 0.22em;
  font-size: 12px;
  color: var(--gold);
}

.hera-login__panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}

.hera-login__card {
  width: min(460px, 100%);
  background: var(--white);
  border: 1px solid rgba(164, 128, 80, 0.35);
  border-radius: 28px;
  padding: 40px 36px 34px;
  box-shadow: 0 28px 70px rgba(0, 44, 60, 0.08);
}

.hera-login__rule {
  display: block;
  width: 46px;
  height: 2px;
  background: var(--gold);
  margin-bottom: 18px;
}

.hera-login__card .hera-kicker {
  color: var(--gold);
}

.hera-login__card h1 {
  font-family: inherit;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.7;
  color: var(--teal);
  margin: 8px 0 28px;
}

.hera-login__card .hera-input {
  background: var(--cream);
  border-color: var(--field-line);
  min-height: 48px;
  margin-bottom: 14px;
}

.hera-login__card .hera-input:focus {
  outline: none;
  background: var(--white);
  border-color: var(--gold);
}

.hera-login__submit {
  width: 100%;
  justify-content: center;
  margin-top: 12px;
  min-height: 52px;
  background: var(--teal);
}

.hera-login__submit:hover {
  background: var(--gold);
  color: var(--white);
}

.hera-access ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
}

.hera-access li {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 12px;
}

.hera-access label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

@media (max-width: 800px) {
  .hera-login {
    grid-template-columns: 1fr;
  }

  .hera-login__brand {
    min-height: 220px;
  }

  .hera-login__en {
    font-size: 48px;
  }

  .hera-login__card {
    padding: 28px 22px;
  }

  .hera-login__card h1 {
    font-size: 24px;
  }
}

.hera-contract {
  margin: 0 0 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--cream);
}

.hera-contract + .hera-contract {
  margin-top: 4px;
}

.hera-contract__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(164, 128, 80, 0.22);
}

.hera-contract__head strong {
  color: var(--teal);
  font-size: 14px;
}

[data-add-contract] {
  margin: 4px 0 8px;
}

jdp-overlay,
.jdp-overlay,
#jdpOverlay {
  z-index: 80;
}

.jdp-container,
jdp {
  font-family: "Vazirmatn", sans-serif !important;
  direction: rtl;
  z-index: 90;
}

.hera-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.hera-alert {
  border-radius: 14px;
  padding: 12px 16px;
  background: var(--white);
  border: 1px solid var(--line);
}

.hera-alert--ok {
  background: #edf3ee;
  color: #2f5d3a;
}

.hera-alert--off {
  background: #f3eeee;
  color: #7a3d3d;
}

.hera-modal {
  border-radius: 20px;
  border: 1px solid var(--line);
}

.hera-inv-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 14px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hera-inv-nav a {
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hera-inv-nav a i {
  font-size: 13px;
  opacity: 0.85;
}

.hera-inv-nav a.is-active,
.hera-inv-nav a:hover {
  background: var(--teal);
  color: var(--cream);
}

.hera-inv-page .hera-title {
  font-size: 18px;
}

.hera-inv-page .hera-kicker {
  font-size: 11px;
}

.hera-inv-page .hera-section-title,
.hera-inv-page .hera-card__head h2,
.hera-inv-page .hera-card h3 {
  font-size: 13px;
}

.hera-inv-page .hera-muted,
.hera-inv-page .hera-stat__hint {
  font-size: 11px;
}

.hera-inv-page .hera-stat {
  padding: 14px 14px 12px;
}

.hera-inv-page .hera-stat__value {
  font-size: 18px;
}

.hera-inv-page .hera-label {
  font-size: 11px;
  margin-bottom: 4px;
}

.hera-inv-page .hera-input:not(textarea),
.hera-inv-page .hera-main input:not([type="hidden"]):not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]):not([type="file"]),
.hera-inv-page .hera-main select,
.hera-inv-page .hera-btn {
  height: 34px;
  font-size: 12px;
  border-radius: 10px;
}

.hera-inv-page textarea.hera-input,
.hera-inv-page .hera-main textarea {
  height: auto;
  min-height: 64px;
  font-size: 12px;
  border-radius: 10px;
}

.hera-inv-page .hera-btn {
  padding: 0 12px;
}

.hera-inv-page .hera-card {
  padding: 16px;
  border-radius: 16px;
}

.hera-inv-page .hera-card--flush {
  padding: 0;
}

.hera-inv-page .hera-table th {
  font-size: 11px;
  padding: 8px 12px;
}

.hera-inv-page .hera-table td {
  font-size: 12px;
  padding: 9px 12px;
}

.hera-inv-page .hera-filters a,
.hera-inv-page .hera-filters button {
  font-size: 11px;
  padding: 4px 10px;
}

.hera-inv-page .hera-chip {
  font-size: 11px;
  padding: 3px 8px;
}

.hera-inv-page .hera-form-grid {
  gap: 10px 12px;
}

.hera-inv-page .hera-search {
  padding: 6px 10px;
  border-radius: 10px;
  min-width: min(200px, 100%);
}

.hera-inv-page .hera-search input {
  font-size: 12px;
}

.hera-sku {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}

.hera-group {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  border-radius: 8px;
  padding: 2px 7px;
  font-size: 11px;
  letter-spacing: 0.08em;
  background: var(--gold-soft);
  color: #7a5e38;
  font-weight: 600;
}

.hera-inv-empty {
  text-align: center;
  padding: 28px 16px;
}

.hera-inv-empty i {
  font-size: 22px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}

.hera-inv-toolbar {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  overflow-x: auto;
}

.hera-inv-toolbar .hera-filters {
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}

.hera-inv-toolbar .hera-search {
  flex: 0 0 auto;
  min-width: 180px;
  max-width: 260px;
}

.hera-inv-period {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  align-items: end;
  overflow-x: auto;
}

.hera-inv-period > div {
  flex: 0 0 auto;
  min-width: 110px;
}

.hera-inv-period .hera-input {
  min-width: 110px;
  width: 120px;
}

.hera-inv-period__action {
  flex: 0 0 auto;
  min-width: 0;
}

.hera-inv-period__action .hera-btn {
  width: auto;
  min-width: 88px;
}

.hera-inv-return {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 6px 8px 6px 10px;
  border-radius: 12px;
  background: var(--gold-soft);
}

.hera-inv-return .hera-input {
  width: 92px;
  height: 34px;
}

.hera-inv-return .hera-btn {
  height: 34px;
  padding: 0 12px;
}

.hera-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px 16px;
  align-items: end;
}

.hera-form-grid .is-wide {
  grid-column: span 2;
}

.hera-form-grid__action {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  align-items: center;
  padding-top: 4px;
}

.hera-form-grid .hera-check {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: end;
  min-height: 62px;
}

.hera-form-grid .hera-check input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
  vertical-align: middle;
  margin-left: 6px;
}

@media (max-width: 991.98px) {
  .hera-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575.98px) {
  .hera-form-grid {
    grid-template-columns: 1fr;
  }

  .hera-form-grid .is-wide {
    grid-column: auto;
  }

  .hera-search {
    min-width: 0;
    width: 100%;
  }

  .hera-inv-toolbar {
    flex-wrap: wrap;
  }

  .hera-inv-toolbar .hera-filters {
    flex-wrap: wrap;
  }

  .hera-inv-toolbar .hera-search {
    max-width: none;
    width: 100%;
  }

  .hera-inv-period {
    flex-wrap: wrap;
  }

  .hera-table:not(.hera-table--fit):not(.hera-table--inv):not(.hera-table--club):not(.hera-table--dossier) th:nth-child(n + 4),
  .hera-table:not(.hera-table--fit):not(.hera-table--inv):not(.hera-table--club):not(.hera-table--dossier) td:nth-child(n + 4) {
    display: none;
  }
}

.hera-tier--classic .hera-icon {
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
}

.hera-tier--bronze .hera-icon {
  background: rgba(140, 90, 50, 0.16);
  color: #8c5a32;
}

.hera-tier--silver .hera-icon {
  background: rgba(90, 104, 118, 0.16);
  color: #4d5b68;
}

.hera-tier--gold .hera-icon {
  background: var(--gold-soft);
  color: var(--gold);
}

.hera-table--club {
  min-width: 640px;
}

.hera-table--club .hera-club-section {
  background: var(--teal);
  color: var(--cream);
  font-weight: 600;
  vertical-align: middle;
  width: 11rem;
  text-align: center;
  border-bottom: 1px solid rgba(238, 235, 231, 0.12);
  border-left: 1px solid rgba(238, 235, 231, 0.12);
}

.hera-club-result {
  font-weight: 600;
  color: var(--gold);
  white-space: nowrap;
}

.hera-tier-chip--classic {
  background: rgba(32, 32, 32, 0.08);
  color: var(--ink);
}

.hera-tier-chip--bronze {
  background: rgba(140, 90, 50, 0.16);
  color: #8c5a32;
}

.hera-tier-chip--silver {
  background: rgba(90, 104, 118, 0.16);
  color: #4d5b68;
}

.hera-tier-chip--gold {
  background: var(--gold-soft);
  color: #7a5e38;
}

.hera-suggest {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 12px 32px rgba(32, 32, 32, 0.08);
  overflow: hidden;
  max-height: 260px;
  overflow-y: auto;
}

.hera-suggest__item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 10px 14px;
  text-align: right;
  color: var(--ink);
}

.hera-suggest__item span {
  color: var(--muted);
  font-size: 12px;
}

.hera-suggest__item:hover,
.hera-suggest__item:focus {
  background: var(--gold-soft);
}

.hera-switch {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.hera-switch__item {
  padding: 8px 16px;
  border-radius: 10px;
  color: var(--muted);
}

.hera-switch__item.is-active {
  background: var(--teal);
  color: var(--cream);
}

.hera-lead {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.hera-card.hera-lead__aside {
  background: #f3e7da;
  border: 1px solid rgba(164, 128, 80, 0.28);
  text-align: center;
}

.hera-lead__mark {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: 0 auto 12px;
  background: #fbf6f0;
  color: #8d6a3e;
  font-size: 26px;
  border: 1px solid rgba(164, 128, 80, 0.22);
}

.hera-lead__aside > p {
  text-align: center;
}

.hera-lead__steps {
  list-style: none;
  margin: 18px 0 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--line);
  text-align: right;
  direction: rtl;
}

.hera-lead__steps li {
  display: flex;
  flex-direction: row;
  direction: rtl;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-align: right;
}

.hera-lead__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  background: #fbf6f0;
  color: #8d6a3e;
  border: 1px solid rgba(164, 128, 80, 0.22);
}

.hera-lead__label {
  text-align: right;
  line-height: 1.6;
}

.hera-attach-field {
  position: relative;
}

.hera-attach {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  margin-top: 2px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px dashed rgba(164, 128, 80, 0.55);
  background: var(--cream);
  color: var(--teal);
  cursor: pointer;
}

.hera-attach i {
  font-size: 18px;
  color: var(--gold);
}

.hera-attach__input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.hera-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hera-file-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--white);
}

.hera-file-card img,
.hera-file-card__doc {
  display: grid;
  place-items: center;
  width: 100%;
  height: 120px;
  object-fit: cover;
  background: var(--cream);
  color: var(--teal);
  font-size: 28px;
}

.hera-file-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  font-size: 12px;
}

.hera-file-card figcaption span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hera-file-card button {
  border: 0;
  background: transparent;
  color: #7a3d3d;
  padding: 0;
}

.hera-lead__grid {
  display: grid;
  gap: 6px;
}

.hera-lead__grid b {
  color: #7a3d3d;
}

.hera-lead__actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.hera-form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}

.hera-known {
  margin-bottom: 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f4efe4;
  border: 1px solid rgba(164, 128, 80, 0.35);
  color: var(--ink);
}

.hera-known[hidden] {
  display: none;
}

.hera-known strong {
  display: block;
  margin-bottom: 6px;
}

.hera-known a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  color: var(--teal);
}

.hera-choice-row,
.hera-step-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

.hera-choice {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 12px;
  cursor: pointer;
}

.hera-choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.hera-choice:has(input:checked),
.hera-choice.is-on {
  background: var(--gold-soft);
  border-color: rgba(164, 128, 80, 0.45);
  color: #7a5e38;
}

.hera-dossier-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  height: auto;
}

.hera-portrait {
  margin: 0;
}

.hera-portrait label {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: var(--cream);
  border: 1px solid rgba(164, 128, 80, 0.35);
  cursor: pointer;
  font-size: 36px;
  line-height: 1;
}

.hera-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hera-portrait input {
  display: none;
}

.hera-dossier-head__name {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.hera-dossier-head__name strong {
  font-size: 22px;
}

.hera-dossier-head__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.hera-profile-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  height: auto;
  flex-wrap: nowrap;
}

.hera-profile-head .hera-person {
  flex: 0 1 auto;
  min-width: 0;
  max-width: 42%;
}

.hera-profile-head .hera-person > div {
  min-width: 0;
  flex: 1;
}

.hera-profile-head .hera-dossier-head__meta {
  flex-wrap: nowrap;
  overflow: hidden;
  min-width: 0;
}

.hera-profile-head .hera-dossier-head__meta > span {
  white-space: nowrap;
  flex-shrink: 0;
}

.hera-profile-address {
  display: block;
  margin: 4px 0 6px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}

.hera-stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  flex: 1 1 auto;
  min-width: 0;
}

.hera-stat-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  min-width: 0;
}

.hera-stat-card i {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--white);
  color: var(--gold);
  flex-shrink: 0;
  font-size: 18px;
}

.hera-stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.hera-stat-card strong {
  display: block;
  margin-top: 4px;
  color: var(--teal);
  font-size: 18px;
}

.hera-profile-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  margin: 8px 0 16px;
  overflow-x: auto;
}

.hera-profile-tabs a {
  padding: 12px 8px;
  color: var(--muted);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.hera-profile-tabs a.is-active {
  color: var(--teal);
  border-bottom-color: var(--gold);
  font-weight: 600;
}

.hera-dossier-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(90px, 1fr));
  gap: 8px;
}

.hera-dossier-stats div {
  background: var(--cream);
  border-radius: 14px;
  padding: 10px 12px;
  min-width: 96px;
}

.hera-dossier-stats span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.hera-dossier {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.hera-dossier__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: sticky;
  top: 16px;
  height: auto;
}

.hera-dossier__nav a {
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
}

.hera-dossier__nav a.is-active {
  background: var(--gold-soft);
  color: var(--teal);
}

.hera-beauty {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: start;
}

.hera-episode {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  margin-top: 8px;
}

.hera-episode span {
  color: var(--muted);
  font-size: 12px;
}

.hera-episode.is-active {
  background: var(--cream);
  border-color: rgba(164, 128, 80, 0.35);
}

.hera-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}

.hera-photos figure {
  margin: 0;
}

.hera-photos img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--cream);
}

.hera-photos figcaption {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

.hera-note-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}

.hera-note-grid div {
  background: var(--cream);
  border-radius: 14px;
  padding: 12px;
}

.hera-note-grid h3,
.hera-analysis h3 {
  font-size: 13px;
  margin: 0 0 6px;
}

.hera-note-grid p,
.hera-analysis p {
  margin: 0;
}

.hera-analysis h3 {
  margin-top: 16px;
}

.hera-score {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--gold) calc(var(--score) * 1%), rgba(0, 44, 60, 0.08) 0);
  position: relative;
}

.hera-score::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background: var(--white);
}

.hera-score strong,
.hera-score span {
  position: relative;
}

.hera-score strong {
  font-size: 22px;
  color: var(--teal);
  line-height: 1;
}

.hera-score span {
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.hera-analysis__basis {
  color: var(--muted);
  font-size: 12px;
  margin-top: 8px !important;
}

.hera-findings {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.hera-findings li {
  position: relative;
  padding: 6px 16px 6px 0;
  color: var(--ink);
}

.hera-findings li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  position: absolute;
  right: 0;
  top: 12px;
}

.hera-findings li.is-watch::before {
  background: #7a3d3d;
}

.hera-findings li.is-ok::before {
  background: #2f5d3a;
}

.hera-trends {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hera-trends span {
  background: var(--cream);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
}

.hera-dossier-filters {
  display: flex;
  gap: 8px;
  padding: 14px;
}

.hera-dossier-filters .hera-input {
  max-width: 220px;
}

.hera-note-form {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.hera-note-line {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .hera-lead,
  .hera-dossier,
  .hera-beauty,
  .hera-note-grid {
    grid-template-columns: 1fr;
  }

  .hera-dossier-head,
  .hera-dossier-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .hera-profile-head {
    display: grid;
    grid-template-columns: 1fr;
  }

  .hera-stat-cards {
    grid-template-columns: 1fr 1fr;
    width: auto;
    max-width: none;
    flex: none;
  }

  .hera-dossier__nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }

  .hera-dossier__nav a {
    white-space: nowrap;
  }
}
