body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto',
        'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans',
        'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

code {
    font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
        monospace;
}

.app-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #6b7280;
  font-size: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo--link {
  text-decoration: none;
}

.logo--link:hover .logo__title {
  color: #4f46e5;
}

.logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);
}

.logo__title {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(8px);
}

.app-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
}

.app-header__content {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-layout {
  min-height: 100vh;
  background: #f9fafb;
}

.app-layout__main {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.form-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 16px;
}

.form-item__title {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
}

.form-item__title--required::after {
  content: ' *';
  color: #dc2626;
}

.form-item__control input,
.form-item__control textarea,
.form-item__control select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  box-sizing: border-box;
}

.form-item__control input:focus,
.form-item__control textarea:focus,
.form-item__control select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-item--error .form-item__control input,
.form-item--error .form-item__control textarea,
.form-item--error .form-item__control select {
  border-color: #dc2626;
}

.form-item__help {
  font-size: 12px;
  color: #dc2626;
}

.form-panel {
  max-width: 480px;
  padding: 24px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.form-panel__title {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
}

.form-panel__error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.form-panel__submit {
  margin-top: 8px;
  padding: 10px 20px;
  border: none;
  border-radius: 8px;
  background: #2563eb;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.form-panel__submit:hover {
  background: #1d4ed8;
}

.form-panel__submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.form-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
}

.form-tabs__button {
  flex: 1;
  padding: 8px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  font-size: 14px;
  cursor: pointer;
}

.form-tabs__button--active {
  border-color: #2563eb;
  background: #eff6ff;
  color: #1d4ed8;
  font-weight: 600;
}

.signup-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.signup-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup-form__label {
  font-size: 14px;
  font-weight: 600;
  color: #374151;
}

.signup-form__input {
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
}

.signup-form__input--error {
  border-color: #ef4444;
}

.signup-form__submit {
  margin-top: 4px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.signup-form__submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.signup-form__errors {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.signup-form__error {
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.signup-form__error--email {
  background: #fff7ed;
  color: #c2410c;
}

.signup-form__success {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
  word-break: break-all;
}

.registration-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

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

.registration-page__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.registration-page__back {
  color: #4f46e5;
  font-size: 14px;
  text-decoration: none;
}

.registration-page__back:hover {
  text-decoration: underline;
}

.registration-page__hint {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 14px;
  line-height: 1.5;
}

.registration-page__grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .registration-page__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.registration-page__card {
  padding: 20px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fff;
}

.registration-page__card-title {
  margin: 0 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.app-navigation {
  display: flex;
  align-items: center;
  gap: 12px;
}

.app-navigation__link {
  padding: 6px 12px;
  border-radius: 6px;
  color: #374151;
  font-size: 14px;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.app-navigation__link:hover {
  background: #f3f4f6;
  color: #111827;
}

.app-navigation__link--active {
  background: #eef2ff;
  color: #4338ca;
  font-weight: 600;
}

.app-navigation__user {
  margin-left: 8px;
  font-size: 14px;
  color: #6b7280;
}

.app-navigation__logout {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.app-navigation__logout:hover {
  background: #f3f4f6;
}

.profile-page {
  max-width: 520px;
  margin: 0 auto;
  padding: 32px 16px;
}

.profile-page__email {
  margin: 0 0 16px;
  color: #6b7280;
  font-size: 14px;
}

.profile-page__error {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.operation {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
}

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

.operation__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.operation__amount {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.operation__name {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.operation__date {
  margin: 0 0 12px;
  font-size: 13px;
  color: #9ca3af;
}

.operation__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.operation__description--short {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.operation__edit {
  display: inline-block;
  margin-top: 16px;
  padding: 10px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #f9fafb;
  color: #111827;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
}

.operation__edit:disabled {
  color: #6b7280;
  cursor: not-allowed;
}

.operation__edit:not(:disabled):hover {
  background: #f3f4f6;
}

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

.operation-list__item {
  margin: 0;
}

.operation-list__empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  text-align: center;
}

.operation-list__sentinel {
  height: 1px;
}

.operation-list__loading {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 14px;
  text-align: center;
}

.operations-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

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

.operations-page__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.operations-page__create {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.operations-page__create:hover {
  background: #4338ca;
}

.operations-page__hint {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 14px;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__mask {
  position: absolute;
  inset: 0;
  background: rgba(17, 24, 39, 0.6);
}

.modal__window {
  position: relative;
  z-index: 1;
  width: min(480px, calc(100vw - 32px));
  min-height: 200px;
  padding: 32px 24px 24px;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.modal__close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 8px;
  background: #f3f4f6;
  color: #374151;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.modal__close:disabled {
  cursor: not-allowed;
}

.modal__close:not(:disabled):hover {
  background: #e5e7eb;
}

.modal__content {
  color: #111827;
}

.operation-modal__form {
  box-shadow: none;
  padding: 0;
}

.operation-modal__form .form-panel__title {
  margin-top: 0;
}

.cropped-text {
  width: 100%;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #111827;
  word-break: break-word;
}

.cropped-text-demo {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 720px;
}

.cropped-text-demo__info {
  padding: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #f9fafb;
}

.cropped-text-demo__title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
}

.cropped-text-demo__desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.cropped-text-demo__panel {
  padding: 16px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #ffffff;
  overflow: auto;
  resize: horizontal;
  min-width: 180px;
  max-width: 100%;
  width: 360px;
}

.cropped-text-demo__panel--fixed {
  resize: none;
  width: 280px;
}

.cropped-text-demo__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.product {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

.product--short {
  display: flex;
  flex-direction: column;
  max-width: 280px;
}

.product--full {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 720px;
  padding: 20px;
}

.product__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  background: #f3f4f6;
}

.product__image--large {
  height: 320px;
  border-radius: 10px;
}

.product__body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product__category {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.product__price {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.product__price--large {
  font-size: 24px;
}

.product__name {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #111827;
}

.product__name--large {
  font-size: 22px;
}

.product__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #4b5563;
}

.product__description--short {
  min-height: 1.5em;
}

.add-to-cart--button:not(:disabled),
.add-to-cart__control:not(:disabled),
.cart-item__remove:not(:disabled) {
  cursor: pointer;
}

.add-to-cart--button:disabled,
.add-to-cart__control:disabled,
.cart-item__remove:disabled,
.modal__close:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.add-to-cart--button {
  margin-top: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
}

.add-to-cart--counter {
  display: inline-flex;
  align-items: center;
  margin-top: 8px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  overflow: hidden;
}

.add-to-cart__control {
  width: 36px;
  height: 36px;
  border: none;
  background: #f3f4f6;
  color: #111827;
  font-size: 18px;
  cursor: default;
}

.add-to-cart__input {
  width: 48px;
  height: 36px;
  border: none;
  border-left: 1px solid #d1d5db;
  border-right: 1px solid #d1d5db;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
  background: #ffffff;
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  max-width: 520px;
}

.cart-item__image {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  object-fit: cover;
  background: #f3f4f6;
}

.cart-item__info {
  flex: 1;
  min-width: 0;
}

.cart-item__name {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: #111827;
}

.cart-item__meta {
  margin: 0;
  font-size: 13px;
  color: #6b7280;
}

.cart-item__remove {
  padding: 8px 12px;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
  color: #dc2626;
  font-size: 13px;
  font-weight: 600;
  cursor: default;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-list__item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-list__edit {
  font-size: 13px;
  color: #2563eb;
  text-decoration: none;
}

.product-list__edit:hover {
  text-decoration: underline;
}

.product-list__empty,
.product-list__loading {
  margin: 0;
  padding: 24px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  text-align: center;
}

.product-list__sentinel {
  height: 1px;
}

.products-page {
  max-width: 960px;
  margin: 0 auto;
  padding: 32px 16px;
}

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

.products-page__title {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.products-page__create {
  display: inline-flex;
  align-items: center;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.products-page__create:hover {
  background: #4338ca;
}

.products-page__hint {
  margin: 0 0 24px;
  color: #6b7280;
  font-size: 14px;
}

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

.cart-list__item {
  margin: 0;
}

.cart-list__empty {
  margin: 0;
  padding: 24px;
  border: 1px dashed #d1d5db;
  border-radius: 12px;
  color: #6b7280;
  text-align: center;
}

.cart-list__wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cart-list__checkout {
  align-self: flex-start;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  background: #4f46e5;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.cart-list__checkout:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.cart-list__error {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13px;
}

.cart-list__success {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #047857;
  font-size: 13px;
}

.cart-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 16px;
}

.cart-page__title {
  margin: 0 0 24px;
  font-size: 28px;
  font-weight: 700;
  color: #111827;
}

.forms-app {
  display: flex;
  justify-content: center;
  padding: 32px 16px;
}

.forms-app--authenticated {
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-start;
  justify-content: flex-start;
  max-width: 1040px;
  margin: 0 auto;
}

.forms-app__header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.forms-app__header-hint {
  color: #6b7280;
  font-size: 14px;
}

.forms-app__user {
  font-size: 14px;
  color: #374151;
}

.forms-app__logout {
  padding: 6px 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  background: #fff;
  font-size: 13px;
  cursor: pointer;
}

.forms-app__logout:hover {
  background: #f3f4f6;
}

.forms-app__admin-hint {
  max-width: 420px;
  margin: 16px 0 0;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

.forms-app__registration-link {
  display: block;
  margin-top: 16px;
  color: #4f46e5;
  font-size: 14px;
  text-align: center;
  text-decoration: none;
}

.forms-app__registration-link:hover {
  text-decoration: underline;
}


/*# sourceMappingURL=main.css.map*/