:root {
    --bg: #060709;
    --surface: #0d0f12;
    --hover: #171b21;
    --border: #252a32;
    --text: #f0f3f7;
    --muted: #9ca8b9;
    --accent: #63a6ff;
    --chrome: #dce3ed;
    --edge: #2479ec;
    --nav-bg: #040507;
    --mint: #55d9b0;
    --red: #f1808c;
    --yellow: #e3c574;
    --shadow: 0 18px 70px #0005;
    color-scheme: dark;
    font-family: Tahoma, Arial, sans-serif;
    font-size: 14px;
    letter-spacing: 0;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
}
body.light {
    --bg: #f7f8fa;
    --surface: #fff;
    --hover: #edf0f4;
    --border: #dce1e7;
    --text: #191c22;
    --muted: #646e7b;
    --accent: #176ad8;
    --mint: #158264;
    --red: #be3c4c;
    --yellow: #937018;
    --chrome: #374354;
    --edge: #176ad8;
    --nav-bg: #fff;
    color-scheme: light;
}
button,
input,
select,
textarea {
    font: inherit;
    letter-spacing: 0;
}
button,
a,
input,
select,
textarea {
    -webkit-tap-highlight-color: transparent;
}
button,
a {
    touch-action: manipulation;
}
button {
    cursor: pointer;
}
button:disabled {
    cursor: wait;
    opacity: 0.5;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
a {
    color: var(--accent);
    text-decoration: none;
}
button {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    border-radius: 6px;
    padding: 9px 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    transition:
        background 0.15s,
        border-color 0.15s;
}
button:hover {
    background: var(--hover);
    border-color: var(--muted);
}
button.primary,
.primary {
    background: #0960c9;
    color: #fff;
    border: 1px solid #64aeff;
    box-shadow:
        inset 0 1px 0 #ffffff20,
        0 0 14px #147cff18;
    font-weight: bold;
}
button.primary:hover,
a.primary:hover {
    background: #1475e6;
    border-color: #b3d7ff;
}
button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
.danger {
    color: var(--red);
}
.icon {
    width: 38px;
    height: 38px;
    padding: 9px;
    flex-shrink: 0;
}
.lucide {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke-width: 1.7;
}
input,
select,
textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 10px 12px;
    min-width: 0;
    color: var(--text);
    outline: none;
}
input:focus,
select:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px #408df21c;
}
input[type='checkbox'] {
    width: 17px;
    height: 17px;
    accent-color: var(--accent);
}
textarea {
    resize: vertical;
    min-height: 100px;
    line-height: 1.7;
}
label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 26px;
    font-weight: 600;
    line-height: 1.5;
}
h2 {
    font-size: 16px;
    font-weight: 600;
}
h3 {
    font-size: 14px;
}
small {
    font-size: 11px;
    color: var(--muted);
}
.muted {
    color: var(--muted);
}
.mono {
    font-family: Consolas, monospace;
    direction: ltr;
    unicode-bidi: embed;
}
.money {
    font-family: Arial, sans-serif;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.shell {
    display: grid;
    grid-template-columns: 228px minmax(0, 1fr);
    min-height: 100vh;
}
.sidebar {
    height: 100dvh;
    position: sticky;
    top: 0;
    padding: 26px 18px 18px;
    border-inline-end: 1px solid var(--border);
    background: var(--nav-bg);
    display: flex;
    flex-direction: column;
    gap: 28px;
    z-index: 20;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.brand-mark {
    width: 52px;
    height: 38px;
    display: grid;
    place-items: center;
    background: linear-gradient(
        175deg,
        #fff 20%,
        #c8d1dd 44%,
        #596370 48%,
        #e2e7ee 80%
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-family: Arial;
    font-style: italic;
    font-weight: 900;
    font-size: 35px;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 1px #0007);
}
.brand strong {
    display: block;
    font-family: Arial;
    font-size: 18px;
    letter-spacing: 0;
}
.brand small {
    font-size: 9px;
    display: block;
    margin-top: 3px;
    color: var(--muted);
}
.nav-label {
    font-size: 10px;
    color: var(--muted);
    padding: 0 10px;
    margin-bottom: 12px;
}
.nav {
    display: grid;
    gap: 5px;
}
.nav a {
    display: flex;
    gap: 11px;
    align-items: center;
    color: var(--muted);
    padding: 12px 10px;
    border-radius: 5px;
    font-size: 13px;
    line-height: 1.5;
}
.nav a:hover {
    background: var(--hover);
    color: var(--text);
}
.nav a.active {
    background: #4a95ff12;
    color: var(--accent);
    box-shadow: inset -2px 0 var(--accent);
}
.nav .counter {
    margin-inline-start: auto;
    font: 11px Arial;
    background: var(--hover);
    padding: 3px 6px;
    border-radius: 3px;
}
.sidebar-bottom {
    margin-top: auto;
    display: grid;
    gap: 18px;
}
.connection {
    display: flex;
    gap: 8px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
}
.dot {
    width: 6px;
    height: 6px;
    background: var(--mint);
    border-radius: 50%;
    flex-shrink: 0;
}
.dot.off {
    background: var(--yellow);
}
.user-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--border);
}
.user-row .icon {
    margin-inline-start: auto;
}
.avatar {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 50%;
    background: var(--hover);
    display: inline-grid;
    place-items: center;
    color: var(--accent);
    font-size: 12px;
    font-weight: bold;
}
.workspace {
    min-width: 0;
}
.topbar {
    height: 72px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 34px;
    gap: 16px;
    background: var(--nav-bg);
    box-shadow: inset 0 1px 0 #b9d6ff0a;
}
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
}
.breadcrumb strong {
    font-weight: normal;
    color: var(--text);
}
.tools {
    display: flex;
    align-items: center;
    gap: 8px;
}
.topbar .icon {
    border-color: transparent;
    background: transparent;
}
.topbar .icon:hover {
    background: var(--hover);
}
.mobile-menu {
    display: none;
}
.content {
    max-width: 1650px;
    padding: 30px 34px 40px;
    margin: auto;
}
.page-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 28px;
}
.dashboard-title {
    position: relative;
    isolation: isolate;
    min-height: 126px;
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}
.dashboard-title::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    background: url('/brand.png') no-repeat left center / auto 290px;
    opacity: 0.48;
}
.dashboard-title .page-actions {
    align-self: flex-start;
}
body.light .dashboard-title::before {
    display: none;
}
.dashboard-title h1 {
    color: var(--chrome);
}
.page-title p {
    color: var(--muted);
    font-size: 12px;
    margin-top: 6px;
    line-height: 1.8;
}
.eyebrow {
    color: var(--accent);
    font: 10px Arial;
    margin-bottom: 8px;
}
.page-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.page-actions select {
    width: auto;
}
.demo {
    color: var(--yellow);
    border: 1px solid #bca45150;
    border-radius: 4px;
    font-size: 10px;
    padding: 4px 7px;
    white-space: nowrap;
}
.stats {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 22px 0;
    margin-bottom: 30px;
}
.stat {
    padding: 0 20px;
    border-inline-start: 1px solid var(--border);
    min-width: 0;
}
.stat:first-child {
    padding-inline-start: 0;
    border: 0;
}
.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 11px;
}
.stat-value {
    display: block;
    font: 32px/1.3 Arial;
    margin: 14px 0 9px;
    font-variant-numeric: tabular-nums;
    color: var(--chrome);
}
.stat-foot {
    font-size: 10px;
    color: var(--muted);
}
.mint {
    color: var(--mint);
}
.yellow {
    color: var(--yellow);
}
.charts {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 26px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 28px;
}
.chart-section {
    min-width: 0;
}
.chart-section + .chart-section {
    border-inline-start: 1px solid var(--border);
    padding-inline-start: 28px;
}
.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-bottom: 20px;
}
.section-head p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 6px;
}
.chart-wrap {
    height: 230px;
    position: relative;
    min-width: 0;
}
.chart-wrap canvas {
    max-width: 100%;
}
.chart-legend {
    display: flex;
    gap: 16px;
    font-size: 10px;
    color: var(--muted);
    align-items: center;
    margin-top: 8px;
}
.chart-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.legend-line {
    width: 15px;
    height: 3px;
    background: var(--accent);
    display: inline-block;
}
.legend-line.profit {
    background: var(--mint);
}
.dashboard-bottom {
    display: grid;
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
    gap: 28px;
}
.activity {
    border-inline-start: 1px solid var(--border);
    padding-inline-start: 28px;
    min-width: 0;
}
.activity-row {
    display: flex;
    gap: 11px;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    line-height: 1.7;
    align-items: flex-start;
}
.activity-icon {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    background: var(--hover);
    color: var(--accent);
    border-radius: 5px;
    flex-shrink: 0;
}
.activity-row small {
    display: block;
    margin-top: 4px;
}
.table-wrap {
    overflow: auto;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    max-width: 100%;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: start;
    font-size: 12px;
    white-space: nowrap;
}
th {
    text-align: start;
    font-weight: normal;
    color: var(--muted);
    font-size: 10px;
    padding: 13px 12px;
    background: var(--surface);
}
td {
    padding: 15px 12px;
    border-top: 1px solid var(--border);
    max-width: 300px;
}
td .sub {
    display: block;
    color: var(--muted);
    font-size: 10px;
    margin-top: 5px;
}
td .name {
    max-width: 210px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}
tr:hover td {
    background: var(--surface);
}
td .icon {
    height: 30px;
    min-height: 30px;
    width: 30px;
    padding: 6px;
    border-color: transparent;
    background: transparent;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 7px;
    border-radius: 4px;
    font-size: 10px;
    border: 1px solid var(--border);
    line-height: 1.5;
}
.badge:before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
}
.badge.open,
.badge.active,
.badge.available {
    color: var(--accent);
    background: #4795ff12;
    border-color: #4795ff25;
}
.badge.done,
.badge.completed {
    color: var(--mint);
    background: #55d9b010;
    border-color: #55d9b025;
}
.badge.waiting {
    color: var(--yellow);
    background: #e3c57410;
    border-color: #e3c57425;
}
.badge.deleted,
.badge.cancelled {
    color: var(--red);
    background: #f1808c10;
    border-color: #f1808c25;
}
.badge.closed {
    color: var(--muted);
}
.filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}
.search {
    position: relative;
    min-width: 180px;
    flex: 1;
    max-width: 350px;
}
.search .lucide {
    position: absolute;
    right: 12px;
    top: 11px;
    color: var(--muted);
    width: 16px;
}
.search input {
    padding-inline-start: 36px;
}
.filters select,
.filters > input {
    width: auto;
    max-width: 200px;
}
.tabs {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.tabs button {
    border: 0;
    background: transparent;
    color: var(--muted);
    border-radius: 0;
    padding: 14px 2px;
}
.tabs button.active {
    color: var(--accent);
    box-shadow: inset 0 -2px var(--accent);
}
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    color: var(--muted);
    font-size: 11px;
}
.pagination > div {
    display: flex;
    gap: 6px;
}
.empty {
    padding: 50px 20px;
    text-align: center;
    color: var(--muted);
    line-height: 1.9;
}
.empty .lucide {
    width: 28px;
    height: 28px;
    margin-bottom: 12px;
}
.empty h3 {
    color: var(--text);
    margin-bottom: 6px;
}
.loading {
    padding: 80px;
    text-align: center;
    color: var(--muted);
}
dialog {
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
    padding: 0;
    width: min(760px, calc(100% - 32px));
    max-height: 90dvh;
    box-shadow: var(--shadow);
    overflow: auto;
}
dialog::backdrop {
    background: #0009;
    backdrop-filter: blur(3px);
}
.modal-head {
    padding: 21px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    position: sticky;
    top: 0;
    background: var(--surface);
    z-index: 1;
}
.modal-body {
    padding: 24px;
}
.modal-head h2 {
    font-size: 18px;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}
.full {
    grid-column: 1/-1;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 24px;
}
.error {
    color: var(--red);
    font-size: 12px;
    line-height: 1.8;
    margin-top: 14px;
}
.field-note {
    font-size: 11px;
    line-height: 1.8;
    color: var(--muted);
}
.check {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: var(--text);
}
.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    padding-bottom: 22px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}
.detail-grid dt {
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 8px;
}
.detail-grid dd {
    margin: 0;
    font-size: 13px;
    overflow-wrap: anywhere;
}
.ticket-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0 24px;
}
.ticket-actions button {
    font-size: 11px;
}
.messages {
    display: grid;
    gap: 20px;
    padding: 16px 0;
    max-height: 400px;
    overflow: auto;
    overscroll-behavior: contain;
}
.message {
    display: flex;
    gap: 10px;
    min-width: 0;
}
.message-main {
    min-width: 0;
    flex: 1;
}
.message-meta {
    display: flex;
    gap: 9px;
    align-items: center;
    margin-bottom: 8px;
    font-size: 11px;
}
.message-content {
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    font-size: 13px;
}
.message-embed {
    border-inline-start: 3px solid var(--accent);
    background: var(--bg);
    padding: 14px;
    margin-top: 10px;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.8;
    border-radius: 3px;
}
.message-embed strong {
    display: block;
    margin-bottom: 7px;
}
.message-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 6px;
}
.message-actions button {
    width: 28px;
    height: 28px;
    min-height: 28px;
    padding: 5px;
}
.permissions {
    width: 100%;
    border-collapse: collapse;
}
.permissions th,
.permissions td {
    text-align: center;
}
.permissions td:first-child {
    text-align: start;
}
.json {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    direction: ltr;
    text-align: left;
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 15px;
    border-radius: 5px;
    font:
        11px/1.8 Consolas,
        monospace;
    max-height: 240px;
    overflow: auto;
}
.templates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.template {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.template p {
    font-size: 12px;
    color: var(--muted);
    line-height: 1.8;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 100px;
    overflow: auto;
}
.template .tools {
    margin-top: auto;
}
.login {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    padding: 30px 48px;
    background: #050608 url('/brand.png') no-repeat center / cover;
    color: #f0f3f7;
    --bg: #080b10;
    --surface: #10151d;
    --text: #f0f3f7;
    --muted: #a4b0c1;
    --border: #354151;
    --accent: #63a6ff;
    color-scheme: dark;
}
.login-header,
.login-main,
.login-footer {
    width: min(1180px, 100%);
    margin-inline: auto;
}
.login-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding-bottom: 24px;
    border-bottom: 1px solid #d3e3ff21;
}
.login-header > span {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: #a4b0c1;
}
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    padding-block: 60px;
}
.login-body {
    width: min(400px, 100%);
    margin-inline-end: auto;
}
.login-body h1 {
    font:
        600 38px/1.3 Arial,
        sans-serif;
    margin: 16px 0 10px;
    color: #e2e8f1;
}
.login-body p {
    color: var(--muted);
    font-size: 12px;
    line-height: 1.9;
    margin-bottom: 24px;
}
.login-body a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 14px;
    border-radius: 5px;
}
.login-footer {
    border-top: 1px solid #d3e3ff21;
    padding-top: 22px;
    color: #99a8bd;
    font-size: 10px;
    display: flex;
    justify-content: space-between;
    gap: 15px;
}
.login-body .error {
    color: var(--red);
    margin: 14px 0 0;
}
.access-field {
    position: relative;
    margin-top: 10px;
}
.access-field input {
    height: 50px;
    padding-left: 48px;
    font:
        14px Consolas,
        monospace;
}
.access-field input[aria-invalid='true'] {
    border-color: var(--red);
}
.access-field .icon {
    position: absolute;
    left: 6px;
    top: 6px;
    background: transparent;
    border: 0;
}
.access-submit {
    width: 100%;
    height: 48px;
    margin-top: 20px;
}
.access-submit:disabled {
    opacity: 0.65;
    cursor: wait;
}
.login-body .demo {
    display: inline-block;
    margin-bottom: 16px;
}
.notice-list {
    display: grid;
}
.notification-new {
    border-inline-start: 2px solid var(--accent);
    padding-inline-start: 12px;
}
#toast {
    position: fixed;
    bottom: 28px;
    left: 28px;
    z-index: 100;
    max-width: min(440px, calc(100vw - 40px));
    background: var(--text);
    color: var(--bg);
    padding: 14px 20px;
    border-radius: 6px;
    box-shadow: var(--shadow);
    font-size: 12px;
    line-height: 1.8;
    transform: translateY(100px);
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}
#toast.show {
    transform: translateY(0);
    opacity: 1;
}
.notification-count {
    position: absolute;
    top: 3px;
    right: 3px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
}
.notification-button {
    position: relative;
}
.flash {
    animation: appear 0.18s ease-out;
}
.spacer {
    flex: 1;
}
.sales-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}
.text-link {
    background: none;
    border: 0;
    color: var(--accent);
    padding: 0;
    min-height: 24px;
    font-size: 11px;
}
.footer-note {
    font-size: 10px;
    color: var(--muted);
    text-align: center;
    margin-top: 35px;
}
.progress {
    height: 4px;
    background: var(--border);
    border-radius: 2px;
    margin-top: 8px;
    width: 100px;
    overflow: hidden;
}
.progress span {
    display: block;
    height: 100%;
    background: var(--mint);
}
@keyframes appear {
    from {
        opacity: 0.4;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.transcript-frame {
    width: 100%;
    height: 65dvh;
    border: 1px solid var(--border);
    border-radius: 5px;
    background: #fff;
}
@media (min-width: 1700px) {
    .content {
        padding-top: 40px;
    }
    .chart-wrap {
        height: 290px;
    }
}
@media (max-width: 1150px) {
    .shell {
        grid-template-columns: 192px minmax(0, 1fr);
    }
    .sidebar {
        padding: 25px 12px;
    }
    .content {
        padding: 25px 24px;
    }
    .topbar {
        padding: 0 24px;
    }
    .stats {
        gap: 12px;
    }
    .stat {
        padding-inline-start: 12px;
        padding-inline-end: 0;
    }
    .stat-label {
        font-size: 10px;
    }
    .dashboard-bottom,
    .charts {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: 20px;
    }
    .activity,
    .chart-section + .chart-section {
        padding-inline-start: 20px;
    }
    .templates {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 900px) {
    .login {
        padding: 24px;
        background-size: auto 100%;
        background-position: 38% center;
    }
    .login-body {
        padding: 24px;
        background: #050608ed;
    }
    .shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        display: none;
        position: fixed;
        right: 0;
        width: 240px;
        box-shadow: var(--shadow);
    }
    .sidebar.visible {
        display: flex;
    }
    .mobile-menu {
        display: inline-flex;
    }
    .topbar {
        height: 62px;
        padding: 0 20px;
    }
    .content {
        padding: 24px 20px;
    }
    .chart-wrap {
        height: 220px;
    }
    .page-title {
        align-items: flex-start;
    }
    .stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 25px;
    }
    .stat {
        border: 0;
        padding: 0;
    }
    .stat:first-child {
        padding: 0;
    }
    .charts,
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
    .chart-section + .chart-section,
    .activity {
        padding-inline-start: 0;
        border-inline-start: 0;
        border-top: 1px solid var(--border);
        padding-top: 24px;
    }
    .chart-section:nth-child(2) .chart-wrap {
        height: 185px;
    }
    .sales-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .stat-value {
        font-size: 28px;
    }
}
@media (max-width: 560px) {
    .login {
        padding: 20px;
        background-position: left top;
        background-size: auto 340px;
    }
    .login-header > span {
        display: none;
    }
    .login-main {
        padding-block: 185px 40px;
    }
    .login-body {
        padding: 0;
        background: #050608;
    }
    .login-body h1 {
        font-size: 32px;
    }
    .login-footer {
        font-size: 9px;
    }
    .dashboard-title::before {
        background-size: auto 260px;
        opacity: 0.22;
    }
    .content {
        padding: 22px 16px;
    }
    .topbar {
        padding: 0 12px;
    }
    .breadcrumb {
        font-size: 10px;
    }
    .breadcrumb > span:first-child {
        display: none;
    }
    .page-title {
        flex-direction: column;
        gap: 16px;
    }
    .page-title h1 {
        font-size: 23px;
    }
    .page-actions {
        width: 100%;
    }
    .page-actions > button.primary {
        margin-inline-start: auto;
    }
    .stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 22px 0;
    }
    .stat-value {
        font-size: 28px;
        margin: 9px 0;
    }
    .stat-label {
        font-size: 11px;
    }
    .stats .stat:last-child {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        gap: 14px;
        border-top: 1px solid var(--border);
        padding-top: 12px;
    }
    .sales-stats .stat:last-child {
        display: block;
        grid-column: auto;
        border: 0;
        padding-top: 0;
    }
    .filters .search {
        max-width: none;
        flex-basis: 100%;
    }
    .filters select,
    .filters > input {
        max-width: 100%;
        flex: 1;
        min-width: 100px;
        font-size: 12px;
    }
    .templates {
        grid-template-columns: 1fr;
    }
    .form-grid {
        grid-template-columns: 1fr;
    }
    .modal-body {
        padding: 18px;
    }
    .modal-head {
        padding: 16px 18px;
    }
    .detail-grid {
        grid-template-columns: 1fr 1fr;
    }
    .demo {
        font-size: 9px;
    }
    .topbar .tools {
        gap: 2px;
    }
    .tabs {
        gap: 15px;
    }
    .tabs button {
        font-size: 12px;
    }
    .section-head {
        align-items: flex-start;
    }
    .section-head h2 {
        font-size: 15px;
    }
    dialog {
        width: calc(100% - 16px);
        max-height: 94dvh;
    }
    .message-meta {
        flex-wrap: wrap;
        gap: 5px;
    }
    .form-actions {
        flex-wrap: wrap;
    }
}
@media (prefers-reduced-motion: reduce) {
    *,
    *:before,
    *:after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}
