@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur-SemiBold.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Tektur";
  src: url("../fonts/Tektur-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Noah";
  src: url("../fonts/Noah-Regular.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Noah";
  src: url("../fonts/Noah-Medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

@font-face {
  font-family: "Noah";
  src: url("../fonts/Noah-Bold.woff2") format("woff2");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --tut-color-accent: #e30004;
  --tut-color-accent-hover: #b60003;
  --tut-color-accent-soft: #fff0f0;
  --tut-color-text: #2f2f2f;
  --tut-color-muted: #5f6368;
  --tut-color-subtle: #8a8a8a;
  --tut-color-bg: #ffffff;
  --tut-color-surface: #f8f8f8;
  --tut-color-surface-strong: #f0f0f0;
  --tut-color-border: #e5e5e5;
  --tut-color-border-strong: #b9b9b9;
  --tut-color-success: #237a36;
  --tut-color-success-soft: #edf8ef;
  --tut-color-warning: #8a4b00;
  --tut-color-warning-soft: #fff6e8;
  --tut-color-info: #245b95;
  --tut-color-info-soft: #eef5fc;
  --tut-color-danger: #b42318;
  --tut-color-danger-soft: #fff0ee;
  --tut-color-focus: #1d4ed8;
  --tut-font-display: "Tektur", sans-serif;
  --tut-font-body: "Noah", Arial, sans-serif;
  --tut-space-1: 4px;
  --tut-space-2: 8px;
  --tut-space-3: 12px;
  --tut-space-4: 16px;
  --tut-space-5: 20px;
  --tut-space-6: 24px;
  --tut-space-7: 30px;
  --tut-space-8: 40px;
  --tut-space-9: 60px;
  --tut-radius-sm: 4px;
  --tut-radius-md: 10px;
  --tut-radius-lg: 20px;
  --tut-shadow-sm: 0 6px 18px rgb(47 47 47 / 8%);
  --tut-shadow-md: 0 18px 50px rgb(47 47 47 / 16%);
  --tut-transition: 200ms ease;
  --tut-cut: 12px;
  --tut-content-max: 1520px;
}

.tut-page,
.tut-page *,
.tut-kit-shell,
.tut-kit-shell * {
  box-sizing: border-box;
}

.tut-page {
  color: var(--tut-color-text);
  font-family: var(--tut-font-body);
  font-size: 16px;
  line-height: 1.5;
  padding: var(--tut-space-8);
}

.tut-page img,
.tut-kit-shell img {
  display: block;
  max-width: 100%;
}

.tut-page button,
.tut-page input,
.tut-page select,
.tut-page textarea,
.tut-kit-shell button,
.tut-kit-shell input,
.tut-kit-shell select,
.tut-kit-shell textarea {
  font: inherit;
}

.tut-page :focus-visible,
.tut-kit-shell :focus-visible {
  outline: 3px solid var(--tut-color-focus);
  outline-offset: 3px;
}

.tut-visually-hidden {
  border: 0 !important;
  clip: rect(0 0 0 0) !important;
  height: 1px !important;
  margin: -1px !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: absolute !important;
  white-space: nowrap !important;
  width: 1px !important;
}

.tut-title {
  color: var(--tut-color-text);
  font-family: var(--tut-font-display);
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
}

.tut-title--xl {
  font-size: clamp(30px, 4vw, 40px);
}

.tut-title--lg {
  font-size: clamp(24px, 3vw, 30px);
}

.tut-title--md {
  font-size: 24px;
}

.tut-title--sm {
  font-size: 20px;
}

.tut-lead {
  color: var(--tut-color-muted);
  font-size: 18px;
  line-height: 1.55;
  margin: 0;
  max-width: 760px;
}

.tut-text-muted {
  color: var(--tut-color-muted);
}

.tut-text-small {
  font-size: 14px;
}

.tut-stack {
  display: flex;
  flex-direction: column;
}

.tut-stack--2 {
  gap: var(--tut-space-2);
}

.tut-stack--3 {
  gap: var(--tut-space-3);
}

.tut-stack--4 {
  gap: var(--tut-space-4);
}

.tut-stack--6 {
  gap: var(--tut-space-6);
}

.tut-stack--8 {
  gap: var(--tut-space-8);
}

.tut-cluster {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tut-space-3);
}

.tut-cluster--between {
  justify-content: space-between;
}

.tut-grid {
  display: grid;
  gap: var(--tut-space-5);
}

.tut-grid--2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tut-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tut-grid--4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.tut-app-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  min-height: 520px;
}

.tut-sidebar {
  border-right: 1px solid var(--tut-color-border);
  padding: var(--tut-space-7);
}

.tut-sidebar__nav {
  display: flex;
  flex-direction: column;
  gap: var(--tut-space-5);
}

.tut-sidebar__link {
  color: var(--tut-color-text);
  font-family: var(--tut-font-display);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.tut-sidebar__link[aria-current="page"],
.tut-sidebar__link:hover {
  color: var(--tut-color-accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.tut-content {
  min-width: 0;
  padding: var(--tut-space-8);
}

.tut-divider {
  border: 0;
  border-top: 1px solid var(--tut-color-border);
  margin: 0;
}

.tut-button {
  --tut-button-bg: var(--tut-color-text);
  --tut-button-border: var(--tut-color-text);
  --tut-button-color: var(--tut-color-bg);
  align-items: center;
  background: var(--tut-button-bg);
  border: 1px solid var(--tut-button-border);
  border-radius: 0;
  clip-path: polygon(
    0 0,
    calc(100% - var(--tut-cut)) 0,
    100% var(--tut-cut),
    100% 100%,
    var(--tut-cut) 100%,
    0 calc(100% - var(--tut-cut))
  );
  color: var(--tut-button-color);
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  gap: var(--tut-space-2);
  justify-content: center;
  min-height: 52px;
  padding: 12px 28px;
  position: relative;
  text-decoration: none;
  transition:
    background-color var(--tut-transition),
    border-color var(--tut-transition),
    color var(--tut-transition),
    transform var(--tut-transition);
}

.tut-button:hover {
  --tut-button-bg: #151515;
  --tut-button-border: #151515;
}

.tut-button:active {
  transform: translateY(1px);
}

.tut-button--primary {
  --tut-button-bg: var(--tut-color-accent);
  --tut-button-border: var(--tut-color-accent);
}

.tut-button--primary:hover {
  --tut-button-bg: var(--tut-color-accent-hover);
  --tut-button-border: var(--tut-color-accent-hover);
}

.tut-button--secondary {
  --tut-button-bg: var(--tut-color-text);
  --tut-button-border: var(--tut-color-text);
}

.tut-button--ghost {
  --tut-button-bg: transparent;
  --tut-button-border: var(--tut-color-text);
  --tut-button-color: var(--tut-color-text);
}

.tut-button--ghost:hover {
  --tut-button-bg: var(--tut-color-surface-strong);
  --tut-button-border: var(--tut-color-text);
  --tut-button-color: var(--tut-color-text);
}

.tut-button--danger {
  --tut-button-bg: var(--tut-color-danger);
  --tut-button-border: var(--tut-color-danger);
}

.tut-button--danger:hover {
  --tut-button-bg: #8d1b12;
  --tut-button-border: #8d1b12;
}

.tut-button--sm {
  --tut-cut: 8px;
  font-size: 14px;
  min-height: 40px;
  padding: 8px 16px;
}

.tut-button--lg {
  min-height: 60px;
  padding-left: 36px;
  padding-right: 36px;
}

.tut-button--wide {
  width: 100%;
}

.tut-button:disabled,
.tut-button[aria-disabled="true"] {
  --tut-button-bg: var(--tut-color-surface-strong);
  --tut-button-border: var(--tut-color-border);
  --tut-button-color: var(--tut-color-muted);
  cursor: not-allowed;
  opacity: 0.75;
  pointer-events: none;
}

.tut-button__spinner {
  animation: tut-spin 800ms linear infinite;
  border: 2px solid currentcolor;
  border-right-color: transparent;
  border-radius: 50%;
  display: none;
  height: 18px;
  width: 18px;
}

.tut-button--loading .tut-button__spinner {
  display: block;
}

.tut-icon-button {
  align-items: center;
  background: var(--tut-color-surface-strong);
  border: 0;
  color: var(--tut-color-text);
  cursor: pointer;
  display: inline-flex;
  height: 44px;
  justify-content: center;
  padding: 0;
  transition:
    background-color var(--tut-transition),
    color var(--tut-transition);
  width: 44px;
}

.tut-icon-button:hover {
  background: var(--tut-color-accent);
  color: var(--tut-color-bg);
}

.tut-icon {
  fill: none;
  height: 20px;
  stroke: currentcolor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.tut-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tut-label {
  color: var(--tut-color-text);
  font-size: 15px;
  font-weight: 500;
}

.tut-label--required::after {
  color: var(--tut-color-accent);
  content: " *";
}

.tut-input,
.tut-select,
.tut-textarea {
  appearance: none;
  background: var(--tut-color-bg);
  border: 1px solid var(--tut-color-border-strong);
  border-radius: 0;
  color: var(--tut-color-text);
  min-height: 50px;
  padding: 12px 16px;
  transition:
    border-color var(--tut-transition),
    box-shadow var(--tut-transition);
  width: 100%;
}

.tut-input::placeholder,
.tut-textarea::placeholder {
  color: var(--tut-color-muted);
  opacity: 1;
}

.tut-input:hover,
.tut-select:hover,
.tut-textarea:hover {
  border-color: var(--tut-color-text);
}

.tut-input:focus,
.tut-select:focus,
.tut-textarea:focus {
  border-color: var(--tut-color-focus);
  box-shadow: 0 0 0 1px var(--tut-color-focus);
  outline: none;
}

.tut-input:disabled,
.tut-select:disabled,
.tut-textarea:disabled {
  background: var(--tut-color-surface-strong);
  color: var(--tut-color-muted);
  cursor: not-allowed;
}

.tut-input[aria-invalid="true"],
.tut-select[aria-invalid="true"],
.tut-textarea[aria-invalid="true"] {
  border-color: var(--tut-color-danger);
}

.tut-select-wrap {
  position: relative;
}

.tut-select-wrap::after {
  border-bottom: 2px solid var(--tut-color-text);
  border-right: 2px solid var(--tut-color-text);
  content: "";
  height: 8px;
  pointer-events: none;
  position: absolute;
  right: 18px;
  top: 18px;
  transform: rotate(45deg);
  width: 8px;
}

.tut-select {
  padding-right: 46px;
}

.tut-textarea {
  min-height: 120px;
  resize: vertical;
}

.tut-hint,
.tut-error {
  font-size: 14px;
  line-height: 1.35;
}

.tut-hint {
  color: var(--tut-color-muted);
}

.tut-error {
  color: var(--tut-color-danger);
}

.tut-choice {
  align-items: flex-start;
  cursor: pointer;
  display: inline-flex;
  gap: var(--tut-space-3);
  min-height: 44px;
  padding: 10px 0;
  position: relative;
}

.tut-choice__input {
  height: 20px;
  margin: 1px 0 0;
  opacity: 0;
  position: absolute;
  width: 20px;
}

.tut-choice__visual {
  align-items: center;
  background: var(--tut-color-bg);
  border: 1px solid var(--tut-color-border-strong);
  display: inline-flex;
  flex: 0 0 20px;
  height: 20px;
  justify-content: center;
  transition:
    border-color var(--tut-transition),
    background-color var(--tut-transition);
  width: 20px;
}

.tut-choice--radio .tut-choice__visual {
  border-radius: 50%;
}

.tut-choice__input:checked + .tut-choice__visual {
  background: var(--tut-color-accent);
  border-color: var(--tut-color-accent);
}

.tut-choice__input:checked + .tut-choice__visual::after {
  border-bottom: 2px solid var(--tut-color-bg);
  border-right: 2px solid var(--tut-color-bg);
  content: "";
  height: 9px;
  transform: translateY(-1px) rotate(45deg);
  width: 5px;
}

.tut-choice--radio .tut-choice__input:checked + .tut-choice__visual::after {
  background: var(--tut-color-bg);
  border: 0;
  border-radius: 50%;
  height: 8px;
  transform: none;
  width: 8px;
}

.tut-choice__input:focus-visible + .tut-choice__visual {
  outline: 3px solid var(--tut-color-focus);
  outline-offset: 3px;
}

.tut-switch {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--tut-color-text);
  cursor: pointer;
  display: inline-flex;
  gap: var(--tut-space-3);
  min-height: 44px;
  padding: 4px 0;
}

.tut-switch__track {
  background: var(--tut-color-muted);
  border-radius: 24px;
  display: inline-flex;
  height: 26px;
  padding: 3px;
  transition: background-color var(--tut-transition);
  width: 46px;
}

.tut-switch__thumb {
  background: var(--tut-color-bg);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgb(0 0 0 / 30%);
  height: 20px;
  transform: translateX(0);
  transition: transform var(--tut-transition);
  width: 20px;
}

.tut-switch[aria-checked="true"] .tut-switch__track {
  background: var(--tut-color-accent);
}

.tut-switch[aria-checked="true"] .tut-switch__thumb {
  transform: translateX(20px);
}

.tut-card {
  background: var(--tut-color-bg);
  border: 1px solid var(--tut-color-border);
  clip-path: polygon(
    0 0,
    calc(100% - var(--tut-cut)) 0,
    100% var(--tut-cut),
    100% 100%,
    var(--tut-cut) 100%,
    0 calc(100% - var(--tut-cut))
  );
  padding: var(--tut-space-6);
}

.tut-card--surface {
  background: var(--tut-color-surface);
}

.tut-card--dark {
  background: var(--tut-color-text);
  border-color: var(--tut-color-text);
  color: var(--tut-color-bg);
}

.tut-stat {
  display: flex;
  flex-direction: column;
  gap: var(--tut-space-3);
  min-height: 140px;
  justify-content: space-between;
}

.tut-stat__label {
  color: var(--tut-color-muted);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.tut-card--dark .tut-stat__label {
  color: #d8d8d8;
}

.tut-stat__value {
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

.tut-download-card {
  align-items: center;
  display: flex;
  gap: var(--tut-space-5);
}

.tut-download-card__icon {
  align-items: center;
  background: var(--tut-color-success-soft);
  color: var(--tut-color-success);
  display: flex;
  flex: 0 0 52px;
  height: 52px;
  justify-content: center;
}

.tut-download-card__content {
  flex: 1;
  min-width: 0;
}

.tut-badge {
  align-items: center;
  background: var(--tut-color-surface-strong);
  color: var(--tut-color-text);
  display: inline-flex;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
  line-height: 1.2;
  min-height: 28px;
  padding: 5px 10px;
  white-space: nowrap;
}

.tut-badge::before {
  background: currentcolor;
  border-radius: 50%;
  content: "";
  height: 7px;
  width: 7px;
}

.tut-badge--success {
  background: var(--tut-color-success-soft);
  color: var(--tut-color-success);
}

.tut-badge--warning {
  background: var(--tut-color-warning-soft);
  color: var(--tut-color-warning);
}

.tut-badge--danger {
  background: var(--tut-color-danger-soft);
  color: var(--tut-color-danger);
}

.tut-badge--info {
  background: var(--tut-color-info-soft);
  color: var(--tut-color-info);
}

.tut-badge--neutral {
  color: var(--tut-color-muted);
}

.tut-toolbar {
  align-items: end;
  background: var(--tut-color-surface);
  display: grid;
  gap: var(--tut-space-4);
  grid-template-columns: minmax(220px, 1fr) minmax(180px, 260px) auto;
  padding: var(--tut-space-5);
}

.tut-breadcrumbs {
  align-items: center;
  color: var(--tut-color-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: var(--tut-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tut-breadcrumbs li:not(:last-child)::after {
  color: var(--tut-color-subtle);
  content: "/";
  margin-left: var(--tut-space-2);
}

.tut-breadcrumbs a {
  color: inherit;
}

.tut-tabs {
  border-bottom: 1px solid var(--tut-color-border);
  display: flex;
  gap: var(--tut-space-2);
  overflow-x: auto;
}

.tut-tab {
  background: transparent;
  border: 0;
  color: var(--tut-color-muted);
  cursor: pointer;
  font-weight: 700;
  min-height: 48px;
  padding: 10px 18px;
  position: relative;
  white-space: nowrap;
}

.tut-tab[aria-selected="true"] {
  color: var(--tut-color-text);
}

.tut-tab[aria-selected="true"]::after {
  background: var(--tut-color-accent);
  bottom: -1px;
  content: "";
  height: 3px;
  left: 0;
  position: absolute;
  right: 0;
}

.tut-tab-panel {
  padding-top: var(--tut-space-6);
}

.tut-tab-panel[hidden] {
  display: none;
}

.tut-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}

.tut-table {
  border: 1px solid var(--tut-color-border);
  border-collapse: collapse;
  min-width: 720px;
  width: 100%;
}

.tut-table th,
.tut-table td {
  border-bottom: 1px solid var(--tut-color-border);
  padding: 18px 20px;
  text-align: left;
  vertical-align: middle;
}

.tut-table th {
  color: var(--tut-color-muted);
  font-size: 14px;
  font-weight: 500;
}

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

.tut-table tbody tr:hover {
  background: var(--tut-color-surface);
}

.tut-table__number {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.tut-table__amount {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  text-align: right !important;
  white-space: nowrap;
}

.tut-order-card {
  align-items: center;
  border: 1px solid var(--tut-color-border);
  display: grid;
  gap: var(--tut-space-5);
  grid-template-columns: minmax(220px, 1.5fr) minmax(180px, 1fr) auto auto;
  padding: var(--tut-space-6);
}

.tut-order-card + .tut-order-card {
  border-top: 0;
}

.tut-order-card__title {
  font-size: 18px;
  font-weight: 700;
}

.tut-order-card__meta {
  color: var(--tut-color-muted);
  font-size: 14px;
}

.tut-order-card__amount {
  font-size: 20px;
  font-weight: 700;
  white-space: nowrap;
}

.tut-pagination {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--tut-space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tut-pagination__link {
  align-items: center;
  color: var(--tut-color-text);
  display: inline-flex;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  min-width: 44px;
  padding: 0 8px;
  text-decoration: none;
}

.tut-pagination__link[aria-current="page"] {
  background: var(--tut-color-accent);
  color: var(--tut-color-bg);
}

.tut-pagination__link:hover:not([aria-current="page"]) {
  color: var(--tut-color-accent);
}

.tut-alert {
  border-left: 4px solid var(--tut-color-info);
  display: grid;
  gap: var(--tut-space-2);
  grid-template-columns: auto 1fr;
  padding: var(--tut-space-4) var(--tut-space-5);
}

.tut-alert--info {
  background: var(--tut-color-info-soft);
  border-color: var(--tut-color-info);
  color: var(--tut-color-info);
}

.tut-alert--success {
  background: var(--tut-color-success-soft);
  border-color: var(--tut-color-success);
  color: var(--tut-color-success);
}

.tut-alert--warning {
  background: var(--tut-color-warning-soft);
  border-color: var(--tut-color-warning);
  color: var(--tut-color-warning);
}

.tut-alert--danger {
  background: var(--tut-color-danger-soft);
  border-color: var(--tut-color-danger);
  color: var(--tut-color-danger);
}

.tut-alert__content {
  color: var(--tut-color-text);
}

.tut-alert__title {
  color: inherit;
  font-weight: 700;
}

.tut-state {
  align-items: center;
  border: 1px solid var(--tut-color-border);
  display: flex;
  flex-direction: column;
  gap: var(--tut-space-4);
  justify-content: center;
  min-height: 280px;
  padding: var(--tut-space-8);
  text-align: center;
}

.tut-state__icon {
  align-items: center;
  background: var(--tut-color-surface-strong);
  color: var(--tut-color-muted);
  display: flex;
  height: 64px;
  justify-content: center;
  width: 64px;
}

.tut-skeleton {
  animation: tut-skeleton 1.4s ease-in-out infinite;
  background: linear-gradient(
    90deg,
    var(--tut-color-surface-strong) 25%,
    #fafafa 50%,
    var(--tut-color-surface-strong) 75%
  );
  background-size: 200% 100%;
  display: block;
  height: 18px;
  max-width: 100%;
}

.tut-skeleton--title {
  height: 30px;
  width: 48%;
}

.tut-skeleton--text {
  width: 78%;
}

.tut-skeleton--short {
  width: 32%;
}

.tut-modal,
.tut-drawer {
  background: rgb(18 18 18 / 64%);
  inset: 0;
  padding: var(--tut-space-5);
  position: fixed;
  z-index: 1000;
}

.tut-modal[hidden],
.tut-drawer[hidden] {
  display: none;
}

.tut-modal {
  align-items: center;
  justify-content: center;
}

.tut-modal:not([hidden]) {
  display: flex;
}

.tut-modal__dialog {
  background: var(--tut-color-bg);
  box-shadow: var(--tut-shadow-md);
  max-height: calc(100vh - 40px);
  max-width: 620px;
  overflow-y: auto;
  padding: var(--tut-space-8);
  position: relative;
  width: 100%;
}

.tut-modal__close,
.tut-drawer__close {
  position: absolute;
  right: var(--tut-space-4);
  top: var(--tut-space-4);
}

.tut-drawer {
  justify-content: flex-end;
  padding: 0;
}

.tut-drawer:not([hidden]) {
  display: flex;
}

.tut-drawer__panel {
  background: var(--tut-color-bg);
  box-shadow: var(--tut-shadow-md);
  height: 100%;
  max-width: 460px;
  overflow-y: auto;
  padding: var(--tut-space-8);
  position: relative;
  width: 100%;
}

.tut-toast-region {
  bottom: var(--tut-space-5);
  display: flex;
  flex-direction: column;
  gap: var(--tut-space-3);
  max-width: min(400px, calc(100vw - 32px));
  position: fixed;
  right: var(--tut-space-5);
  z-index: 1100;
}

.tut-toast {
  align-items: flex-start;
  background: var(--tut-color-text);
  box-shadow: var(--tut-shadow-md);
  color: var(--tut-color-bg);
  display: flex;
  gap: var(--tut-space-3);
  padding: var(--tut-space-4);
}

.tut-toast[hidden] {
  display: none;
}

.tut-code {
  background: #202020;
  color: #f8f8f8;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: var(--tut-space-5);
  white-space: pre;
}

.tut-code code {
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
  line-height: 1.65;
}

.tut-code-block {
  position: relative;
}

.tut-code-block__copy {
  position: absolute;
  right: 8px;
  top: 8px;
  z-index: 1;
}

.tut-code-block .tut-code-block__copy {
  --tut-button-bg: #202020;
  --tut-button-border: #d8d8d8;
  --tut-button-color: #ffffff;
}

.tut-code-block .tut-code-block__copy:hover {
  --tut-button-bg: #ffffff;
  --tut-button-border: #ffffff;
  --tut-button-color: #202020;
}

.tut-do-dont {
  border-top: 4px solid var(--tut-color-success);
}

.tut-do-dont--dont {
  border-top-color: var(--tut-color-danger);
}

.tut-do-dont ul {
  margin: var(--tut-space-4) 0 0;
  padding-left: 20px;
}

/* Documentation shell: intentionally isolated from reusable component classes. */
.tut-kit-shell {
  background: var(--tut-color-bg);
  color: var(--tut-color-text);
  font-family: var(--tut-font-body);
  font-size: 16px;
  line-height: 1.5;
  margin: 0;
  min-height: 100vh;
}

.tut-kit-skip {
  background: var(--tut-color-text);
  color: var(--tut-color-bg);
  left: 12px;
  padding: 10px 14px;
  position: fixed;
  top: -100px;
  z-index: 2000;
}

.tut-kit-skip:focus {
  top: 12px;
}

.tut-kit-topbar {
  align-items: center;
  background: var(--tut-color-text);
  color: var(--tut-color-bg);
  display: flex;
  height: 72px;
  justify-content: space-between;
  padding: 0 var(--tut-space-7);
  position: sticky;
  top: 0;
  z-index: 100;
}

.tut-kit-brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  font-family: var(--tut-font-display);
  font-size: 20px;
  font-weight: 700;
  gap: var(--tut-space-3);
  text-decoration: none;
}

.tut-kit-brand__mark {
  background: var(--tut-color-accent);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
  color: var(--tut-color-bg);
  padding: 6px 10px;
}

.tut-kit-version {
  color: #d8d8d8;
  font-size: 14px;
  font-weight: 500;
}

.tut-kit-topbar .tut-button--ghost {
  --tut-button-border: #d8d8d8;
  --tut-button-color: var(--tut-color-bg);
}

.tut-kit-topbar .tut-button--ghost:hover {
  --tut-button-bg: var(--tut-color-bg);
  --tut-button-border: var(--tut-color-bg);
  --tut-button-color: var(--tut-color-text);
}

.tut-kit-mobile-menu {
  display: none;
}

.tut-kit-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1920px;
}

.tut-kit-nav {
  align-self: start;
  border-right: 1px solid var(--tut-color-border);
  height: calc(100vh - 72px);
  overflow-y: auto;
  padding: var(--tut-space-7);
  position: sticky;
  top: 72px;
}

.tut-kit-nav__title {
  color: var(--tut-color-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 var(--tut-space-4);
  text-transform: uppercase;
}

.tut-kit-nav__list {
  display: flex;
  flex-direction: column;
  gap: var(--tut-space-1);
  list-style: none;
  margin: 0;
  padding: 0;
}

.tut-kit-nav__link {
  border-left: 3px solid transparent;
  color: var(--tut-color-muted);
  display: block;
  padding: 9px 12px;
  text-decoration: none;
}

.tut-kit-nav__link:hover,
.tut-kit-nav__link.is-active {
  background: var(--tut-color-surface);
  border-left-color: var(--tut-color-accent);
  color: var(--tut-color-text);
}

.tut-kit-nav__footer {
  border-top: 1px solid var(--tut-color-border);
  margin-top: var(--tut-space-7);
  padding-top: var(--tut-space-5);
}

.tut-kit-main {
  min-width: 0;
}

.tut-kit-hero {
  background:
    linear-gradient(135deg, transparent 0 72%, rgb(227 0 4 / 5%) 72% 100%),
    var(--tut-color-surface);
  border-bottom: 1px solid var(--tut-color-border);
  padding: clamp(40px, 6vw, 90px);
}

.tut-kit-hero__eyebrow {
  color: var(--tut-color-accent);
  font-family: var(--tut-font-display);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin: 0 0 var(--tut-space-4);
  text-transform: uppercase;
}

.tut-kit-hero__actions {
  margin-top: var(--tut-space-7);
}

.tut-kit-section {
  border-bottom: 1px solid var(--tut-color-border);
  padding: clamp(36px, 5vw, 72px);
  scroll-margin-top: 72px;
}

.tut-kit-section__header {
  display: grid;
  gap: var(--tut-space-3);
  margin-bottom: var(--tut-space-8);
  max-width: 860px;
}

.tut-kit-kicker {
  color: var(--tut-color-accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tut-kit-specimen {
  border: 1px solid var(--tut-color-border);
  margin-top: var(--tut-space-6);
}

.tut-kit-specimen__label {
  align-items: center;
  background: var(--tut-color-surface);
  border-bottom: 1px solid var(--tut-color-border);
  color: var(--tut-color-muted);
  display: flex;
  font-size: 13px;
  font-weight: 700;
  justify-content: space-between;
  letter-spacing: 0.05em;
  min-height: 44px;
  padding: 8px var(--tut-space-4);
  text-transform: uppercase;
}

.tut-kit-specimen__canvas {
  padding: var(--tut-space-7);
}

.tut-kit-token {
  border: 1px solid var(--tut-color-border);
  overflow: hidden;
}

.tut-kit-token__swatch {
  height: 88px;
}

.tut-kit-token__data {
  display: grid;
  gap: 3px;
  padding: var(--tut-space-4);
}

.tut-kit-token__name {
  font-weight: 700;
}

.tut-kit-token__value {
  color: var(--tut-color-muted);
  font-family: "Cascadia Code", Consolas, monospace;
  font-size: 13px;
}

.tut-kit-type-row {
  align-items: baseline;
  border-bottom: 1px solid var(--tut-color-border);
  display: grid;
  gap: var(--tut-space-5);
  grid-template-columns: 160px 1fr;
  padding: var(--tut-space-5) 0;
}

.tut-kit-type-row:last-child {
  border-bottom: 0;
}

.tut-kit-type-meta {
  color: var(--tut-color-muted);
  font-size: 14px;
}

.tut-kit-spacing {
  align-items: center;
  display: grid;
  gap: var(--tut-space-4);
  grid-template-columns: 70px 1fr;
}

.tut-kit-spacing + .tut-kit-spacing {
  margin-top: var(--tut-space-3);
}

.tut-kit-spacing__bar {
  background: var(--tut-color-accent);
  height: 14px;
}

.tut-kit-footer {
  align-items: center;
  background: var(--tut-color-text);
  color: var(--tut-color-bg);
  display: flex;
  justify-content: space-between;
  padding: var(--tut-space-7);
}

.tut-kit-footer a {
  color: inherit;
}

.tut-kit-note {
  background: var(--tut-color-warning-soft);
  border-left: 4px solid var(--tut-color-warning);
  padding: var(--tut-space-5);
}

.tut-kit-demo-frame {
  border: 1px solid var(--tut-color-border);
  overflow: hidden;
}

.tut-kit-doc-table {
  border-collapse: collapse;
  width: 100%;
}

.tut-kit-doc-table th,
.tut-kit-doc-table td {
  border-bottom: 1px solid var(--tut-color-border);
  padding: 14px 16px;
  text-align: left;
}

.tut-kit-doc-table th {
  color: var(--tut-color-muted);
  font-size: 14px;
}

body.tut-overlay-open {
  overflow: hidden;
}

@keyframes tut-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes tut-skeleton {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (max-width: 1500px) {
  .tut-grid--4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  .tut-grid--3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tut-order-card {
    grid-template-columns: minmax(220px, 1fr) auto;
  }

  .tut-order-card__status,
  .tut-order-card__amount {
    grid-row: 2;
  }
}

@media (max-width: 1000px) {
  .tut-app-layout {
    grid-template-columns: 1fr;
  }

  .tut-sidebar {
    border-bottom: 1px solid var(--tut-color-border);
    border-right: 0;
    overflow-x: auto;
    padding: var(--tut-space-4);
  }

  .tut-sidebar__nav {
    flex-direction: row;
    min-width: max-content;
  }

  .tut-toolbar {
    grid-template-columns: 1fr 1fr;
  }

  .tut-toolbar > :first-child {
    grid-column: 1 / -1;
  }

  .tut-kit-layout {
    grid-template-columns: 1fr;
  }

  .tut-kit-nav {
    background: var(--tut-color-bg);
    box-shadow: var(--tut-shadow-md);
    height: calc(100vh - 72px);
    left: 0;
    max-width: 320px;
    position: fixed;
    top: 72px;
    transform: translateX(-105%);
    transition: transform var(--tut-transition);
    width: 88vw;
    z-index: 90;
  }

  .tut-kit-nav.is-open {
    transform: translateX(0);
  }

  .tut-kit-mobile-menu {
    background: transparent;
    border: 1px solid #5b5b5b;
    color: var(--tut-color-bg);
    cursor: pointer;
    display: inline-flex;
  }
}

@media (max-width: 768px) {
  .tut-page,
  .tut-content {
    padding: var(--tut-space-5);
  }

  .tut-grid--2,
  .tut-grid--3,
  .tut-grid--4 {
    grid-template-columns: 1fr;
  }

  .tut-toolbar {
    grid-template-columns: 1fr;
  }

  .tut-toolbar > :first-child {
    grid-column: auto;
  }

  .tut-table {
    border: 0;
    min-width: 0;
  }

  .tut-table thead {
    display: none;
  }

  .tut-table tbody,
  .tut-table tr,
  .tut-table td {
    display: block;
    width: 100%;
  }

  .tut-table tr {
    border: 1px solid var(--tut-color-border);
    padding: var(--tut-space-4);
  }

  .tut-table tr + tr {
    margin-top: var(--tut-space-3);
  }

  .tut-table td {
    align-items: flex-start;
    border: 0;
    display: grid;
    gap: var(--tut-space-3);
    grid-template-columns: 110px minmax(0, 1fr);
    padding: 8px 0;
    text-align: left !important;
  }

  .tut-table td::before {
    color: var(--tut-color-muted);
    content: attr(data-label);
    font-size: 13px;
    font-weight: 500;
  }

  .tut-order-card {
    align-items: start;
    grid-template-columns: 1fr;
    padding: var(--tut-space-5);
  }

  .tut-order-card__status,
  .tut-order-card__amount {
    grid-row: auto;
  }

  .tut-order-card .tut-button {
    width: 100%;
  }

  .tut-modal,
  .tut-modal__dialog,
  .tut-drawer__panel {
    padding: var(--tut-space-5);
  }

  .tut-modal {
    align-items: flex-end;
    padding: 0;
  }

  .tut-modal__dialog {
    max-height: 92vh;
    max-width: none;
  }

  .tut-kit-topbar {
    padding: 0 var(--tut-space-4);
  }

  .tut-kit-version {
    display: none;
  }

  .tut-kit-hero,
  .tut-kit-section {
    padding: var(--tut-space-7) var(--tut-space-5);
  }

  .tut-kit-specimen__canvas {
    padding: var(--tut-space-4);
  }

  .tut-kit-type-row {
    grid-template-columns: 1fr;
  }

  .tut-kit-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: var(--tut-space-3);
  }
}

@media (max-width: 420px) {
  .tut-button:not(.tut-button--sm) {
    width: 100%;
  }

  .tut-cluster .tut-button {
    flex: 1 1 100%;
  }

  .tut-table td {
    grid-template-columns: 92px minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .tut-kit-topbar {
    height: 64px;
    padding: 0 var(--tut-space-3);
  }

  .tut-kit-brand {
    font-size: 16px;
    gap: var(--tut-space-2);
    white-space: nowrap;
  }

  .tut-kit-brand__mark {
    padding: 5px 8px;
  }

  .tut-kit-topbar .tut-button {
    display: none;
  }

  .tut-kit-nav {
    height: calc(100vh - 64px);
    top: 64px;
  }

  .tut-kit-section {
    scroll-margin-top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .tut-page *,
  .tut-kit-shell *,
  .tut-page *::before,
  .tut-page *::after,
  .tut-kit-shell *::before,
  .tut-kit-shell *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
