@font-face {
  font-family: "Vazirmatn";
  src: url("/fonts/Vazirmatn-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: "Vazirmatn", Tahoma, sans-serif;
  background: #f6f7f3;
  color: #193b38;
  font-size: 14px;
  line-height: 1.9;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
a {
  color: #087b6d;
  text-decoration: none;
}
button {
  border: 0;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #d6e0d9;
  border-radius: 10px;
  padding: 10px 13px;
  background: white;
  color: #163d37;
}
textarea {
  min-height: 115px;
  resize: vertical;
}
label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  margin: 14px 0 5px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.6;
  letter-spacing: -1px;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 15px;
}
small,
.muted {
  color: #78908b;
  font-size: 12px;
}
.loading {
  padding: 70px;
  text-align: center;
}
.shell {
  display: grid;
  grid-template-columns: 242px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #102d2b;
  color: #d9e7de;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 30px 21px;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img {
  width: 44px;
  height: 44px;
  border: 1px solid #36514b;
  border-radius: 14px;
}
.brand strong {
  display: block;
  color: white;
  font-size: 19px;
}
.brand small {
  color: #a6bbb0;
  font-size: 10px;
}
.sidebar nav {
  display: grid;
  gap: 9px;
}
.nav {
  display: flex;
  align-items: center;
  gap: 13px;
  background: transparent;
  text-align: right;
  color: #aabeb6;
  border-radius: 11px;
  padding: 13px 15px;
}
.nav.active {
  background: #254b41;
  color: #d6f1a7;
}
.nav .sym {
  font-size: 19px;
  width: 23px;
  text-align: center;
}
.side-project {
  border: 1px solid #355149;
  border-radius: 14px;
  padding: 17px;
  margin-top: auto;
  font-size: 12px;
  color: #b1c6ba;
}
.side-project strong {
  color: #e4f1de;
  display: block;
  margin-bottom: 8px;
}
.side-project .line {
  margin-top: 11px;
  height: 4px;
  background: #355348;
  border-radius: 4px;
}
.side-project .line span {
  display: block;
  height: 4px;
  background: #b9e484;
  border-radius: 4px;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid #315048;
  padding-top: 20px;
}
.avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: #c4e6aa;
  color: #173d35;
  border-radius: 12px;
  font-weight: bold;
}
.profile strong {
  display: block;
  font-size: 12px;
}
.logout {
  margin-right: auto;
  background: none;
  color: #adbbb4;
}
.main {
  padding: 24px 35px 50px;
  max-width: 1550px;
  width: 100%;
  margin: auto;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e3e8e1;
  padding-bottom: 18px;
  margin-bottom: 28px;
}
.breadcrumb {
  font-size: 12px;
  color: #8a9b91;
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
.date-pill {
  background: white;
  border: 1px solid #e4e9df;
  border-radius: 30px;
  padding: 5px 14px;
  font-size: 11px;
  color: #657f74;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 10px;
  background: #143f36;
  color: white;
  font-size: 12px;
  font-weight: 600;
}
.button.secondary {
  background: white;
  color: #264d40;
  border: 1px solid #d9e3d6;
}
.button.light {
  background: #ebf0e8;
  color: #3d5b4e;
}
.button.danger {
  background: #f9e9e6;
  color: #a74d3e;
}
.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.eyebrow {
  font-size: 11px;
  font-weight: bold;
  letter-spacing: 1px;
  color: #859586;
  margin-bottom: 7px;
}
.hero p {
  color: #799081;
  font-size: 12px;
  margin-bottom: 0;
}
.hero-emblem {
  background: #e5eedc;
  border-radius: 22px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: #415d3c;
  font-size: 12px;
}
.hero-emblem b {
  font-size: 27px;
  color: #294b29;
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin: 24px 0;
}
.stat {
  background: white;
  border: 1px solid #e6ebe1;
  border-radius: 15px;
  padding: 19px 21px;
  position: relative;
}
.stat .icon {
  position: absolute;
  left: 18px;
  top: 17px;
  background: #f0f5e9;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #789357;
}
.stat b {
  display: block;
  font-size: 29px;
  line-height: 1.5;
  margin: 8px 0 2px;
  font-weight: 500;
}
.stat small {
  font-size: 10px;
}
.stat.warn .icon {
  background: #fff0e7;
  color: #c2774e;
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 23px;
  align-items: start;
}
.panel {
  background: white;
  border: 1px solid #e4e9de;
  border-radius: 16px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 19px 22px;
  border-bottom: 1px solid #edf0e9;
}
.panel-head h2 {
  font-size: 15px;
  margin: 0;
}
.panel-body {
  padding: 20px;
}
.tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 17px;
}
.tab {
  border-radius: 9px;
  padding: 7px 13px;
  background: white;
  border: 1px solid #e1e8dc;
  color: #6e8576;
  font-size: 11px;
}
.tab.active {
  background: #214d3d;
  color: white;
  border-color: #214d3d;
}
.toolbar {
  display: flex;
  gap: 9px;
  margin: 15px 0;
}
.toolbar input {
  font-size: 12px;
  max-width: 330px;
}
.toolbar select {
  width: auto;
  min-width: 120px;
  font-size: 12px;
}
.task-list {
  display: grid;
  gap: 10px;
}
.task {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  width: 100%;
  background: white;
  border: 1px solid #e1e8dd;
  border-radius: 12px;
  padding: 16px;
  text-align: right;
  color: inherit;
  transition: 0.15s;
}
.task:hover {
  border-color: #9fb691;
  box-shadow: 0 3px 12px #193b3809;
  transform: translateY(-1px);
}
.task-check {
  margin-top: 3px;
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border: 1.5px solid #cbd9c2;
  border-radius: 7px;
  display: grid;
  place-items: center;
  color: #58843e;
}
.task.done {
  opacity: 0.72;
}
.task.done .task-check {
  background: #e6f1dd;
}
.task-content {
  flex: 1;
  min-width: 0;
}
.task-title {
  font-size: 12px;
  font-weight: 600;
}
.task-meta {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 9px;
  font-size: 10px;
  color: #8a9b8a;
}
.badge {
  padding: 2px 8px;
  border-radius: 6px;
  background: #f0f4eb;
  color: #658050;
  font-size: 10px;
  white-space: nowrap;
}
.badge.overdue {
  background: #fff0e8;
  color: #b47653;
}
.badge.doing {
  background: #eaf1ff;
  color: #547bb0;
}
.badge.blocked {
  background: #fbeceb;
  color: #b15d59;
}
.badge.done {
  background: #e9f3df;
  color: #5b8245;
}
.task-end {
  font-size: 10px;
  color: #93a18e;
  white-space: nowrap;
}
.section-label {
  font-size: 11px;
  color: #8c9d86;
  margin: 17px 0 9px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-label:after {
  content: "";
  height: 1px;
  background: #e8eddf;
  flex: 1;
}
.rail {
  display: grid;
  gap: 18px;
}
.focus-card {
  background: #eaf1df;
  border: 1px solid #dde7ce;
  border-radius: 15px;
  padding: 22px;
}
.focus-card .kicker {
  font-size: 10px;
  color: #84906e;
}
.focus-card h3 {
  font-size: 17px;
  line-height: 1.8;
  margin: 9px 0;
}
.focus-card p {
  font-size: 11px;
  color: #6c7f5a;
}
.focus-card ol {
  padding-right: 17px;
  color: #567047;
  font-size: 11px;
}
.week-progress {
  height: 7px;
  background: #d9e4ce;
  border-radius: 5px;
  overflow: hidden;
  margin: 13px 0;
}
.week-progress span {
  display: block;
  background: #738e48;
  height: 100%;
}
.legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  margin: 12px 0;
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #96ab77;
  margin-left: 6px;
}
.empty {
  padding: 38px 20px;
  text-align: center;
  color: #859779;
  font-size: 12px;
}
.empty strong {
  font-size: 16px;
  display: block;
  color: #547044;
  margin: 7px;
}
.notice {
  background: #fff4e6;
  border: 1px solid #f1d8b7;
  color: #88653d;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  margin: 14px 0;
}
.error {
  color: #a84646;
  font-size: 12px;
  margin-top: 12px;
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  min-height: 100vh;
}
.login-art {
  background: #102d2b;
  color: #dce9d5;
  padding: 80px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.login-art:after {
  content: "";
  position: absolute;
  width: 480px;
  height: 480px;
  border: 1px solid #416344;
  border-radius: 50%;
  left: -150px;
  bottom: -150px;
  box-shadow:
    0 0 0 60px #233f2f,
    0 0 0 120px #1b372d;
}
.login-art > * {
  position: relative;
  z-index: 1;
}
.login-art h1 {
  font-size: 38px;
  color: #d8eea4;
  margin: 45px 0 20px;
}
.login-art p {
  max-width: 340px;
  color: #aac0ae;
  font-size: 13px;
  line-height: 2.5;
}
.login-art .milestone {
  display: flex;
  gap: 30px;
  margin-top: 35px;
  font-size: 11px;
  color: #a6b89f;
}
.login-art .milestone b {
  display: block;
  font-size: 25px;
  color: #dfebcc;
}
.login-main {
  display: grid;
  place-items: center;
  padding: 35px;
}
.login-form {
  width: 100%;
  max-width: 360px;
}
.login-form h2 {
  font-size: 25px;
}
.login-form p {
  font-size: 12px;
  color: #849181;
}
.login-form .button {
  width: 100%;
  margin-top: 22px;
  padding: 13px;
}
.login-note {
  font-size: 10px;
  text-align: center;
  color: #95a18e;
  margin-top: 24px;
}
.login-form input[dir="ltr"] {
  text-align: left;
}
dialog {
  border: 0;
  border-radius: 19px;
  padding: 0;
  width: min(800px, 94vw);
  max-height: 90vh;
  color: #193b38;
  box-shadow: 0 30px 120px #07261a44;
}
dialog::backdrop {
  background: #102d2b80;
  backdrop-filter: blur(3px);
}
.dialog-header {
  padding: 22px 27px;
  background: #f3f6ef;
  border-bottom: 1px solid #e2e8da;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.dialog-header h2 {
  margin-bottom: 6px;
}
.close {
  background: transparent;
  font-size: 24px;
  color: #829477;
  align-self: flex-start;
}
.dialog-body {
  padding: 24px 27px;
}
.task-description {
  white-space: pre-line;
  font-size: 13px;
  line-height: 2.2;
}
.acceptance {
  background: #eff5e7;
  padding: 16px;
  border-radius: 11px;
  font-size: 12px;
  margin: 20px 0;
  white-space: pre-line;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 15px;
}
.full {
  grid-column: 1/-1;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 20px 0;
}
.history {
  border-top: 1px solid #e5ebde;
  margin-top: 25px;
  padding-top: 20px;
}
.event {
  border-right: 2px solid #dfebd3;
  padding: 0 14px 17px;
  font-size: 12px;
}
.event p {
  white-space: pre-line;
  margin: 7px 0;
}
.event summary {
  cursor: pointer;
  font-size: 10px;
  color: #8c9b80;
}
.event pre {
  white-space: pre-wrap;
  word-break: break-word;
  font:
    10px "Vazirmatn",
    Tahoma,
    sans-serif;
  direction: rtl;
}
.roadmap {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.roadmap article {
  background: white;
  border: 1px solid #e0e8d7;
  border-radius: 14px;
  padding: 22px;
}
.roadmap article h3 {
  font-size: 15px;
}
.roadmap article p {
  font-size: 12px;
  color: #7e9073;
}
.roadmap .week-progress {
  background: #e7eddf;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}
.metric {
  padding: 23px;
  border: 1px solid #e2e9d9;
  background: white;
  border-radius: 15px;
}
.metric b {
  font-size: 25px;
  display: block;
  margin-top: 12px;
}
.metric small {
  display: block;
}
.metric-form {
  margin-top: 24px;
  padding: 25px;
}
.metric-form .form-grid {
  grid-template-columns: repeat(3, 1fr);
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  white-space: nowrap;
}
th,
td {
  text-align: right;
  padding: 12px;
  border-bottom: 1px solid #e5ecdd;
}
#toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 50;
  background: #143f36;
  color: white;
  border-radius: 12px;
  box-shadow: 0 6px 24px #153b3740;
  padding: 13px 22px;
  font-size: 12px;
  display: none;
}
#toast.show {
  display: block;
}
.footer-note {
  font-size: 10px;
  color: #98a38e;
  margin-top: 26px;
}
.mobile-menu {
  display: none;
}
.admin-controls {
  padding: 22px;
}
.workdays {
  display: flex;
  gap: 13px;
  flex-wrap: wrap;
}
.workdays label {
  display: flex;
  gap: 5px;
  align-items: center;
}
.workdays input {
  width: auto;
}
.goal-line {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #8b9d7c;
  margin-top: 13px;
}
@media (min-width: 1600px) {
  .main {
    padding: 30px 55px;
  }
}
@media (max-width: 1150px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .rail {
    grid-template-columns: 1fr 1fr;
  }
  .shell {
    grid-template-columns: 205px minmax(0, 1fr);
  }
  .sidebar {
    padding: 25px 15px;
  }
  .main {
    padding: 22px;
  }
  .hero-emblem {
    display: none;
  }
  .stats {
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat .icon {
    display: none;
  }
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: fixed;
    right: 0;
    bottom: 0;
    top: auto;
    height: 65px;
    width: 100%;
    padding: 4px 8px;
    z-index: 20;
    display: block;
  }
  .sidebar > .brand,
  .side-project,
  .profile {
    display: none;
  }
  .sidebar nav {
    display: flex;
    justify-content: space-around;
    gap: 3px;
  }
  .nav {
    display: grid;
    gap: 0;
    justify-items: center;
    padding: 4px 8px;
    font-size: 9px;
    line-height: 1.7;
  }
  .nav .sym {
    font-size: 16px;
  }
  .main {
    padding: 17px 15px 95px;
  }
  .topbar {
    margin-bottom: 20px;
  }
  .date-pill {
    font-size: 9px;
    padding: 3px 9px;
    white-space: nowrap;
  }
  .breadcrumb {
    display: none;
  }
  .top-actions {
    width: 100%;
    justify-content: space-between;
  }
  .top-actions .button {
    padding: 8px 12px;
    white-space: nowrap;
  }
  .hero h1 {
    font-size: 23px;
  }
  .hero p {
    font-size: 11px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 9px;
    margin: 18px 0;
  }
  .stat {
    padding: 13px 15px;
  }
  .stat b {
    font-size: 24px;
  }
  .stat small {
    font-size: 9px;
  }
  .workspace {
    gap: 16px;
  }
  .panel-head {
    padding: 15px;
  }
  .panel-body {
    padding: 13px;
  }
  .task {
    padding: 13px;
    gap: 9px;
  }
  .task-title {
    font-size: 11px;
  }
  .task-end {
    display: none;
  }
  .rail {
    grid-template-columns: 1fr;
  }
  .focus-card {
    padding: 18px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar input {
    max-width: none;
  }
  .toolbar select {
    min-width: 0;
    flex: 1;
  }
  .tabs {
    gap: 5px;
  }
  .tab {
    padding: 6px 10px;
    font-size: 10px;
  }
  .login-layout {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 27px;
    min-height: 230px;
  }
  .login-art h1 {
    font-size: 25px;
    margin: 20px 0 10px;
  }
  .login-art p {
    font-size: 11px;
  }
  .login-art .milestone {
    display: none;
  }
  .login-main {
    padding: 35px 25px;
  }
  .roadmap {
    grid-template-columns: 1fr;
  }
  .metric-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-form .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .dialog-body {
    padding: 20px;
  }
  .dialog-header {
    padding: 19px;
  }
  .dialog-footer {
    flex-wrap: wrap;
  }
  .dialog-footer .button {
    flex: 1;
  }
  .metric {
    padding: 15px;
  }
  .metric b {
    font-size: 22px;
  }
  .top-actions .exit-mobile {
    display: block;
  }
  .footer-note {
    font-size: 9px;
  }
}
