/* Автор проекта — Кутдусов Ильдан. */
:root {
  --pk-canvas: #f5f2e9;
  --pk-surface: #fffdf7;
  --pk-surface-alt: #f2eee3;
  --pk-line: #e0dacb;
  --pk-line-soft: #eae4d7;
  --pk-brand: #19432f;
  --pk-brand-bright: #88a068;
  --pk-brand-soft: #e9eedf;
  --pk-brand-line: #bdcbaa;
  --pk-money: #496c3f;
  --pk-money-soft: #e8eedc;
  --pk-text: #1f2b23;
  --pk-text-mid: #5b6455;
  --pk-text-soft: #838977;
  --pk-warm: #8b742c;
  --pk-warm-soft: #f0e8cb;
}
[hidden] {
  display: none !important;
}
body {
  color: var(--pk-text);
  background: var(--pk-canvas);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
.pk-main-inner {
  max-width: 1120px;
}
.pk-card,
.pk-row {
  background: var(--pk-surface);
  border-color: var(--pk-line);
  box-shadow: 0 5px 18px #332f1d06;
  border-radius: 17px;
}
.pk-h1 {
  color: #202a22;
  font-size: 28px;
  letter-spacing: -0.04em;
}
.pk-h2 {
  color: #253127;
}
.pk-btn {
  border-radius: 11px;
  min-height: 40px;
}
.pk-btn-brand {
  background: linear-gradient(135deg, #24573d, #153728);
  border-color: #19432f;
  box-shadow: 0 3px 8px #0d271819;
}
.pk-btn-ghost {
  background: #f8f6ee;
  border-color: #d8d8c4;
}
.pk-input,
.pk-select,
.pk-textarea {
  border-radius: 10px;
  border-color: #d6d5c8;
  background: #fffef9;
  min-height: 44px;
  color: #263126;
}
.pk-chip {
  border-radius: 9px;
}
.pk-topbar {
  display: flex;
  gap: 14px;
  background: linear-gradient(110deg, #153728, #1b452f);
  color: #fffdf3;
  border: 0;
  padding: 14px 24px;
  min-height: 68px;
}
.app-header-brand {
  font-size: 18px;
  font-weight: 650;
  flex: 1;
}
.app-header-brand small {
  font-size: 11px;
  opacity: 0.65;
  margin-left: 6px;
}
.app-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid #c7ceb29c;
  border-radius: 50%;
  background: #8f986b;
  color: #fffdf5;
  font-size: 15px;
}
.app-bell {
  display: grid;
  place-items: center;
  color: #ecefdc;
}
.app-bell svg {
  width: 21px;
}
.app-menu {
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  display: grid;
  place-items: center;
}
.app-sidebar {
  display: none;
}
.app-credit {
  font-size: 10px;
  color: #858a79;
  text-align: center;
  padding: 16px 16px 100px;
}
.pk-tabbar {
  background: #143729;
  color: #fff;
  border-top: 1px solid #456044;
  border-radius: 20px 20px 0 0;
  padding-bottom: max(10px, env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px #17332512;
}
.pk-tab {
  color: #c4ccb2;
}
.pk-tab.active {
  color: #fffdf5;
  background: transparent;
}
.pk-tab.active svg {
  color: #e4ebd1;
}
.pk-more-sheet {
  background: #f8f5eb;
  border-radius: 24px 24px 0 0;
  max-height: 85dvh;
  overflow: auto;
}
.pk-nav-link {
  border-radius: 12px;
}
.pk-nav-link:hover {
  background: #e7ecdc;
}
.app-heading {
  margin: 4px 0 26px;
}
.app-heading h1 {
  font-size: 30px;
  letter-spacing: -0.045em;
  font-weight: 750;
  margin: 10px 0 8px;
}
.app-heading p {
  color: #67705d;
  font-size: 13px;
  margin: 0;
}
.app-overline {
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #74825e;
  font-weight: 650;
}
.app-card {
  display: block;
  padding: 22px;
  border: 1px solid #e0dacb;
  border-radius: 17px;
  background: #fffdf7;
  box-shadow: 0 6px 18px #332f1d08;
  margin-bottom: 16px;
  color: inherit;
  text-decoration: none;
}
.app-sidebar nav { scrollbar-width: thin; scrollbar-color: #6f845b transparent; }
.app-sidebar nav::-webkit-scrollbar { width: 5px; }
.app-sidebar nav::-webkit-scrollbar-thumb { background: #6f845b; border-radius: 8px; }
.app-sidebar nav::-webkit-scrollbar-track { background: transparent; }
.app-card h2 {
  font:
    650 17px/1.3 Inter,
    "Segoe UI",
    sans-serif;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}
.app-card p {
  font-size: 14px;
  line-height: 1.6;
}
.app-card-top {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
}
.app-card-top h2 {
  margin-bottom: 0;
}
.app-status {
  padding: 5px 10px;
  background: #e6edd9;
  border-radius: 8px;
  font-size: 11px;
  color: #466039;
  white-space: nowrap;
}
.app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.app-grid > .app-card {
  margin: 0;
}
.app-grid + .app-card {
  margin-top: 20px;
}
.app-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin: 18px 0;
}
.app-form {
  display: grid;
  gap: 14px;
  max-width: 680px;
  margin: 20px 0;
}
.app-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
}
.app-form small,
.app-muted {
  color: #75806c;
  font-size: 12px;
}
.app-section-title {
  font-size: 21px;
  font-weight: 700;
  margin: 28px 0 18px;
}
.app-check {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid #ebe6da;
  font-size: 14px;
}
.app-check button {
  min-width: 38px;
}
.app-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.app-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
}
.app-comment {
  padding: 14px 0;
  border-bottom: 1px solid #eae4d6;
}
.app-comment small {
  font-size: 11px;
  color: #7b8370;
}
.app-comment p {
  margin: 7px 0;
}
.app-preserve {
  white-space: pre-wrap;
}
.app-unread {
  border-left: 4px solid #738c4a;
}
.app-notice small {
  font-size: 11px;
  color: #7a816f;
}
.app-login {
  background:
    radial-gradient(ellipse at 0 100%, #b5bd9c55, transparent 55%), #f6f3ea;
  padding: 28px;
}
.app-login > .pk-card {
  padding: 30px;
  border-radius: 23px;
  box-shadow: 0 14px 55px #18322312;
}
.app-login .flex {
  display: block;
  text-align: center;
}
.app-login-logo {
  width: 180px;
  height: 90px;
  object-fit: contain;
  display: block;
  margin: 0 auto 24px;
}
.app-dashboard-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0 30px;
}
.app-dashboard-links a {
  padding: 20px;
  background: #fffdf7;
  border: 1px solid #dedbc9;
  border-radius: 15px;
  font-weight: 650;
  font-size: 13px;
  display: grid;
  gap: 14px;
}
.app-dashboard-links svg {
  color: #607a3d;
}
.app-author {
  font-size: 11px;
  color: #738065;
}
.app-field-help {
  font-size: 12px;
  line-height: 1.6;
  color: #69745e;
  max-width: 680px;
}
@media (min-width: 1024px) {
  .pk-shell {
    padding-left: 240px;
  }
  .app-sidebar {
    display: flex;
    position: fixed;
    inset: 0 auto 0 0;
    width: 240px;
    flex-direction: column;
    background: linear-gradient(160deg, #17432e, #102d22);
    color: #f7f7eb;
    padding: 26px 16px;
    z-index: 60;
  }
  .app-side-brand {
    display: block;
    margin: 0 10px 24px;
    background: #f8f7f0;
    border-radius: 13px;
    padding: 8px;
  }
  .app-side-brand img {
    width: 100%;
    height: 70px;
    object-fit: contain;
  }
  .app-sidebar nav {
    display: grid;
    gap: 4px;
    overflow: auto;
  }
  .app-sidebar nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 9px;
    font-size: 13px;
  }
  .app-sidebar nav a:hover {
    background: #b7c29422;
  }
  .app-sidebar nav svg {
    width: 17px;
    height: 17px;
    color: #c8d5a6;
  }
  .app-side-bottom {
    margin-top: auto;
    display: grid;
    gap: 6px;
    padding: 22px 10px 0;
    font-size: 13px;
  }
  .app-side-bottom small {
    color: #c1caae;
    font-size: 11px;
  }
  .app-side-bottom .pk-btn {
    margin-top: 10px;
  }
  .pk-tabbar {
    display: none;
  }
  .app-menu {
    display: none;
  }
  .pk-topbar {
    background: #f8f6ee;
    color: #23442e;
    border-bottom: 1px solid #dfdecd;
  }
  .app-bell {
    color: #375638;
  }
  .pk-main {
    padding-top: 30px;
  }
  .app-credit {
    padding-bottom: 20px;
  }
}
@media (max-width: 700px) {
  .pk-main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .app-grid {
    grid-template-columns: 1fr;
  }
  .app-card {
    padding: 18px;
  }
  .app-dashboard-links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .app-heading h1 {
    font-size: 27px;
  }
  .app-photo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app-card-top {
    flex-wrap: wrap;
  }
  .app-status {
    white-space: normal;
  }
  .pk-topbar {
    padding: 14px 18px;
  }
}

.app-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.app-stat-grid .app-card {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 19px 15px;
}
.app-stat-grid svg {
  width: 23px;
  color: #6c823e;
}
.app-stat-grid span {
  font-size: 12px;
  color: #616952;
}
.app-stat-grid strong {
  font-size: 25px;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}
@media (max-width: 390px) {
  .app-stat-grid {
    gap: 7px;
  }
  .app-stat-grid .app-card {
    padding: 15px 10px;
  }
  .app-stat-grid strong {
    font-size: 21px;
  }
  .app-stat-grid span {
    font-size: 11px;
  }
}
