@font-face {
  font-family: FS;
  src: url("/assets/fonts/Vazirmatn-RD-Regular.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: FS;
  src: url("/assets/fonts/Vazirmatn-RD-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--y-ground);
  color: var(--y-text);
  font: 16px/1.9 var(--y-sans);
  min-height: 100vh;
}
a {
  color: var(--y-accent);
  text-underline-offset: 5px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
.fs-button {
  min-height: 46px;
  background: var(--y-accent);
  color: var(--y-on-accent);
  border: 1px solid var(--y-accent);
  padding: 9px 20px;
  border-radius: var(--y-radius-btn);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.secondary {
  background: var(--y-raise);
  color: var(--y-text);
  border-color: var(--y-control);
}
button:disabled {
  cursor: not-allowed;
  background: var(--y-panel);
  color: var(--y-muted);
  border-color: var(--y-rule-2);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--y-accent);
  outline-offset: 3px;
}
.fs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding: 22px max(20px, calc((100vw - 1080px) / 2));
  border-bottom: 1px solid var(--y-rule);
}
.fs-brand {
  display: flex;
  gap: 14px;
  align-items: center;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
}
.fs-brand small {
  display: block;
  font-size: 12px;
  font-weight: 400;
}
.fs-wrap {
  max-width: 1080px;
  margin: auto;
  padding: 36px 20px 70px;
}
.fs-intro {
  padding: 18px 0 28px;
}
.fs-intro h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.5;
  margin: 8px 0;
}
.fs-intro p {
  margin: 8px 0;
}
.eyebrow {
  font-size: 13px;
  color: var(--y-muted);
}
#fs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  border-bottom: 1px solid var(--y-rule);
  padding-bottom: 24px;
  margin-bottom: 28px;
}
#fs-nav a {
  padding: 8px 14px;
  border: 1px solid var(--y-control);
  border-radius: var(--y-radius-btn);
  text-decoration: none;
  color: var(--y-text);
  background: var(--y-raise);
}
#fs-nav a[aria-current="page"] {
  color: var(--y-on-accent);
  background: var(--y-accent);
  border-color: var(--y-accent);
}
.fs-panel {
  background: var(--y-panel);
  border: 1px solid var(--y-rule-2);
  border-radius: var(--y-radius);
  padding: clamp(18px, 4vw, 32px);
  margin: 18px 0;
}
.fs-panel h2 {
  font-size: 23px;
  margin: 0 0 14px;
}
.fs-panel h3 {
  font-size: 18px;
  margin: 0 0 14px;
}
.fs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}
.fs-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 18px;
}
input,
textarea,
select {
  background: var(--y-field);
  color: var(--y-text);
  border: 1px solid var(--y-control);
  border-radius: var(--y-radius-sm);
  padding: 10px 12px;
  min-width: 0;
  width: 100%;
  min-height: 46px;
}
.fs-field small,
.fs-muted {
  font-size: 13px;
  color: var(--y-muted);
}
.fs-wide {
  grid-column: 1/-1;
}
.fs-badge {
  display: inline-block;
  font-size: 13px;
  border: 1px solid var(--y-control);
  border-radius: 5px;
  padding: 2px 9px;
  margin: 4px;
}
.fs-good {
  color: #69d7ad;
}
.fs-error {
  color: #ff8d70;
}
#fs-message:not(:empty) {
  padding: 16px;
  border: 1px solid currentColor;
  background: var(--y-raise);
  margin: 18px 0;
  border-radius: 8px;
}
.fs-list {
  padding-right: 24px;
}
.fs-list li {
  padding: 8px 0;
}
.fs-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}
.fs-table-wrap {
  overflow: auto;
}
.fs-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--y-panel);
}
.fs-table th,
.fs-table td {
  padding: 13px;
  text-align: right;
  border-bottom: 1px solid var(--y-rule);
  white-space: nowrap;
}
.fs-table th {
  font-size: 13px;
}
.fs-pictures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.fs-pictures img {
  width: 100%;
  height: 210px;
  object-fit: contain;
  background: var(--y-ground);
}
.fs-pictures .fs-panel {
  padding: 18px;
}
.fs-rating {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  margin: 18px 0;
}
.fs-rating label span {
  display: block;
  font-size: 13px;
}
.fs-question label {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--y-rule-2);
  margin: 10px 0;
  border-radius: 6px;
  cursor: pointer;
}
.fs-question input {
  width: 20px;
  min-height: 20px;
  flex-shrink: 0;
}
.fs-footer {
  padding: 22px;
  text-align: center;
  border-top: 1px solid var(--y-rule);
  font-size: 13px;
}
.fs-login .login-door,
.fs-login .ysh-body {
  max-width: 500px;
  margin: auto;
}
.fs-login input {
  width: 100%;
}
.fs-clock {
  position: sticky;
  top: 0;
  background: var(--y-accent);
  color: var(--y-on-accent);
  padding: 10px 18px;
  border-radius: 8px;
  z-index: 2;
}
.fs-empty {
  padding: 28px;
  border: 1px dashed var(--y-control);
  border-radius: 10px;
}
.fs-caption {
  font-size: 13px;
  line-height: 1.8;
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}
legend {
  font-weight: 700;
}
@media (max-width: 720px) {
  .fs-header {
    padding: 16px;
    gap: 12px;
  }
  .fs-header > a:last-child {
    display: none;
  }
  .fs-brand {
    font-size: 14px;
  }
  .fs-grid,
  .fs-pictures {
    grid-template-columns: minmax(0, 1fr);
  }
  .fs-wrap {
    padding-top: 16px;
  }
  .fs-intro {
    padding-top: 8px;
  }
  .fs-rating {
    grid-template-columns: minmax(0, 1fr) 85px;
  }
  .fs-pictures img {
    height: 270px;
  }
}

.fs-login .ysh-x {
  display: none;
}

.fs-budget-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-bottom: 1px solid var(--y-rule);
}
.fs-budget-option input {
  width: 22px;
  min-height: 22px;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
#fs-account {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
#fs-account button {
  font-size: 13px;
  padding: 8px 12px;
}
#fs-profile-dialog {
  width: min(720px, calc(100% - 24px));
  max-height: 90dvh;
  overflow: auto;
  border: 1px solid var(--y-rule);
  border-radius: 16px;
  padding: 24px;
  background: var(--y-panel);
  color: var(--y-text);
}
#fs-profile-dialog::backdrop {
  background: rgba(20, 17, 16, 0.6);
}
.fs-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.fs-dialog-head h2 {
  font-size: 24px;
}
#fs-phone-view {
  border-top: 1px solid var(--y-rule);
  padding-top: 16px;
  margin-top: 20px;
}
#fs-profile-status:empty {
  display: none;
}
@media (max-width: 600px) {
  .fs-header {
    align-items: flex-start;
    gap: 12px;
    flex-wrap: wrap;
  }
  #fs-profile-dialog {
    padding: 16px;
  }
}

.fs-brand img,
.fs-academy-logo {
  object-fit: contain;
  background: #f2ebe3;
  border-radius: 8px;
  padding: 4px;
}
.fs-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}
.fs-footer small {
  display: block;
  font-size: 12px;
}
.fs-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 12px;
}
.fs-brand {
  min-width: 0;
  gap: 10px;
}
.fs-brand span {
  min-width: 0;
}
.fs-brand img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}
.fs-brand span {
  font-size: 14px;
}
#fs-account {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
  align-self: start;
}
#fs-account button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 10px;
  border-radius: 50%;
  font-size: 0;
}
#fs-account svg {
  width: 22px;
  height: 22px;
}
#fs-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  padding: 0;
  max-width: 840px;
  margin: 24px auto;
  width: 100%;
}
#fs-nav:empty,
#fs-view:empty {
  display: none;
}
#fs-nav .fs-app-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 0;
  min-height: 148px;
  padding: 16px 10px;
  border: 1px solid var(--y-rule);
  border-radius: 17px;
  background: var(--y-panel);
  color: var(--y-text);
  text-decoration: none;
  text-align: center;
  font: inherit;
  cursor: pointer;
}
.fs-app-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #30221b;
  color: #ff9a58;
}
.fs-app-icon svg {
  width: 27px;
  height: 27px;
}
.fs-app-tile[data-app="team"] .fs-app-icon {
  background: #17312e;
  color: #91d6c5;
}
.fs-app-tile[data-app="quiz"] .fs-app-icon {
  background: #2c2540;
  color: #c7b5ef;
}
.fs-app-tile[data-app="work"] .fs-app-icon {
  background: #182d3d;
  color: #a8cee7;
}
.fs-app-tile[data-app="board"] .fs-app-icon {
  background: #34301b;
  color: #e8d395;
}
.fs-app-tile[data-app="book"] .fs-app-icon {
  background: #203027;
  color: #add2ba;
}
.fs-app-tile strong {
  font-size: 15px;
  line-height: 1.5;
  font-weight: 700;
  min-height: 3em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.fs-app-tile small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--y-muted);
}
.fs-score-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.fs-score-summary > div { padding: 12px; border: 1px solid var(--y-rule); border-radius: 10px; }
.fs-score-summary dt { font-size: 13px; color: var(--y-muted); }
.fs-score-summary dd { margin: 8px 0 0; font-size: 24px; font-weight: 700; }
.fs-score-distribution { width: 100%; table-layout: fixed; font-variant-numeric: tabular-nums; }
.fs-score-distribution caption { text-align: start; font-size: 12px; padding: 8px 0; color: var(--y-muted); }
.fs-score-distribution th, .fs-score-distribution td { padding: 8px 4px; text-align: center; }
.fs-score-cell { position: relative; padding: 6px 2px; isolation: isolate; white-space: nowrap; font-size: 13px; }
.fs-score-cell > i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 5px; z-index: -1; opacity: .3; }
.fs-score-cell > .peer { background: #91d6c5; }
.fs-score-cell > .judge { background: #ff9a58; }
.fs-score-cell small { font-size: 11px; }
.fs-score-criterion { margin: 12px 0; padding: 12px; border: 1px solid var(--y-rule); border-radius: 10px; }
.fs-score-criterion summary { cursor: pointer; line-height: 1.8; }
#fs-nav .fs-app-tile:not(:disabled):hover {
  border-color: var(--y-accent);
  background: var(--y-control);
}
#fs-nav .fs-app-tile:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: var(--y-panel);
  color: var(--y-muted);
  border-color: var(--y-rule);
}
.fs-app-tile:disabled .fs-app-icon {
  filter: grayscale(1);
}
#fs-nav .fs-app-tile:has(.fs-app-completed) {
  opacity: 1;
}
.fs-app-completed {
  position: absolute;
  top: 10px;
  inset-inline-end: 10px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #add2ba;
  color: #203027;
  font-weight: 700;
}
#fs-back {
  display: inline-block;
  margin: 0 0 20px;
  text-decoration: none;
  font-size: 14px;
}
#fs-toast {
  position: fixed;
  z-index: 100;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border-radius: 12px;
  background: #163d32;
  color: #e2fff3;
  box-shadow: 0 6px 24px #0006;
  border: 1px solid #669c85;
  text-align: center;
  font-size: 14px;
  pointer-events: none;
}
#fs-book-dialog {
  width: min(540px, calc(100% - 24px));
  border: 1px solid var(--y-rule);
  border-radius: 16px;
  padding: 24px;
  background: var(--y-panel);
  color: var(--y-text);
}
#fs-book-dialog::backdrop {
  background: #0009;
}
.fs-book-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 22px;
}
.fs-book-options a {
  text-align: center;
}
@media (max-width: 600px) {
  .fs-header {
    display: grid;
    flex-wrap: nowrap;
    padding: 18px 16px;
  }
  .fs-brand {
    gap: 8px;
  }
  .fs-brand span {
    font-size: 12px;
  }
  .fs-brand small {
    font-size: 10px;
  }
  #fs-account {
    gap: 6px;
  }
  #fs-nav {
    gap: 8px;
  }
  #fs-nav .fs-app-tile {
    min-height: 128px;
    padding: 12px 6px;
    border-radius: 13px;
    gap: 6px;
  }
  .fs-app-icon {
    width: 38px;
    height: 38px;
    border-radius: 11px;
  }
  .fs-app-icon svg {
    width: 23px;
    height: 23px;
  }
  .fs-app-tile strong {
    font-size: 12px;
  }
  .fs-app-tile small {
    font-size: 10px;
  }
  .fs-book-options {
    grid-template-columns: 1fr;
  }
  #fs-book-dialog {
    padding: 18px;
  }
}

[data-submit-error]:empty {
  display: none;
}
