/* Общие цвета и размеры */
:root {
  --purple: #650894;
  --purple-dark: #4e0870;
  --lavender: #f2ecf7;
  --orange: #ff6500;
  --background: #f3f3f6;
  --text: #242033;
  --muted: #746e80;
  --border: #e6e0eb;
  --green: #207443;
  --red: #ae2842;
  --shadow: 0 5px 20px #36234806;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--background); color: var(--text); font: 15px/1.55 Arial, Helvetica, sans-serif; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { opacity: .5; cursor: default; }
a { color: var(--purple); text-decoration: none; }
button, input, select, textarea, a { outline-offset: 4px; }
:focus-visible { outline: 3px solid #a95cd0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 34px; line-height: 1.18; letter-spacing: -1.1px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -.35px; }
h3 { font-size: 17px; line-height: 1.4; }
p + p { margin-top: 12px; }
img, video { max-width: 100%; }
[hidden] { display: none !important; }
.container { width: min(1180px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; top: -100px; left: 20px; z-index: 100; padding: 12px; background: white; }
.skip-link:focus { top: 8px; }
.icon { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.7; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.header { background: white; border-bottom: 1px solid var(--border); }
.header-inner { min-height: 84px; display: flex; align-items: center; gap: 55px; }
.logo { position: relative; display: inline-block; width: 128px; height: 34px; flex-shrink: 0; overflow: hidden; vertical-align: middle; }
.logo-image { position: absolute; width: 192px; max-width: none; height: auto; left: -32px; top: -21px; }
.navigation { display: flex; gap: 30px; align-self: stretch; }
.navigation a { display: flex; align-items: center; border-bottom: 3px solid transparent; padding-top: 3px; color: var(--muted); font-size: 13px; white-space: nowrap; }
.navigation .is-current { border-color: var(--purple); color: var(--purple); font-weight: 700; }
.user { display: flex; align-items: center; gap: 11px; min-width: 0; }
.header .user { margin-left: auto; font-size: 13px; }
.user-name { font-weight: 600; }
.user-caption { color: var(--muted); font-size: 11px; }
.user-menu { position: relative; margin-left: auto; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.dropdown { position: absolute; right: 0; top: 60px; min-width: 210px; padding: 8px; background: white; border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px #30203918; z-index: 5; }
.dropdown a { display: block; padding: 10px 12px; border-radius: 7px; }
.dropdown a:hover { background: var(--lavender); }
.avatar { width: 42px; height: 42px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background-color: #e7d8f0; color: var(--purple); font-weight: 700; overflow: hidden; }
.avatar.large { width: 86px; height: 86px; font-size: 25px; }
.photo { background-image: url('people.png'); background-size: 300% 200%; background-repeat: no-repeat; }
.photo.anna { background-position: 0 0; }
.photo.ivan { background-position: 50% 0; }
.photo.vera { background-position: 100% 0; }
.photo.elena { background-position: 0 100%; }
.photo.products { background-position: 50% 100%; }
.photo.care { background-position: 100% 100%; }
.main { min-height: calc(100vh - 180px); padding-block: 34px 65px; }
.main:focus { outline: none; }
.heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 27px; }
.description { color: var(--muted); margin-top: 9px; font-size: 14px; }
.caption { color: var(--muted); font-size: 12px; }
.eyebrow { color: var(--purple); text-transform: uppercase; letter-spacing: 1.8px; font-size: 10px; font-weight: 700; margin-bottom: 12px; }
.banner { background: #eee4f6; border-radius: 18px; overflow: hidden; display: grid; grid-template-columns: 1.2fr 1fr; margin-bottom: 27px; }
.banner-content { padding: 38px 40px; align-self: center; }
.banner h1 { max-width: 410px; font-size: 36px; }
.banner p { margin: 14px 0 22px; max-width: 420px; }
.banner-image { min-height: 280px; position: relative; background-image: none; overflow: hidden; }
.banner-image::before { content: ''; position: absolute; width: 100%; aspect-ratio: 1; left: 0; top: 0; background-image: url('people.png'); background-size: 300% 200%; background-position: 100% 100%; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 19px; border: 1px solid transparent; border-radius: 7px; background: var(--purple); color: white; font-weight: 600; font-size: 13px; line-height: 1.45; text-align: center; }
.button:hover { background: var(--purple-dark); }
.button.light { background: var(--lavender); color: var(--purple); }
.button.light:hover { background: #e9ddf1; }
.button.outline { background: white; color: var(--purple); border-color: #cbb3db; }
.button.outline:hover { background: #fcf9ff; }
.button.orange { background: var(--orange); }
.button.orange:hover { background: #e95d00; }
.button.danger { background: #fff0f2; color: var(--red); border-color: #f2c9d2; }
.button.small { min-height: 35px; padding: 7px 12px; font-size: 12px; }
.button.wide { width: 100%; }
.button.plain { color: var(--purple); background: transparent; border: 0; padding: 5px; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.columns { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(270px, 1fr); gap: 24px; }
.stack { display: grid; align-content: start; gap: 22px; }
.card { padding: 25px; background: white; border-radius: 14px; box-shadow: var(--shadow); min-width: 0; }
.card-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 20px; }
.card-image { height: 205px; border-radius: 9px; margin-bottom: 15px; }
.card-image.photo { height: 210px; position: relative; background-image: none; overflow: hidden; }
.card-image.photo::before { content: ''; position: absolute; width: 100%; aspect-ratio: 1; left: 0; top: 40%; transform: translateY(-40%); background-image: url('people.png'); background-size: 300% 200%; background-position: inherit; }
.card-image.avatar { width: 100%; height: 210px; border-radius: 9px; font-size: 40px; }
.person-card { padding: 14px; }
.person-card h2 { font-size: 19px; margin: 12px 0 8px; }
.person-card .button { margin-top: 17px; }
.person-card .card-body { padding: 0 5px 5px; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 5px; background: #e7f5ec; color: var(--green); font-size: 11px; font-weight: 600; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.badge.warning { background: #fff0df; color: #a24b00; }
.badge.danger { background: #ffe9ed; color: var(--red); }
.badge.purple { background: var(--lavender); color: var(--purple); }
.meta { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; margin-top: 7px; }
.meta .icon { color: #9853b8; width: 15px; height: 15px; }
.filters { display: flex; gap: 12px; margin-bottom: 24px; align-items: center; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 200px; }
.search .icon { position: absolute; left: 14px; top: 14px; color: var(--muted); }
.search .field-control { padding-left: 42px; }
.filters > .field-control { width: auto; min-width: 180px; }
.field { margin-bottom: 20px; min-width: 0; }
.field-label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.field-label em { font-style: normal; color: var(--red); }
.field-control { width: 100%; min-height: 44px; padding: 11px 13px; border: 1px solid #dfd7e6; border-radius: 7px; color: var(--text); background: white; font-size: 14px; }
.field-control::placeholder { color: #8c8298; }
textarea.field-control { resize: vertical; min-height: 105px; }
.field-control:focus { border-color: var(--purple); }
.field-control[aria-invalid=true] { border-color: var(--red); }
.hint { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.form-error { color: var(--red); font-size: 13px; padding: 10px 0; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.full-width { grid-column: 1 / -1; }
.form-footer { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 8px; display: flex; gap: 12px; flex-wrap: wrap; }
.form-footer .button { min-width: 150px; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; font-size: 14px; }
.checkbox-control { accent-color: var(--purple); width: 18px; height: 18px; margin: 2px 0 0; flex-shrink: 0; }
.checkbox-list { border: 0; padding: 0; margin: 0 0 20px; }
.checkbox-list legend { font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.checkbox-list .checkbox { border-bottom: 1px solid var(--border); }
.upload { padding: 22px; background: #fcf9ff; border: 1px dashed #b694ce; border-radius: 10px; text-align: center; }
.upload .icon { display: block; margin: 0 auto 10px; color: var(--purple); width: 28px; height: 28px; }
.upload .field-control { margin-top: 12px; font-size: 12px; padding: 8px; }
.preview-list { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.preview-item { margin: 0; width: 120px; overflow-wrap: anywhere; }
.preview-item img, .preview-item video { width: 120px; height: 95px; object-fit: cover; border-radius: 8px; }
.preview-item figcaption { font-size: 11px; color: var(--muted); }
.breadcrumbs { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-bottom: 24px; }
.breadcrumbs span::before { content: '›'; margin-right: 9px; color: #ada2b6; }
.profile-header { display: flex; gap: 22px; align-items: center; }
.profile-header .portrait { width: 145px; height: 145px; border-radius: 10px; flex-shrink: 0; }
.profile-header h1 { font-size: 28px; margin-bottom: 14px; }
.profile-header .actions { margin-left: auto; flex-direction: column; align-items: stretch; }
.tabs { display: flex; gap: 29px; border-bottom: 1px solid var(--border); margin: 22px 0; }
.tabs a { padding: 13px 0; font-size: 13px; }
.tabs .is-current { border-bottom: 3px solid var(--purple); font-weight: 700; }
.info { padding: 16px 0; border-bottom: 1px solid var(--border); }
.info:last-child { border-bottom: 0; }
.info-label { font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.info-text { font-size: 14px; white-space: pre-line; overflow-wrap: anywhere; }
.notice { padding: 21px; background: var(--lavender); border-radius: 10px; margin-top: 20px; }
.notice h3 { display: flex; gap: 9px; align-items: center; font-size: 14px; color: var(--purple); }
.notice p { font-size: 13px; margin-top: 10px; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin: 29px 0 19px; }
.row { display: flex; align-items: center; gap: 16px; padding: 17px 0; border-bottom: 1px solid var(--border); }
.row:last-child { border-bottom: 0; }
.row .end { margin-left: auto; }
.date { flex-shrink: 0; width: 66px; padding: 8px; background: var(--lavender); border-radius: 9px; text-align: center; color: var(--purple); font-size: 11px; }
.date strong { display: block; font-size: 26px; line-height: 1.2; }
.report-card { display: flex; align-items: center; gap: 23px; }
.report-body { flex: 1; min-width: 0; }
.report-body p { margin: 8px 0; font-size: 13px; color: var(--muted); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; }
.tag { font-size: 11px; padding: 3px 7px; background: var(--lavender); color: var(--purple); border-radius: 5px; }
.report-image { width: 92px; height: 92px; border-radius: 9px; flex-shrink: 0; }
.task { display: flex; align-items: center; gap: 10px; padding: 10px 0; font-size: 14px; }
.task .icon { color: var(--green); }
.attachment { margin: 0; }
.attachment-image { width: 100%; aspect-ratio: 1; border-radius: 10px; border: 0; display: block; }
.attachment figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.empty { text-align: center; padding: 60px 25px; }
.empty .avatar { margin: 0 auto 20px; }
.empty p { max-width: 450px; margin: 12px auto 24px; color: var(--muted); }
.login { display: grid; grid-template-columns: 1fr 1fr; min-height: 710px; background: white; border-radius: 18px; overflow: hidden; }
.login-content { padding: 45px 48px; }
.login-content .logo { margin-bottom: 55px; }
.login-content form { margin-top: 30px; }
.login-image { background: var(--lavender); display: flex; flex-direction: column; }
.login-image h2 { padding: 42px 42px 0; color: var(--purple); font-size: 34px; }
.login-image .photo { width: 100%; aspect-ratio: 1; margin-top: auto; }
.password { position: relative; }
.password .field-control { padding-right: 50px; }
.password .button { position: absolute; right: 4px; top: 1px; width: 40px; padding: 0; }
.demo-login { padding: 18px; margin-top: 25px; background: var(--lavender); border-radius: 10px; font-size: 12px; }
.sidebar-layout { display: grid; grid-template-columns: 205px minmax(0, 1fr); gap: 30px; }
.sidebar-layout > div { min-width: 0; }
.sidebar { display: grid; align-content: start; gap: 6px; }
.sidebar a { display: flex; align-items: center; gap: 10px; padding: 13px 15px; font-size: 13px; color: var(--muted); border-radius: 8px; }
.sidebar .is-current { color: var(--purple); background: #e9dff2; font-weight: 600; }
.sidebar .eyebrow { padding: 12px 15px; margin: 0; }
.table-wrapper { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.table th { padding: 14px 12px; background: #faf7fd; color: var(--muted); font-size: 11px; font-weight: 500; }
.table td { padding: 18px 12px; border-bottom: 1px solid var(--border); }
.table .field-control { min-width: 150px; font-size: 12px; }
.table td:last-child { text-align: right; }
.table .user { min-width: 170px; }
.alert { padding: 14px 18px; background: #fff0df; color: #894600; border-radius: 9px; font-size: 13px; margin-bottom: 20px; }
.success { background: #e8f6ee; color: var(--green); }
.phone-layout { display: grid; grid-template-columns: 1fr 380px; max-width: 1000px; margin: 0 auto; gap: 70px; }
.phone { border: 6px solid white; border-radius: 30px; background: #eee7f4; overflow: hidden; box-shadow: 0 10px 35px #38254718; }
.phone-header { background: white; padding: 18px 15px; display: flex; align-items: center; gap: 12px; }
.phone-header .avatar { background: var(--purple); color: white; }
.chat { padding: 20px 12px; min-height: 420px; }
.chat-date { text-align: center; color: var(--muted); font-size: 11px; margin-bottom: 20px; }
.message { background: white; padding: 15px; border-radius: 5px 14px 14px; font-size: 13px; margin: 10px 15px 10px 0; }
.message p + p { margin-top: 10px; }
.message.outgoing { background: #e1cff0; margin: 10px 0 10px 70px; border-radius: 14px 5px 14px 14px; }
.message .photo { aspect-ratio: 1; border-radius: 8px; margin: 12px 0; }
.chat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chat-actions .button { background: white; color: var(--purple); font-size: 12px; padding: 10px 6px; }
.phone-footer { background: white; padding: 13px; display: flex; gap: 8px; }
.phone-footer .field-control { min-width: 0; }
.scenario { display: grid; gap: 7px; margin-top: 30px; }
.scenario a { padding: 13px 17px; border-radius: 8px; color: var(--muted); font-size: 14px; }
.scenario .is-current { background: #e9dff2; color: var(--purple); font-weight: 600; }
.catalog { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.catalog .card { color: var(--text); }
.catalog .card:hover { box-shadow: 0 5px 25px #65089412; }
.catalog .caption { margin-top: 9px; }
.footer { border-top: 1px solid var(--border); padding-block: 20px; font-size: 11px; color: var(--muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 15px; align-items: center; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.notification { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); background: #302139; color: white; border-radius: 10px; padding: 14px 23px; font-size: 14px; box-shadow: 0 5px 20px #0002; z-index: 50; max-width: calc(100% - 30px); }
.modal { border: 0; border-radius: 17px; padding: 30px; width: 470px; max-width: calc(100% - 32px); max-height: 90vh; overflow: auto; box-shadow: 0 15px 65px #0003; }
.modal::backdrop { background: #23182d77; }
.modal .description { margin: 14px 0 22px; }
.modal .actions { margin-top: 22px; }
.modal .attachment-image { max-height: 65vh; }
.modal-close { margin-left: auto; }
.loading { padding: 25px; }
.loading-line { height: 16px; background: #e9e2ef; border-radius: 4px; margin: 15px 0; }
.loading-line.short { width: 55%; }
@media (max-width: 1000px) {
  .header-inner { gap: 30px; }
  .navigation { gap: 20px; }
  .user-menu .user-name { display: none; }
  .sidebar-layout { grid-template-columns: 180px minmax(0, 1fr); gap: 20px; }
  .report-image { display: none; }
  .phone-layout { gap: 30px; }
  .banner-content { padding: 30px; }
  .banner h1 { font-size: 31px; }
}
@media (max-width: 760px) {
  .container { width: calc(100% - 36px); }
  .header-inner { flex-wrap: wrap; padding-top: 20px; gap: 20px; }
  .navigation { order: 3; width: 100%; overflow-x: auto; gap: 25px; min-height: 42px; }
  .navigation a { padding-bottom: 12px; }
  .user-menu { margin-left: auto; }
  .dropdown { top: 48px; }
  .main { padding-top: 25px; }
  h1 { font-size: 29px; }
  .heading { align-items: flex-start; flex-direction: column; }
  .banner { grid-template-columns: 1.25fr 1fr; }
  .banner-content { padding: 25px; }
  .banner h1 { font-size: 27px; }
  .banner p { font-size: 13px; }
  .grid, .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
  .columns, .sidebar-layout, .phone-layout { grid-template-columns: 1fr; }
  .sidebar { display: flex; overflow-x: auto; gap: 8px; padding-bottom: 5px; }
  .sidebar a { white-space: nowrap; }
  .sidebar .eyebrow { display: none; }
  .profile-header { flex-wrap: wrap; }
  .profile-header .actions { margin: 0; flex-direction: row; }
  .profile-header .portrait { width: 110px; height: 110px; }
  .profile-header h1 { font-size: 24px; }
  .login-content { padding: 30px; }
  .login-image h2 { padding: 30px; font-size: 29px; }
  .phone { width: min(100%, 380px); margin: auto; }
  .scenario { grid-template-columns: 1fr 1fr; margin-top: 18px; }
  .scenario a { padding: 10px; font-size: 12px; }
}
@media (max-width: 520px) {
  .banner { grid-template-columns: 1fr; }
  .banner-content { padding: 27px; }
  .banner-image { min-height: 0; aspect-ratio: 1; }
  .banner h1 { font-size: 31px; }
  .grid, .catalog, .form-grid, .login { grid-template-columns: 1fr; }
  .full-width { grid-column: auto; }
  .card { padding: 20px; }
  .person-card { padding: 13px; }
  .filters > .field-control, .search { width: 100%; }
  .card-image.photo { height: 220px; }
  .report-card { flex-wrap: wrap; gap: 15px; }
  .report-card > .button { width: 100%; }
  .report-body { flex-basis: calc(100% - 90px); }
  .profile-header { gap: 16px; }
  .profile-header .portrait { width: 85px; height: 85px; }
  .profile-header h1 { font-size: 22px; }
  .profile-header > div:not(.portrait):not(.actions) { flex: 1; min-width: 160px; }
  .profile-header .actions { width: 100%; }
  .tabs { gap: 20px; }
  .login-image { display: none; }
  .login-content .logo { margin-bottom: 35px; }
  .form-footer .button { flex: 1; min-width: 120px; }
  .section-heading { align-items: flex-start; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: no-preference) {
  .main { animation: page-entry .38s cubic-bezier(.22, 1, .36, 1) both; }
  .grid > .card, .catalog > .card, .stack > .report-card {
    animation: card-entry .45s cubic-bezier(.22, 1, .36, 1) both;
  }
  .grid > .card:nth-child(2), .catalog > .card:nth-child(3n + 2), .stack > .report-card:nth-child(2) { animation-delay: .05s; }
  .grid > .card:nth-child(3), .catalog > .card:nth-child(3n), .stack > .report-card:nth-child(3) { animation-delay: .1s; }
  .button { transition: background .2s, box-shadow .2s, transform .2s, border-color .2s; }
  .button:active:not(:disabled) { transform: scale(.97); }
  .button .icon { transition: transform .2s; }
  .field-control { transition: border-color .2s, box-shadow .2s, background .2s; }
  .field-control:focus { box-shadow: 0 0 0 4px #6508940b; }
  .person-card, .catalog .card { transition: box-shadow .25s; }
  .card-image::before, .banner-image::before { transition: scale .6s cubic-bezier(.22, 1, .36, 1); }
  .navigation a, .tabs a, .sidebar a, .scenario a, .dropdown a { transition: color .2s, background .2s, border-color .2s; }
  .navigation a, .tabs a { position: relative; }
  .navigation a::after, .tabs a::after { content: ''; position: absolute; bottom: -3px; height: 3px; left: 0; right: 0; background: var(--purple); transform: scaleX(0); transform-origin: left; transition: transform .25s; }
  .navigation .is-current::after, .tabs .is-current::after { animation: underline-entry .3s ease-out both; }
  .dropdown { transform-origin: top right; animation: menu-entry .2s ease-out both; }
  .modal[open] { animation: modal-entry .25s cubic-bezier(.22, 1, .36, 1) both; }
  .modal[open]::backdrop { animation: backdrop-entry .2s ease-out both; }
  .message { animation: message-entry .3s ease-out both; }
  .message.outgoing { animation-delay: .06s; }
  .preview-item { animation: card-entry .25s ease-out both; }
  .loading-line { background: linear-gradient(100deg, #e9e2ef 20%, #f7f3fa 45%, #e9e2ef 70%); background-size: 220% 100%; animation: loading-shimmer 1.5s ease-in-out infinite; }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .button:hover:not(:disabled):not(.plain) { transform: translateY(-2px); box-shadow: 0 5px 14px #65089416; }
  .button:hover .icon { transform: translateX(2px); }
  .person-card:hover, .catalog .card:hover { box-shadow: 0 12px 30px #36234810; }
  .person-card:hover .card-image::before { scale: 1.035; }
  .banner:hover .banner-image::before { scale: 1.015; }
  .navigation a:hover::after, .tabs a:hover::after { transform: scaleX(1); }
}
@keyframes page-entry {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes card-entry {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes menu-entry {
  from { opacity: 0; transform: translateY(-5px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes modal-entry {
  from { opacity: 0; transform: translateY(12px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes backdrop-entry { from { opacity: 0; } to { opacity: 1; } }
@keyframes underline-entry { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes message-entry {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loading-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
