:root {
    --page: #f1f5f9;
    --surface: #fff;
    --ink: #0f172a;
    --muted: #64748b;
    --line: #e2e8f0;
    --blue: #2563eb;
    --blue-soft: #eff6ff;
    --green: #15803d;
    --green-soft: #f0fdf4;
    --red: #b91c1c;
    --red-soft: #fef2f2;
    --amber: #b45309;
    --amber-soft: #fffbeb;
    --mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font:
        14px/1.55 -apple-system,
        BlinkMacSystemFont,
        'PingFang TC',
        'Microsoft JhengHei',
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
button,
select {
    cursor: pointer;
}
button {
    color: inherit;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
a {
    color: var(--blue);
    text-decoration: none;
}
a:hover {
    text-decoration: underline;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 3px solid #93c5fd;
    outline-offset: 3px;
}
svg {
    flex-shrink: 0;
    vertical-align: middle;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 25px;
    font-weight: 650;
    letter-spacing: -0.7px;
}
h2 {
    font-size: 16px;
    font-weight: 650;
}
h3 {
    font-size: 14px;
    font-weight: 650;
}
.muted {
    color: var(--muted);
}
.small {
    font-size: 12px;
}
.mono {
    font-family: var(--mono);
    font-size: 12px;
}
.nowrap {
    white-space: nowrap;
}
.stack {
    display: grid;
    gap: 20px;
}
.row {
    display: flex;
    align-items: center;
    gap: 10px;
}
.spread {
    justify-content: space-between;
}
.grow {
    flex: 1;
    min-width: 0;
}
.hidden {
    display: none !important;
}
.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 232px;
    z-index: 20;
    background: #fff;
    border-right: 1px solid var(--line);
    display: flex;
    flex-direction: column;
}
.brand {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 25px 21px;
    min-height: 90px;
}
.brand-mark {
    background: var(--blue);
    color: #fff;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 10px;
}
.brand-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.brand small {
    color: var(--muted);
    font-size: 11px;
}
.nav-label {
    font-size: 11px;
    color: #94a3b8;
    margin: 22px 26px 11px;
    letter-spacing: 1px;
}
.nav-list {
    display: grid;
    gap: 6px;
    padding: 0 14px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 0;
    border-radius: 8px;
    padding: 12px;
    color: #475569;
    text-align: left;
    background: transparent;
    font-weight: 500;
}
.nav-item:hover {
    background: #f8fafc;
}
.nav-item.active {
    color: var(--blue);
    background: var(--blue-soft);
    font-weight: 650;
}
.nav-count {
    margin-left: auto;
    color: var(--amber);
    background: #fef3c7;
    border-radius: 5px;
    font-size: 11px;
    padding: 0 6px;
}
.sidebar-foot {
    margin-top: auto;
    padding: 22px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--muted);
}
.sidebar-foot strong {
    display: block;
    color: #475569;
    font-weight: 600;
    margin-bottom: 4px;
}
.main-shell {
    margin-left: 232px;
    min-height: 100vh;
}
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.breadcrumb {
    font-size: 12px;
    color: #94a3b8;
}
.breadcrumb b {
    color: #475569;
    font-weight: 500;
}
.user-button {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 0;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
}
.avatar {
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    background: var(--blue-soft);
    color: var(--blue);
    font-weight: 600;
    font-size: 12px;
    border-radius: 50%;
}
.user-menu {
    position: absolute;
    top: 57px;
    right: 28px;
    z-index: 30;
    width: 145px;
    padding: 6px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: white;
    box-shadow: 0 8px 24px #0f172a12;
}
.user-menu button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    border: 0;
    background: #fff;
    padding: 10px;
    text-align: left;
    border-radius: 5px;
}
.user-menu button:hover {
    background: #f8fafc;
}
.icon-btn.mobile-menu {
    display: none;
}
.content {
    padding: 22px 30px 38px;
    max-width: 1600px;
    margin: auto;
}
.demo-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 15px;
    border: 1px solid #dbeafe;
    background: #f8fbff;
    color: #475569;
    border-radius: 8px;
    margin-bottom: 28px;
    font-size: 12px;
}
.demo-title {
    color: #1d4ed8;
    font-weight: 600;
}
.demo-controls {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}
.demo-controls select {
    padding: 5px 25px 5px 8px;
    font-size: 12px;
    min-height: 30px;
    max-width: 200px;
}
.page-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 22px;
}
.page-heading p {
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #fff;
    border: 1px solid #cbd5e1;
    color: #475569;
    border-radius: 7px;
    padding: 9px 14px;
    font-size: 13px;
    font-weight: 550;
    white-space: nowrap;
}
.btn:hover:not(:disabled) {
    background: #f8fafc;
}
.btn.primary {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
}
.btn.primary:hover:not(:disabled) {
    background: #1d4ed8;
}
.btn.danger {
    color: var(--red);
    border-color: #fecaca;
    background: white;
}
.btn.danger:hover {
    background: var(--red-soft);
}
.btn.subtle {
    border: 0;
    background: transparent;
    padding: 5px 8px;
}
.btn.compact {
    padding: 6px 10px;
    font-size: 12px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 11px;
    box-shadow: 0 1px 2px #0f172a03;
    overflow: hidden;
}
.card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--line);
}
.card-head p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}
.card-body {
    padding: 21px;
}
.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    margin-bottom: 23px;
}
.metric {
    padding: 21px;
    position: relative;
}
.metric-label {
    color: var(--muted);
    font-size: 12px;
}
.metric-value {
    font-size: 32px;
    font-weight: 650;
    letter-spacing: -0.8px;
    margin: 6px 0;
    line-height: 1.2;
    font-variant-numeric: tabular-nums;
}
.metric-icon {
    position: absolute;
    right: 18px;
    top: 20px;
    color: #94a3b8;
}
.metric-foot {
    font-size: 11px;
    color: var(--muted);
}
.green {
    color: var(--green);
}
.amber {
    color: var(--amber);
}
.red {
    color: var(--red);
}
.dashboard-columns {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
    gap: 20px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 550;
    padding: 3px 8px;
    border-radius: 5px;
    color: #475569;
    background: #f1f5f9;
    white-space: nowrap;
}
.badge.green {
    background: var(--green-soft);
    color: var(--green);
}
.badge.blue {
    background: var(--blue-soft);
    color: #1d4ed8;
}
.badge.red {
    background: var(--red-soft);
    color: var(--red);
}
.badge.amber {
    background: var(--amber-soft);
    color: var(--amber);
}
.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}
.device-name {
    font-weight: 600;
    color: #334155;
}
.device-meta {
    margin-top: 3px;
    font-size: 11px;
    color: var(--muted);
}
.table-wrap {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}
th {
    color: var(--muted);
    background: #f8fafc;
    font-size: 11px;
    font-weight: 500;
    padding: 12px 18px;
    white-space: nowrap;
}
td {
    border-top: 1px solid #eef2f6;
    padding: 16px 18px;
    font-size: 12px;
}
.devices-table {
    min-width: 800px;
}
.dashboard-table {
    min-width: 510px;
}
tr:hover td {
    background: #fafcff;
}
.text-link {
    color: var(--blue);
    padding: 0;
    background: transparent;
    border: 0;
    font-size: 12px;
    font-weight: 500;
}
.text-link:hover {
    text-decoration: underline;
}
.event-item {
    padding: 17px 0;
    border-bottom: 1px solid #f1f5f9;
}
.event-item:first-child {
    padding-top: 0;
}
.event-item:last-child {
    padding-bottom: 0;
    border: 0;
}
.event-item p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.65;
}
.event-symbol {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border-radius: 8px;
    flex-shrink: 0;
    background: var(--amber-soft);
    color: var(--amber);
}
.event-symbol.good {
    background: var(--green-soft);
    color: var(--green);
}
.event-symbol.bad {
    background: var(--red-soft);
    color: var(--red);
}
.filters {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 18px 21px;
    border-bottom: 1px solid var(--line);
}
input:not([type='checkbox']):not([type='file']),
select,
textarea {
    border: 1px solid #cbd5e1;
    background: #fff;
    padding: 9px 11px;
    border-radius: 7px;
    color: #334155;
    min-height: 38px;
}
.search {
    position: relative;
    flex: 1;
    min-width: 230px;
    max-width: 430px;
}
.search svg {
    position: absolute;
    left: 11px;
    top: 11px;
    color: #94a3b8;
}
.search input {
    width: 100%;
    padding-left: 36px !important;
    font-size: 12px;
}
.field {
    display: grid;
    gap: 8px;
}
.field > label {
    font-size: 12px;
    color: #475569;
    font-weight: 550;
}
.field-note {
    font-size: 11px;
    color: var(--muted);
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 12px;
}
input[type='checkbox'] {
    accent-color: var(--blue);
    width: 15px;
    height: 15px;
}
.table-foot {
    padding: 13px 21px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 11px;
}
.notice {
    padding: 14px 16px;
    border: 1px solid #fde68a;
    background: var(--amber-soft);
    color: #92400e;
    font-size: 12px;
    border-radius: 8px;
    line-height: 1.7;
}
.notice.dismissible {
    position: relative;
    padding-left: 40px;
}
.notice-dismiss {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 24px;
    height: 24px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: currentColor;
    font-size: 20px;
    line-height: 22px;
    opacity: 0.75;
}
.notice-dismiss:hover,
.notice-dismiss:focus-visible {
    background: rgba(127, 29, 29, 0.1);
    opacity: 1;
}
.notice.blue {
    border-color: #bfdbfe;
    background: var(--blue-soft);
    color: #1e40af;
}
.notice.green {
    border-color: #bbf7d0;
    background: var(--green-soft);
    color: #166534;
}
.notice.red {
    border-color: #fecaca;
    background: var(--red-soft);
    color: #991b1b;
}
.notice strong {
    display: block;
    font-weight: 600;
    margin-bottom: 3px;
}
.empty {
    text-align: center;
    padding: 45px 20px;
    color: var(--muted);
}
.empty svg {
    color: #94a3b8;
    margin-bottom: 12px;
}
.empty h3 {
    color: #475569;
    margin-bottom: 6px;
}
.empty p {
    font-size: 12px;
    margin-bottom: 18px;
}
dialog {
    padding: 0;
    border: 0;
    color: var(--ink);
    box-shadow: 0 20px 70px #0f172a30;
}
dialog::backdrop {
    background: #0f172a55;
}
.drawer {
    margin: 0 0 0 auto;
    width: min(780px, 96vw);
    max-width: none;
    height: 100dvh;
    max-height: 100dvh;
    background: #f8fafc;
}
.drawer-head {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
    padding: 24px 25px 19px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.drawer-head h2 {
    font-size: 20px;
}
.drawer-content {
    padding: 22px 25px;
    display: grid;
    gap: 18px;
}
.icon-btn {
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 7px;
    width: 32px;
    height: 32px;
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 17px 12px;
}
.detail-grid dt {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 4px;
}
.detail-grid dd {
    margin: 0;
    color: #334155;
    font-size: 12px;
    word-break: break-word;
}
.port-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 8px;
    margin: 19px 0 14px;
}
.port {
    display: grid;
    justify-items: center;
    gap: 6px;
    border: 1px solid #dbe2eb;
    border-radius: 5px;
    color: #94a3b8;
    background: #f8fafc;
    padding: 8px 3px 5px;
    font-size: 10px;
}
.port-jack {
    height: 17px;
    width: 23px;
    border: 1.5px solid currentColor;
    border-radius: 2px;
    position: relative;
}
.port-jack::after {
    content: '';
    position: absolute;
    left: 5px;
    right: 5px;
    height: 5px;
    bottom: -2px;
    background: inherit;
    border: 1.5px solid currentColor;
    border-top: 0;
}
.port.up {
    color: var(--green);
    background: #ecfdf5;
    border-color: #bbf7d0;
}
.port.disabled {
    color: var(--amber);
    background: var(--amber-soft);
    border-color: #fde68a;
}
.port.selected {
    outline: 2px solid var(--blue);
    outline-offset: 2px;
}
.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    color: var(--muted);
    font-size: 11px;
}
.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}
.port-table {
    min-width: 600px;
}
.port-table td {
    padding: 10px 16px;
}
.port-table .selected-row td {
    background: var(--blue-soft);
}
.port-table-wrap {
    max-height: 340px;
    overflow: auto;
}
.port-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}
.drawer-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 15px 0 3px;
}
.action-dialog {
    border-radius: 12px;
    width: min(530px, calc(100vw - 32px));
    max-height: 90dvh;
}
.dialog-head {
    padding: 22px 24px 17px;
    border-bottom: 1px solid var(--line);
}
.dialog-body {
    padding: 23px 24px;
    display: grid;
    gap: 18px;
}
.dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 9px;
    padding: 17px 24px;
    border-top: 1px solid var(--line);
    background: #f8fafc;
}
.dialog-summary {
    display: grid;
    grid-template-columns: 110px 1fr;
    font-size: 12px;
    gap: 11px;
}
.dialog-summary dt {
    color: var(--muted);
}
.dialog-summary dd {
    margin: 0;
    word-break: break-word;
}
.form-error {
    color: var(--red);
    font-size: 12px;
}
.firmware-layout {
    display: grid;
    grid-template-columns: minmax(250px, 0.85fr) minmax(0, 1.3fr);
    gap: 20px;
}
.image-card {
    display: flex;
    gap: 12px;
    border: 1px solid #93c5fd;
    background: #f8fbff;
    padding: 16px;
    border-radius: 8px;
    margin-bottom: 17px;
}
.image-icon {
    color: var(--blue);
    padding-top: 1px;
}
.image-name {
    font-size: 12px;
    font-weight: 600;
    overflow-wrap: anywhere;
}
.image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 11px;
}
.upload-zone {
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 20px 12px;
    text-align: center;
    background: #fafcff;
}
.upload-zone p {
    font-size: 11px;
    color: var(--muted);
    margin: 10px 0;
}
.full-width {
    width: 100%;
}
.stepper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    padding: 20px;
    border-bottom: 1px solid var(--line);
}
.step {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #94a3b8;
}
.step-number {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: 1px solid #cbd5e1;
    border-radius: 50%;
    font-size: 10px;
}
.step.current {
    color: var(--blue);
    font-weight: 600;
}
.step.current .step-number {
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
}
.step.done {
    color: var(--green);
}
.step.done .step-number {
    border-color: #bbf7d0;
    background: var(--green-soft);
}
.firmware-status {
    padding: 20px;
    min-height: 185px;
    display: grid;
    align-content: center;
    gap: 14px;
}
.progress-track {
    height: 7px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}
.progress-fill {
    height: 100%;
    background: var(--blue);
    border-radius: 10px;
    transition: width 0.3s;
}
.progress-title {
    font-size: 15px;
    font-weight: 600;
}
.firmware-history {
    margin-top: 21px;
}
.error-data {
    font-family: var(--mono);
    font-size: 11px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    background: #f8fafc;
    padding: 12px;
    border-radius: 7px;
    color: #475569;
}
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.compare-card.candidate {
    border-color: #bfdbfe;
}
.compare-card .card-head {
    background: #f8fafc;
}
.compare-card.candidate .card-head {
    background: #f8fbff;
}
.compare-title {
    font-size: 18px;
    margin: 13px 0 3px;
}
.identity-list {
    display: grid;
    gap: 0;
    margin: 19px 0 0;
}
.identity-row {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 10px;
    padding: 13px 0;
    border-top: 1px solid #eef2f6;
    font-size: 12px;
}
.identity-row dt {
    color: var(--muted);
}
.identity-row dd {
    margin: 0;
    word-break: break-word;
}
.identity-row.changed dd {
    color: #1d4ed8;
    font-weight: 550;
}
.compare-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 22px;
}
.timeline {
    display: grid;
    gap: 0;
}
.timeline-item {
    display: grid;
    grid-template-columns: 12px 1fr auto;
    gap: 13px;
    padding: 13px 0;
    font-size: 12px;
}
.timeline-marker {
    margin-top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #93c5fd;
}
.toast {
    position: fixed;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    background: #0f172a;
    color: white;
    border-radius: 9px;
    padding: 12px 19px;
    font-size: 13px;
    box-shadow: 0 8px 24px #0f172a30;
    max-width: calc(100vw - 30px);
}
.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
    background: #f1f5f9;
}
.login-shell {
    display: grid;
    grid-template-columns: 1fr 420px;
    width: min(1010px, 100%);
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 45px #0f172a08;
}
.login-story {
    background: #f8fbff;
    padding: 58px 43px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid #e2e8f0;
}
.login-story h1 {
    font-size: 30px;
    line-height: 1.5;
    margin: 35px 0 13px;
}
.login-story p {
    color: var(--muted);
    font-size: 13px;
    max-width: 360px;
    line-height: 1.9;
}
.switch-illustration {
    margin-top: 32px;
    padding: 18px 20px;
    background: #fff;
    border: 1px solid #dbeafe;
    border-radius: 8px;
}
.switch-illustration .port-grid {
    margin: 13px 0 0;
    gap: 6px;
}
.switch-illustration .port {
    height: 20px;
    min-width: 0;
    padding: 0;
    border-radius: 2px;
}
.switch-illustration .port::after {
    content: '';
    width: 6px;
    height: 3px;
    background: currentColor;
    align-self: end;
}
.login-form {
    padding: 53px 37px;
    display: grid;
    align-content: center;
    gap: 20px;
}
.login-form h2 {
    font-size: 23px;
    margin-bottom: 5px;
}
.login-form .btn {
    padding: 12px;
}
.login-foot {
    text-align: center;
    font-size: 11px;
    color: #94a3b8;
    margin-top: 22px;
}
.mobile-backdrop {
    display: none;
}
@media (max-width: 1100px) {
    .sidebar {
        width: 206px;
    }
    .main-shell {
        margin-left: 206px;
    }
    .content {
        padding: 20px;
    }
    .topbar {
        padding: 0 20px;
    }
    .dashboard-columns {
        grid-template-columns: 1fr;
    }
    .firmware-layout {
        grid-template-columns: minmax(245px, 0.85fr) minmax(0, 1.3fr);
    }
    .stepper {
        gap: 5px;
        padding: 16px;
    }
    .step {
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }
}
@media (max-width: 800px) {
    .sidebar {
        transform: translateX(-100%);
        width: 232px;
        transition: transform 0.2s;
    }
    .sidebar.open {
        transform: translateX(0);
    }
    .sidebar.open ~ .mobile-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 19;
        background: #0f172a66;
    }
    .main-shell {
        margin-left: 0;
    }
    .icon-btn.mobile-menu {
        display: grid;
    }
    .metric-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .firmware-layout {
        grid-template-columns: 1fr;
    }
    .compare-grid {
        grid-template-columns: 1fr;
    }
    .login-shell {
        grid-template-columns: 1fr;
        max-width: 430px;
    }
    .login-story {
        display: none;
    }
    .demo-bar {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}
@media (max-width: 480px) {
    .content {
        padding: 15px;
    }
    .topbar {
        height: 60px;
        padding: 0 15px;
    }
    .breadcrumb .prefix {
        display: none;
    }
    h1 {
        font-size: 22px;
    }
    .page-heading {
        align-items: flex-start;
    }
    .page-heading .btn {
        padding: 7px 9px;
    }
    .metric {
        padding: 17px;
    }
    .metric-value {
        font-size: 29px;
    }
    .metric-icon {
        right: 12px;
    }
    .card-body,
    .card-head {
        padding: 16px;
    }
    .demo-controls {
        gap: 6px;
    }
    .demo-controls select {
        max-width: 170px;
    }
    .drawer {
        width: 100vw;
    }
    .drawer-head {
        padding: 20px 17px;
    }
    .drawer-content {
        padding: 17px;
    }
    .detail-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .port-grid {
        gap: 6px;
        grid-template-columns: repeat(8, 1fr);
    }
    .compare-actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .compare-actions .row {
        flex-wrap: wrap;
    }
    .timeline-item {
        grid-template-columns: 10px 1fr;
    }
    .timeline-item time {
        grid-column: 2;
    }
    .login-page {
        padding: 18px;
    }
    .login-form {
        padding: 35px 25px;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
