/* Portable CSS recipes for the October 2026 AI.Цех UI.
   Adapted from platform primitives; ds-* names are the export API.
   Load fonts.css, tokens.css, then this file. JS behavior is supplied separately. */
*, *::before, *::after { box-sizing: border-box; }
html { font-size: 16px; }
body { margin: 0; background: rgb(var(--color-bg-primary)); color: rgb(var(--color-text-primary)); font: 400 15px/1.55 var(--font-ui); font-synthesis-weight: none; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid rgb(var(--color-amber)); outline-offset: 2px; }
::selection { background: rgb(var(--color-amber) / .22); }
.ds-page { max-width: 1280px; margin: auto; padding: 24px 16px; }
.ds-page-title { font-size: 1.75rem; line-height: 1.15; letter-spacing: -.025em; font-weight: 700; text-wrap: balance; }
.ds-card-title { font-size: 1.0625rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 600; }
.ds-body { font-size: .9375rem; line-height: 1.55; }
.ds-card { border: 1px solid rgb(var(--color-border-default)); border-radius: var(--radius-card); background: rgb(var(--color-bg-card)); box-shadow: var(--shadow-card); padding: 20px; transition: box-shadow 200ms, transform 200ms, background-color 200ms; }
.ds-card--large { padding: 24px; }
.ds-card--interactive { cursor: pointer; }
.ds-card--interactive:hover { box-shadow: var(--shadow-hover); }
.ds-inset { border-radius: 18px; background: rgb(var(--color-bg-inset)); }
.ds-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; position: relative; isolation: isolate; overflow: hidden; border: 0; border-radius: 9999px; height: 44px; padding: 0 20px; font-size: 15px; font-weight: 600; line-height: 1.5; white-space: nowrap; text-decoration: none; cursor: pointer; transition: transform 300ms, background-color 300ms, color 300ms, box-shadow 300ms; }
.ds-button--sm { height: 36px; padding: 0 14px; font-size: 14px; }
.ds-button--ink { background: rgb(var(--color-ink)); color: rgb(var(--color-ink-fg)); box-shadow: var(--shadow-btn-ink); --btn-fill: rgb(var(--color-amber)); --btn-fill-fg: rgb(var(--color-amber-fg)); }
.ds-button--orange { background: rgb(var(--color-amber)); color: rgb(var(--color-amber-fg)); box-shadow: var(--shadow-btn-orange); --btn-fill: rgb(var(--color-ink)); --btn-fill-fg: rgb(var(--color-ink-fg)); }
.ds-button--soft { background: rgb(var(--color-bg-soft)); color: rgb(var(--color-text-primary)); --btn-fill: rgb(var(--color-ink)); --btn-fill-fg: rgb(var(--color-ink-fg)); }
.ds-button--ghost { background: transparent; color: rgb(var(--color-text-secondary)); --btn-fill: rgb(var(--color-text-primary) / .07); --btn-fill-fg: rgb(var(--color-text-primary)); }
.ds-button--danger { background: rgb(var(--color-danger) / .1); color: rgb(var(--color-danger)); --btn-fill: rgb(var(--color-danger)); --btn-fill-fg: #fff; }
.ds-button::before { content: ""; position: absolute; z-index: -1; left: var(--btn-ox, 50%); top: var(--btn-oy, 50%); width: var(--btn-od, 260%); aspect-ratio: 1; border-radius: 9999px; background: var(--btn-fill, transparent); transform: translate(-50%, -50%) scale(0); transition: transform 500ms cubic-bezier(.16, 1, .3, 1); pointer-events: none; }
@media (hover: hover) {
  .ds-button:not(:disabled):hover::before { transform: translate(-50%, -50%) scale(1); }
  .ds-button:not(:disabled):hover { color: var(--btn-fill-fg); }
}
.ds-button:focus-visible::before { transform: translate(-50%, -50%) scale(1); }
.ds-button:focus-visible { color: var(--btn-fill-fg); }
.ds-button:not(:disabled):active { transform: scale(.97); }
.ds-button:disabled { opacity: .4; pointer-events: none; }
.ds-label { display: block; margin-bottom: 6px; font-size: 12px; line-height: 16px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--color-text-tertiary)); }
.ds-input { display: block; width: 100%; min-width: 0; border-radius: 10px; border: 1px solid rgb(var(--color-border-default)); background: rgb(var(--color-bg-depth)); color: rgb(var(--color-text-primary)); padding: 10px 16px; font-size: 14px; line-height: 20px; transition: color 150ms, border-color 150ms; }
.ds-input::placeholder { color: rgb(var(--color-text-tertiary)); }
.ds-input:focus { outline: none; border-color: rgb(var(--color-amber)); box-shadow: 0 0 0 1px rgb(var(--color-amber) / .3); }
.ds-status { display: inline-flex; height: 30px; align-items: center; gap: 6px; white-space: nowrap; border-radius: 9999px; padding: 0 12px; font-size: 13.5px; font-weight: 600; }
.ds-status--success { background: rgb(var(--color-success-soft)); color: rgb(var(--color-success-text)); }
.ds-status--accent { background: rgb(var(--color-accent-soft)); color: rgb(var(--color-accent-text-strong)); }
.ds-status--neutral { background: rgb(var(--color-bg-inset)); color: rgb(var(--color-text-secondary)); }
.ds-progress { height: 6px; width: 100%; border-radius: 9999px; overflow: hidden; background: rgb(var(--color-text-primary) / .1); }
.ds-progress > span { display: block; height: 100%; border-radius: inherit; background: rgb(var(--color-amber)); transition: width 500ms; }
.ds-progress--done > span { background: rgb(var(--color-success)); }
@media (min-width: 768px) {
  .ds-page-title { font-size: 2.25rem; line-height: 1.1; letter-spacing: -.03em; }
  .ds-card--large { padding: 28px; }
  .ds-page { padding: 28px 36px 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
