:root {
    color-scheme: light;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: #24262b;
    background: #f5f3f0;
    font-synthesis: none;
    --red: #a92e43;
    --red-dark: #812236;
    --red-soft: #f8e9ec;
    --ink: #24262b;
    --muted: #757982;
    --line: #e9e5e2;
    --surface: #ffffff;
    --canvas: #f5f3f0;
    --shadow: 0 16px 50px rgb(48 31 34 / 8%);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    min-height: 100vh;
    margin: 0;
    background: var(--canvas);
}

button,
input,
textarea {
    font: inherit;
}

button,
a,
input {
    -webkit-tap-highlight-color: transparent;
}

[hidden] {
    display: none !important;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
    outline: 3px solid rgb(169 46 67 / 26%);
    outline-offset: 2px;
}

/* Inicio de sesión */
.login-screen {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 34px;
    background:
        radial-gradient(circle at 12% 12%, rgb(169 46 67 / 8%), transparent 28%),
        radial-gradient(circle at 90% 86%, rgb(129 34 54 / 7%), transparent 25%),
        #f4f2ef;
}

.login-layout {
    display: grid;
    width: min(1120px, 100%);
    min-height: 650px;
    grid-template-columns: 1.08fr .92fr;
    overflow: hidden;
    border: 1px solid rgb(255 255 255 / 70%);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 28px 80px rgb(56 34 38 / 12%);
}

.login-story {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    overflow: hidden;
    padding: 46px 52px;
    color: #fff;
    background: linear-gradient(145deg, #7f2034 0%, #a92e43 54%, #c24b5d 100%);
}

.story-brand {
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
}

.una-logo {
    display: block;
    width: 88px;
    height: auto;
    flex: none;
    padding: 9px;
    border-radius: 10px;
    background: #fff;
}

.una-logo-small {
    width: 54px;
    padding: 4px;
}

.brand-mark {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 16px;
    background: #fff;
    color: var(--red);
    font-size: 24px;
    font-weight: 850;
    box-shadow: 0 8px 20px rgb(61 13 26 / 18%);
}

.story-copy {
    z-index: 1;
    max-width: 430px;
    margin-top: 75px;
}

.story-kicker {
    margin: 0 0 16px;
    color: rgb(255 255 255 / 73%);
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.story-copy h2 {
    margin: 0;
    font-size: clamp(34px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.story-copy > p:last-child {
    max-width: 355px;
    margin: 18px 0 0;
    color: rgb(255 255 255 / 80%);
    font-size: 15px;
    line-height: 1.7;
}

.story-preview {
    z-index: 1;
    width: min(390px, 100%);
    margin-top: auto;
    padding: 16px;
    border: 1px solid rgb(255 255 255 / 22%);
    border-radius: 18px;
    background: rgb(255 255 255 / 13%);
    box-shadow: 0 18px 45px rgb(64 12 27 / 15%);
    backdrop-filter: blur(10px);
}

.preview-top {
    display: flex;
    align-items: center;
    gap: 5px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgb(255 255 255 / 16%);
}

.preview-top span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgb(255 255 255 / 55%);
}

.preview-top i {
    margin-left: auto;
    color: rgb(255 255 255 / 76%);
    font-size: 10px;
    font-style: normal;
}

.preview-main {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 4px 14px;
}

.preview-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 13px;
    background: #fff;
    color: var(--red);
    font-size: 22px;
}

.preview-main small,
.preview-main strong,
.preview-main em {
    display: block;
}

.preview-main small {
    color: rgb(255 255 255 / 67%);
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .13em;
}

.preview-main strong {
    margin-top: 4px;
    font-size: 14px;
}

.preview-main em {
    margin-top: 3px;
    color: rgb(255 255 255 / 75%);
    font-size: 11px;
    font-style: normal;
}

.preview-lines {
    display: grid;
    grid-template-columns: 1fr .72fr .45fr;
    gap: 7px;
}

.preview-lines span {
    height: 5px;
    border-radius: 5px;
    background: rgb(255 255 255 / 27%);
}

.story-decoration {
    position: absolute;
    border: 1px solid rgb(255 255 255 / 10%);
    border-radius: 50%;
}

.story-decoration-one {
    top: 130px;
    right: -110px;
    width: 320px;
    height: 320px;
}

.story-decoration-two {
    top: 180px;
    right: -60px;
    width: 220px;
    height: 220px;
}

.login-card {
    align-self: center;
    width: 100%;
    max-width: 500px;
    margin: auto;
    padding: 64px 62px 44px;
    background: var(--surface);
}

.eyebrow {
    margin: 0 0 7px;
    color: var(--red);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.login-card h1 {
    margin: 0;
    color: var(--ink);
    font-size: 34px;
    letter-spacing: -.05em;
}

.login-intro {
    margin: 9px 0 28px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.6;
}

.login-card label,
.field label {
    display: block;
    margin: 16px 0 7px;
    color: #4a4b51;
    font-size: 12px;
    font-weight: 700;
}

.login-card input,
.field input,
.field textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid #e1dedd;
    border-radius: 10px;
    outline: none;
    background: #fff;
    color: var(--ink);
    transition: border-color .18s, box-shadow .18s;
}

.login-card input::placeholder,
.field input::placeholder,
.field textarea::placeholder,
.search::placeholder {
    color: #a0a0a4;
}

.login-card input:focus,
.field input:focus,
.field textarea:focus,
.search:focus {
    border-color: var(--red);
    box-shadow: 0 0 0 3px rgb(169 46 67 / 10%);
}

.button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 10px 15px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: var(--red);
    color: #fff;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
    white-space: nowrap;
    transition: background .18s, transform .18s, box-shadow .18s;
}

.button:hover {
    transform: translateY(-1px);
    background: var(--red-dark);
    box-shadow: 0 7px 16px rgb(129 34 54 / 15%);
}

.button:disabled {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.button.secondary {
    border-color: var(--line);
    background: #fff;
    color: #50515a;
}

.button.secondary:hover {
    border-color: #d9c3c7;
    background: #fbf6f7;
    color: var(--red-dark);
}

.button.danger {
    background: #fff0f1;
    color: #a53a43;
}

.button.compact {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 11px;
}

.login-button {
    width: 100%;
    min-height: 48px;
    justify-content: space-between;
    margin-top: 20px;
    padding: 0 17px;
    font-size: 13px;
}

.login-button span {
    font-size: 19px;
    font-weight: 400;
}

.login-error {
    margin: 12px 0 0;
    color: #aa303f;
    font-size: 12px;
}

.login-message {
    margin: 12px 0 0;
    color: #55565d;
    font-size: 12px;
    line-height: 1.5;
}

.login-link {
    display: block;
    margin: 12px 0 0 auto;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--red-dark);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.login-link:hover {
    text-decoration: underline;
}

.demo-access {
    margin-top: 22px;
    padding: 14px 15px;
    border: 1px solid #eee8e6;
    border-radius: 11px;
    background: #faf9f8;
    color: #73747a;
    font-size: 11px;
}

.demo-access summary {
    color: #55565d;
    font-weight: 700;
    cursor: pointer;
}

.demo-access p {
    margin: 10px 0 0;
}

.login-footnote {
    margin: 21px 0 0;
    color: #99999e;
    font-size: 10px;
    text-align: center;
}

/* Encabezado y navegación */
.app {
    min-height: 100vh;
    background: var(--canvas);
}

.topbar {
    position: sticky;
    z-index: 3;
    top: 0;
    display: flex;
    height: 74px;
    align-items: center;
    justify-content: space-between;
    padding: 0 max(28px, calc((100vw - 1220px) / 2));
    border-bottom: 1px solid #ebe7e4;
    background: rgb(255 255 255 / 94%);
    backdrop-filter: blur(14px);
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-mark.small {
    width: 39px;
    height: 39px;
    border-radius: 12px;
    background: var(--red);
    color: #fff;
    font-size: 18px;
    box-shadow: none;
}

.brand .eyebrow {
    margin-bottom: 2px;
    color: #929097;
    font-size: 8px;
    letter-spacing: .12em;
}

.brand strong {
    color: #33343a;
    font-size: 14px;
    letter-spacing: -.02em;
}

.user-tools {
    display: flex;
    align-items: center;
    gap: 13px;
    color: #5b5c63;
    font-size: 12px;
}

#userLabel {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #eee8e6;
    border-radius: 999px;
    background: #fff;
    font-weight: 650;
}

#userLabel::before {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: var(--red-soft);
    color: var(--red);
    content: "U";
    font-size: 10px;
    font-weight: 800;
}

.shell {
    width: min(1220px, 100%);
    margin: 0 auto;
    padding: 38px 28px 55px;
}

.page-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.page-heading h1 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 700;
    letter-spacing: -.055em;
}

.subtitle {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
}

.section-nav {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 23px 0 22px;
    padding: 5px;
    border: 1px solid #e9e4e1;
    border-radius: 12px;
    background: #eeece9;
    width: fit-content;
}

.section-nav a {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    border-radius: 8px;
    color: #73747a;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: background .16s, color .16s, box-shadow .16s;
}

.section-nav a:hover,
.section-nav a.active {
    background: #fff;
    color: var(--red);
    box-shadow: 0 2px 7px rgb(43 30 32 / 7%);
}

.nav-count {
    display: inline-grid;
    min-width: 19px;
    height: 19px;
    place-items: center;
    padding: 0 5px;
    border-radius: 999px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 10px;
}

/* Resumen */
.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.card,
.panel {
    border: 1px solid #e9e5e2;
    border-radius: 15px;
    background: var(--surface);
    box-shadow: 0 3px 12px rgb(47 37 35 / 3%);
}

.stat-card {
    position: relative;
    display: grid;
    min-height: 133px;
    grid-template-columns: 45px 1fr;
    grid-template-rows: auto auto auto;
    align-content: center;
    column-gap: 14px;
    padding: 19px 21px;
}

.stat-icon {
    display: grid;
    width: 42px;
    height: 42px;
    grid-row: 1 / 4;
    place-items: center;
    border-radius: 12px;
    background: var(--red-soft);
    color: var(--red);
    font-size: 20px;
    font-weight: 700;
}

.stat-icon.icon-soft {
    background: #f0edf3;
    color: #71617d;
}

.stat-icon.icon-alert {
    background: #fff3e7;
    color: #b36b24;
}

.card-label {
    color: #73747b;
    font-size: 11px;
    font-weight: 600;
}

.card-value {
    display: block;
    margin-top: 3px;
    color: #28292e;
    font-size: 27px;
    font-weight: 750;
    letter-spacing: -.045em;
}

.stat-caption {
    margin-top: 1px;
    color: #9a9ba0;
    font-size: 10px;
}

/* Tablas y paneles */
.panel {
    scroll-margin-top: 95px;
    overflow: hidden;
    margin-bottom: 17px;
}

.toolbar {
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 17px 20px;
    border-bottom: 1px solid #efedeb;
}

.toolbar .eyebrow {
    margin-bottom: 4px;
    font-size: 9px;
}

.toolbar h2 {
    margin: 0;
    color: #34353a;
    font-size: 15px;
    font-weight: 720;
    letter-spacing: -.02em;
}

.toolbar-tools {
    display: flex;
    align-items: center;
    gap: 9px;
}

.search {
    width: min(310px, 100%);
    min-height: 40px;
    padding: 9px 12px;
    border: 1px solid #e4e1df;
    border-radius: 9px;
    outline: none;
    background: #fff;
    color: var(--ink);
    font-size: 11px;
    transition: border-color .18s, box-shadow .18s;
}

.table-wrap {
    overflow: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

thead {
    background: #faf9f8;
}

th {
    padding: 12px 16px;
    color: #909096;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    white-space: nowrap;
}

td {
    padding: 14px 16px;
    border-top: 1px solid #f0eeec;
    color: #686971;
    font-size: 11px;
    vertical-align: middle;
}

tbody tr {
    transition: background .15s;
}

tbody tr:hover {
    background: #fdfbfa;
}

.table-primary,
.table-secondary {
    display: block;
}

.table-primary {
    color: #36373d;
    font-size: 11px;
    font-weight: 700;
}

.table-secondary {
    margin-top: 4px;
    color: #98999e;
    font-size: 10px;
}

.serial-value {
    display: inline-block;
    padding: 5px 7px;
    border: 1px solid #eee9e7;
    border-radius: 6px;
    background: #faf9f8;
    color: #65666d;
    font-family: Consolas, monospace;
    font-size: 10px;
}

.muted {
    color: #92939a;
    font-size: 11px;
}

.actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.icon-button {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border: 1px solid #eae5e2;
    border-radius: 8px;
    background: #fff;
    color: #6d6d74;
    cursor: pointer;
    font-size: 13px;
    transition: background .16s, color .16s, border-color .16s;
}

.icon-button:hover {
    border-color: #d8bdc2;
    background: #fbf4f5;
    color: var(--red);
}

.icon-button.danger:hover {
    border-color: #f2cdd0;
    background: #fff0f1;
    color: #ad424b;
}

.badge {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    gap: 6px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #eaf4ee;
    color: #3b7652;
    font-size: 9px;
    font-weight: 750;
    white-space: nowrap;
}

.badge::before {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.badge.low {
    background: #fff2e3;
    color: #a7651b;
}

.badge.waiting {
    background: #fff3e7;
    color: #a7651b;
}

.badge.waiting::before {
    background: currentColor;
}

.empty {
    padding: 42px 20px;
    color: #93949a;
    font-size: 12px;
    text-align: center;
}

.requests-panel {
    margin-top: 18px;
}

.demo-note {
    margin: 28px 0 0;
    color: #9a999d;
    font-size: 10px;
    text-align: center;
}

/* Catálogo docente */
.catalog {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    padding: 17px;
}

.catalog-card {
    display: grid;
    min-height: 155px;
    grid-template-columns: 96px minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 15px;
    border: 1px solid #ebe6e3;
    border-radius: 13px;
    background: #fff;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}

.catalog-card:hover {
    transform: translateY(-2px);
    border-color: #dfc8cc;
    box-shadow: 0 9px 22px rgb(61 39 40 / 6%);
}

.device-art {
    display: flex;
    min-height: 112px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border-radius: 10px;
    background: linear-gradient(150deg, #f9e9ec, #f2e9e6);
    color: var(--red);
}

.device-art span {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border: 1px solid rgb(169 46 67 / 18%);
    border-radius: 13px;
    background: rgb(255 255 255 / 78%);
    font-size: 23px;
}

.device-art small {
    color: #9b6570;
    font-size: 7px;
    font-weight: 800;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.catalog-info {
    min-width: 0;
}

.catalog-info .eyebrow {
    margin-bottom: 4px;
    font-size: 8px;
}

.catalog-card h3 {
    margin: 0;
    overflow: hidden;
    color: #34353a;
    font-size: 13px;
    font-weight: 750;
    letter-spacing: -.015em;
    text-overflow: ellipsis;
}

.catalog-model {
    margin: 5px 0 0;
    color: #777880;
    font-size: 10px;
}

.catalog-serial {
    margin: 5px 0 0;
    color: #99999f;
    font-size: 9px;
}

.catalog-serial strong {
    color: #686971;
    font-family: Consolas, monospace;
    font-weight: 600;
}

.stock {
    display: inline-block;
    margin: 9px 0 0;
    color: #4a7b5a;
    font-size: 9px;
    font-weight: 700;
}

.catalog-card .button {
    align-self: end;
    min-height: 34px;
    padding: 7px 10px;
    font-size: 10px;
}

/* Ventanas y formularios */
.modal-backdrop {
    position: fixed;
    z-index: 10;
    inset: 0;
    display: none;
    place-items: center;
    padding: 20px;
    background: rgb(38 28 31 / 55%);
    backdrop-filter: blur(4px);
}

.modal-backdrop.open {
    display: grid;
    animation: fade-in .16s ease-out;
}

.modal {
    width: min(580px, 100%);
    max-height: min(90vh, 760px);
    overflow: auto;
    padding: 27px;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 28px 80px rgb(22 14 16 / 25%);
}

.modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #efedeb;
}

.modal h2 {
    margin: 0;
    color: #34353a;
    font-size: 20px;
    letter-spacing: -.035em;
}

.close {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid #ece7e4;
    border-radius: 9px;
    background: #fff;
    color: #76767d;
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
}

.close:hover {
    background: #faf4f5;
    color: var(--red);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 14px;
}

.field {
    min-width: 0;
}

.field label {
    margin: 5px 0 6px;
    font-size: 11px;
}

.field input,
.field textarea {
    min-height: 42px;
    font-size: 11px;
}

.field textarea {
    display: block;
    resize: vertical;
    line-height: 1.7;
    font-family: Consolas, monospace;
}

.field-help {
    margin: 7px 0 0;
    color: #737079;
    font-size: 11px;
    line-height: 1.5;
}

.serial-count {
    margin: 8px 0 0;
    color: var(--red);
    font-size: 12px;
    font-weight: 700;
}

.serial-count.complete {
    color: #3b7652;
}

.availability-note {
    margin: 0;
    padding: 11px 13px;
    border-radius: 9px;
    background: #f7f5f4;
    font-size: 12px;
}

.form-error {
    margin: 4px 0 0;
    padding: 12px;
    border: 1px solid #e9b4bd;
    border-radius: 9px;
    background: #fff4f5;
    color: #94263b;
    font-size: 12px;
    line-height: 1.5;
}

.form-hint {
    margin: -7px 0 14px;
    padding: 10px 12px;
    border-left: 3px solid var(--red);
    border-radius: 0 8px 8px 0;
    background: #fbf5f6;
    color: #777078;
    font-size: 10px;
    line-height: 1.5;
}

.field.full {
    grid-column: 1 / -1;
}

.form-actions {
    display: flex;
    grid-column: 1 / -1;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 13px;
    padding-top: 15px;
    border-top: 1px solid #efedeb;
}

#requestProductInfo {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 9px;
    background: #faf6f5;
    color: #66666d;
    font-size: 11px;
    line-height: 1.6;
}

.toast {
    position: fixed;
    z-index: 20;
    bottom: 22px;
    left: 50%;
    max-width: calc(100vw - 32px);
    padding: 12px 17px;
    transform: translate(-50%, 18px);
    border: 1px solid rgb(255 255 255 / 12%);
    border-radius: 10px;
    background: #30292b;
    box-shadow: 0 8px 28px rgb(0 0 0 / 17%);
    color: #fff;
    font-size: 11px;
    opacity: 0;
    pointer-events: none;
    transition: opacity .2s, transform .2s;
}

.toast.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (max-width: 900px) {
    .login-layout {
        grid-template-columns: 1fr .9fr;
    }

    .login-story {
        padding: 38px;
    }

    .login-card {
        padding: 48px 36px;
    }

    .catalog {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 680px) {
    .login-screen {
        padding: 14px;
    }

    .login-layout {
        grid-template-columns: 1fr;
        border-radius: 20px;
    }

    .login-story {
        min-height: 280px;
        padding: 24px;
    }

    .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 12px;
        font-size: 20px;
    }

    .story-copy {
        margin-top: 34px;
    }

    .story-copy h2 {
        font-size: 30px;
    }

    .story-copy > p:last-child {
        margin-top: 10px;
        font-size: 12px;
    }

    .story-preview,
    .story-decoration {
        display: none;
    }

    .login-card {
        padding: 31px 24px 25px;
    }

    .topbar {
        height: 64px;
        padding: 0 14px;
    }

    .user-tools {
        gap: 7px;
    }

    #userLabel {
        max-width: 145px;
        overflow: hidden;
        padding: 5px 8px;
        font-size: 10px;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    #userLabel::before {
        width: 21px;
        height: 21px;
        flex: 0 0 auto;
    }

    .user-tools .button {
        min-height: 34px;
        padding: 7px 9px;
        font-size: 9px;
    }

    .shell {
        padding: 25px 14px 40px;
    }

    .page-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 18px;
    }

    .page-heading > .button {
        width: 100%;
    }

    .section-nav {
        width: 100%;
        overflow-x: auto;
    }

    .section-nav a {
        flex: 0 0 auto;
        padding: 0 10px;
        font-size: 10px;
    }

    .cards {
        grid-template-columns: 1fr;
        gap: 9px;
    }

    .stat-card {
        min-height: 96px;
        padding: 14px;
    }

    .card-value {
        font-size: 22px;
    }

    .toolbar,
    .toolbar-tools {
        align-items: stretch;
        flex-direction: column;
    }

    .toolbar {
        padding: 15px;
    }

    .toolbar-tools {
        width: 100%;
    }

    .toolbar-tools .button,
    .toolbar > .button {
        width: 100%;
    }

    .search {
        width: 100%;
    }

    th,
    td {
        padding: 11px 12px;
    }

    .catalog {
        padding: 11px;
    }

    .catalog-card {
        grid-template-columns: 70px minmax(0, 1fr);
        gap: 11px;
        padding: 11px;
    }

    .device-art {
        min-height: 90px;
    }

    .catalog-card .button {
        grid-column: 2;
        justify-self: start;
    }

    .modal {
        padding: 20px 16px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .field.full,
    .form-actions {
        grid-column: auto;
    }

    .demo-note {
        padding: 0 12px;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}
