* {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
    scroll-padding-top: 78px;
}
body {
    margin: 0;
    background: var(--canvas);
    color: var(--text);
    font:
        13px/1.5 Inter,
        ui-sans-serif,
        system-ui,
        'Segoe UI',
        Arial,
        sans-serif;
}
button,
input,
select,
textarea {
    font: inherit;
}
button {
    cursor: pointer;
    color: inherit;
}
button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}
a {
    color: var(--primary);
    text-decoration: none;
}
h1,
h2,
h3,
p {
    margin: 0;
}
h1 {
    font-size: 28px;
    letter-spacing: -0.8px;
    line-height: 1.2;
}
h2 {
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -0.3px;
}
h3 {
    font-size: 14px;
    font-weight: 650;
}
small,
.muted {
    font-size: 11px;
    color: var(--secondary);
}
.icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    vertical-align: middle;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
}
:focus-visible {
    outline: 3px solid #7ba8ff;
    outline-offset: 3px;
}
#sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: var(--sidebar-width);
    background: var(--sidebar-bg);
    color: var(--sidebar-text);
    display: flex;
    flex-direction: column;
    z-index: 30;
    padding: 16px 12px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    padding: 0 3px 22px;
    white-space: nowrap;
}
.brand-mark {
    width: 36px;
    height: 38px;
    background: #0657fa;
    color: white;
    border-radius: 7px;
    font: bold italic 33px Georgia;
    text-align: center;
    box-shadow: inset 0 0 12px #337bff;
}
.brand strong {
    font-size: 15px;
    letter-spacing: -0.5px;
}
.brand small {
    display: block;
    color: #a9c7ed;
    font-size: 8px;
    letter-spacing: 1.2px;
    margin-top: 3px;
}
.workspace {
    display: flex;
    gap: 12px;
    align-items: center;
    border: 1px solid #21344f;
    border-radius: 8px;
    padding: 13px 12px;
    margin-bottom: 13px;
}
.workspace strong,
.sidebar-footer strong {
    display: block;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
}
.workspace small,
.sidebar-footer small {
    display: block;
    font-size: 10px;
    color: #a9c1e0;
    margin-top: 3px;
}
#sidebar nav {
    overflow: auto;
    scrollbar-width: thin;
    flex: 1;
}
.nav-heading {
    font-size: 9px;
    letter-spacing: 1.5px;
    color: #a6c3e8;
    margin: 18px 9px 8px;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 8px 11px;
    margin: 2px 0;
    border-radius: 6px;
    color: #dce7f9;
    font-size: 12px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
}
.nav-item:disabled {
    opacity: 0.63;
    cursor: default;
}
.nav-item.active {
    background: var(--primary);
    color: white;
}
.sidebar-footer {
    display: flex;
    align-items: center;
    gap: 11px;
    border: 1px solid #21344f;
    padding: 12px 8px;
    border-radius: 8px;
    margin-top: 12px;
}
.sidebar-footer > .icon {
    margin-left: auto;
    width: 14px;
}
.avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #e1edff;
    color: #1462f7;
    font-size: 12px;
    font-weight: 650;
    flex-shrink: 0;
}
.sidebar-footer .avatar {
    background: #0757f9;
    color: white;
    width: 39px;
    height: 39px;
    font-size: 14px;
}
.avatar.tiny {
    width: 23px;
    height: 23px;
    font-size: 9px;
}
.app {
    margin-left: var(--sidebar-width);
}
#topbar {
    height: 58px;
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 12px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}
#menu {
    display: none;
}
.global-search {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--border);
    background: var(--surface);
    border-radius: 5px;
    color: var(--secondary);
    width: min(560px, 50vw);
    height: 34px;
    padding: 0 10px;
    text-align: left;
    font-size: 11px;
}
.global-search kbd {
    margin-left: auto;
    border: 1px solid var(--border);
    padding: 0 5px;
    border-radius: 3px;
    white-space: nowrap;
    font: 10px inherit;
}
.topbar-end {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
}
.demo-dot {
    font-size: 10px;
    color: var(--secondary);
    white-space: nowrap;
}
.demo-dot:before {
    content: '';
    display: inline-block;
    background: var(--success);
    height: 5px;
    width: 5px;
    border-radius: 50%;
    margin-right: 5px;
}
.icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    background: transparent;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    color: var(--secondary);
    padding: 0;
}
.icon-btn:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
.round {
    border: 1px solid var(--border);
    border-radius: 50%;
}
.bordered {
    border: 1px solid var(--border);
    background: var(--surface);
}
.notification {
    position: relative;
}
.notification b {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 8px;
    border-radius: 20px;
    background: var(--danger);
    color: white;
    width: 13px;
    line-height: 13px;
}
.user-label {
    font-size: 11px;
}
.user-label small {
    display: block;
    font-size: 10px;
}
main {
    padding: 0 25px;
    max-width: 1800px;
    margin: auto;
}
.breadcrumbs {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    padding: 15px 0;
    color: var(--secondary);
}
.breadcrumbs .icon {
    width: 12px;
    height: 12px;
}
.breadcrumbs strong {
    color: var(--text);
    font-weight: 500;
}
.page-heading,
.identity,
.title-line {
    display: flex;
    align-items: center;
}
.page-heading {
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}
.identity {
    gap: 14px;
}
.page-icon {
    background: var(--primary);
    color: white;
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    border-radius: 9px;
}
.page-icon .icon {
    width: 28px;
    height: 28px;
}
.title-line {
    gap: 12px;
}
.page-heading p {
    font-size: 12px;
    color: var(--secondary);
    margin-top: 6px;
}
.version {
    font-size: 10px;
    background: var(--primary-soft);
    color: var(--primary);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 6px;
}
.btn {
    border: 1px solid #cfddf3;
    background: var(--surface);
    color: var(--primary);
    border-radius: 6px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 13px;
    font-size: 11px;
    font-weight: 500;
    white-space: nowrap;
}
.btn .icon {
    width: 15px;
    height: 15px;
}
.btn:hover {
    background: var(--primary-soft);
    border-color: #9cbaff;
}
.btn.primary {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.btn.primary:hover,
.btn.hover {
    background: var(--primary-hover);
}
.btn.soft {
    background: var(--primary-soft);
    border-color: transparent;
}
.btn.ghost {
    border-color: transparent;
    background: transparent;
}
.btn.danger {
    background: var(--danger-soft);
    color: #cf263b;
    border-color: #f5d5da;
}
.btn.small {
    height: 31px;
    font-size: 10px;
    padding: 0 10px;
}
.focus-demo {
    outline: 3px solid #d1e1ff;
    outline-offset: 2px;
}
.intro {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    background: var(--primary-soft);
    border: 1px solid var(--border);
    border-radius: 7px;
    padding: 11px 14px;
    font-size: 11px;
    color: var(--secondary);
}
.intro > span:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.intro .icon {
    color: var(--primary);
    width: 15px;
}
.intro strong {
    color: var(--text);
    font-weight: 600;
}
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 5px;
    font-size: 10px;
    line-height: 1.5;
    font-weight: 500;
    white-space: nowrap;
}
.badge .icon {
    width: 12px;
    height: 12px;
}
.blue {
    background: var(--primary-soft);
    color: var(--primary);
}
.green {
    background: var(--success-soft);
    color: #07834f;
}
.amber {
    background: var(--warning-soft);
    color: #a76100;
}
.red {
    background: var(--danger-soft);
    color: #cf263b;
}
.violet {
    background: var(--violet-soft);
    color: #7544d0;
}
.neutral {
    background: var(--surface-soft);
    color: var(--secondary);
}
.tabs {
    display: flex;
    gap: 22px;
    border-bottom: 1px solid var(--border);
    margin-top: 14px;
    overflow: auto;
    white-space: nowrap;
}
.tabs a {
    font-size: 11px;
    color: var(--secondary);
    padding: 13px 2px 12px;
    border-bottom: 3px solid transparent;
}
.tabs a.active {
    color: var(--primary);
    font-weight: 600;
    border-color: var(--primary);
}
.section {
    padding-top: 25px;
    scroll-margin-top: 10px;
}
.section-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 13px;
    gap: 12px;
}
.section-heading p {
    font-size: 11px;
    color: var(--secondary);
    margin-top: 3px;
}
.eyebrow {
    font-size: 9px;
    letter-spacing: 1.2px;
    color: var(--muted);
}
.card {
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 17px;
    box-shadow: var(--shadow);
}
.principles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.principle {
    display: flex;
    gap: 13px;
    align-items: center;
}
.tile {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border-radius: 10px;
}
.tile .icon {
    width: 22px;
    height: 22px;
}
.principle h3 {
    font-size: 12px;
}
.principle p {
    font-size: 10px;
    color: var(--secondary);
    line-height: 1.7;
    margin-top: 5px;
}
.foundation-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 14px;
}
.card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 17px;
}
.swatches {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 9px;
}
.swatch {
    border: 0;
    padding: 0;
    background: none;
    text-align: left;
    min-width: 0;
}
.swatch-color {
    display: block;
    height: 65px;
    border-radius: 6px;
    margin-bottom: 8px;
    border: 1px solid #00000007;
}
.swatch strong {
    display: block;
    font-size: 10px;
    font-weight: 600;
}
.swatch small {
    font-size: 9px;
}
.semantic-colors {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 21px 0 17px;
    flex-wrap: wrap;
}
.semantic-token {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 10px;
}
.semantic-token b {
    width: 9px;
    height: 9px;
    border-radius: 3px;
}
.card-note {
    font-size: 10px;
    color: var(--secondary);
    border-top: 1px solid var(--border);
    padding-top: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.card-note .icon {
    width: 13px;
}
.type-sample {
    display: grid;
    grid-template-columns: 105px 1fr;
    align-items: center;
    gap: 12px;
    padding: 13px 0;
    border-bottom: 1px solid var(--border);
}
.type-sample:last-child {
    border: 0;
    padding-bottom: 0;
}
.type-meta {
    color: var(--secondary);
    font-size: 10px;
}
.type-meta small {
    display: block;
    font-size: 9px;
    color: var(--muted);
}
.type-title {
    font-size: 23px;
    letter-spacing: -0.7px;
    line-height: 1.3;
}
.type-section {
    font-size: 14px;
    font-weight: 600;
}
.type-sample p {
    font-size: 12px;
    color: var(--secondary);
}
.two-col {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}
.mt {
    margin-top: 14px;
}
.spacing-demo {
    display: flex;
    align-items: flex-end;
    gap: 21px;
    padding: 4px 0 15px;
}
.space-item {
    font-size: 9px;
    color: var(--secondary);
    text-align: center;
}
.space-item b {
    display: block;
    background: var(--primary-soft);
    border-top: 2px solid var(--primary);
    width: 24px;
    margin-bottom: 6px;
}
.radius-demo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    border-top: 1px solid var(--border);
    padding-top: 13px;
    flex-wrap: wrap;
}
.radius-demo > span {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 10px;
    color: var(--secondary);
}
.radius {
    width: 28px;
    height: 28px;
    border: 1px solid #c6d8f8;
    background: var(--surface-soft);
}
.icon-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 19px 8px;
}
.icon-sample {
    text-align: center;
    color: var(--secondary);
}
.icon-sample .icon {
    width: 21px;
    height: 21px;
    color: var(--primary);
}
.icon-sample span {
    display: block;
    font-size: 9px;
    margin-top: 6px;
}
.label {
    color: var(--muted);
    font-size: 9px;
    letter-spacing: 0.7px;
    margin: 16px 0 10px;
}
.row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.row + .row {
    margin-top: 14px;
}
.spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 1.5px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 13px;
    margin-top: 14px;
}
.kpi {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.kpi strong {
    font-size: 23px;
    line-height: 1.2;
    letter-spacing: -0.5px;
}
.kpi p {
    font-size: 10px;
    color: var(--secondary);
    margin: 3px 0;
}
.kpi small {
    font-size: 9px;
    color: var(--muted);
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 13px;
}
.form-grid label,
.dialog-body label {
    display: block;
    font-size: 11px;
    color: var(--secondary);
}
input:not([type='checkbox']):not([type='radio']),
select,
textarea {
    display: block;
    width: 100%;
    background: var(--surface);
    border: 1px solid #cfdbed;
    color: var(--text);
    border-radius: 5px;
    padding: 8px 10px;
    font-size: 11px;
    min-height: 36px;
}
label > input,
label > select,
label > textarea {
    margin-top: 6px;
}
input::placeholder,
textarea::placeholder {
    color: var(--muted);
}
textarea {
    resize: vertical;
}
input[aria-invalid='true'] {
    border-color: #e88997 !important;
}
label small {
    display: block;
    font-size: 9px;
    margin-top: 4px;
}
.field-error {
    color: #c63047;
}
.full {
    grid-column: 1/-1;
}
.form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.preference {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
    padding: 2px 0 17px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border);
}
.preference strong {
    font-size: 12px;
    font-weight: 500;
}
.preference p {
    font-size: 10px;
    color: var(--secondary);
    margin-top: 4px;
}
.switch {
    position: relative;
    display: inline-flex;
    flex-shrink: 0;
}
.switch input {
    position: absolute;
    opacity: 0;
    width: 34px;
    height: 20px;
    margin: 0;
}
.switch span {
    width: 34px;
    height: 20px;
    border-radius: 20px;
    background: #c3cede;
    pointer-events: none;
}
.switch span:after {
    content: '';
    display: block;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    margin: 3px;
    transition: transform 0.15s;
}
.switch input:checked + span {
    background: var(--primary);
}
.switch input:checked + span:after {
    transform: translateX(14px);
}
.switch input:focus-visible + span {
    outline: 3px solid #9abfff;
    outline-offset: 2px;
}
.inline {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: var(--secondary);
    white-space: nowrap;
}
input[type='checkbox'],
input[type='radio'] {
    accent-color: var(--primary);
    width: 13px;
    height: 13px;
    margin: 0;
    cursor: pointer;
}
.entity {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    border: 1px solid var(--border);
    background: var(--surface-soft);
    border-radius: 5px;
    padding: 4px 7px;
    color: var(--primary);
    font-size: 10px;
}
.entity .icon {
    width: 13px;
    height: 13px;
}
.table-card {
    padding: 0;
}
.table-card > .card-heading {
    padding: 16px 16px 0;
    margin-bottom: 13px;
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px 14px;
}
.search-input {
    position: relative;
    flex: 1;
    max-width: 340px;
}
.search-input > .icon {
    position: absolute;
    left: 10px;
    top: 10px;
    width: 15px;
    height: 15px;
    color: var(--secondary);
}
.search-input input {
    padding-left: 33px !important;
}
.toolbar select {
    width: 175px;
    min-height: 34px;
}
.toolbar > #selected {
    margin-left: auto;
    white-space: nowrap;
}
.table-scroll {
    overflow: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    white-space: nowrap;
    font-size: 11px;
}
th {
    background: var(--surface-soft);
    font-weight: 500;
    font-size: 10px;
    color: var(--secondary);
    padding: 10px 13px;
    border-block: 1px solid var(--border);
}
td {
    padding: 11px 13px;
    border-bottom: 1px solid var(--border);
    color: var(--secondary);
}
td:first-child,
th:first-child {
    width: 30px;
    padding-right: 0;
}
td strong {
    font-size: 11px;
    font-weight: 600;
    color: var(--text);
}
td small {
    display: block;
    font-size: 9px;
    margin-top: 2px;
}
.company-cell {
    display: flex;
    align-items: center;
    gap: 9px;
}
.company-logo {
    display: grid;
    place-items: center;
    background: var(--primary-soft);
    color: var(--primary);
    width: 29px;
    height: 29px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
}
.company-name {
    border: 0;
    background: none;
    padding: 0;
    text-align: left;
}
.company-name:hover strong {
    color: var(--primary);
}
.domain-link {
    border: 0;
    background: none;
    padding: 0;
    color: var(--primary);
    font-size: 10px;
    display: block;
    margin-top: 3px;
}
.owner {
    display: flex;
    align-items: center;
    gap: 6px;
}
.sort {
    border: 0;
    background: none;
    color: inherit;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
}
.sort .icon {
    width: 12px;
}
.table-footer {
    padding: 13px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.pagination {
    display: flex;
    align-items: center;
    gap: 5px;
}
.pagination .icon-btn {
    width: 28px;
    height: 28px;
}
.page-number {
    border: 1px solid var(--border);
    background: var(--surface);
    height: 28px;
    min-width: 28px;
    border-radius: 5px;
    font-size: 10px;
}
.page-number.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}
.column-wrap {
    position: relative;
}
.popover {
    position: absolute;
    right: 0;
    top: 37px;
    z-index: 5;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 7px 25px #0b173018;
    padding: 13px;
    border-radius: 7px;
    min-width: 160px;
}
.popover label + label {
    margin-top: 12px;
}
.popover[hidden] {
    display: none;
}
.compact td {
    padding-block: 6px;
}
.selected-row {
    background: var(--primary-soft);
}
.chart-legend {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: var(--secondary);
    gap: 8px;
}
.legend-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
    margin-right: 5px;
}
.chart {
    display: flex;
    gap: 12px;
    margin-top: 19px;
}
.chart svg {
    width: calc(100% - 30px);
    height: 135px;
    overflow: visible;
}
.chart-labels {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 9px;
    color: var(--muted);
}
.chart-days {
    display: flex;
    justify-content: space-between;
    margin: 8px 0 0 30px;
    font-size: 9px;
    color: var(--secondary);
}
.timeline {
    margin: 4px 0 0 4px;
}
.event {
    position: relative;
    border-left: 1px solid var(--border);
    padding: 0 0 19px 19px;
}
.event:last-child {
    padding-bottom: 0;
}
.event-dot {
    position: absolute;
    left: -4px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 2px solid currentColor;
    background: var(--surface);
}
summary {
    cursor: pointer;
    font-size: 11px;
    list-style: none;
    padding-right: 16px;
    position: relative;
}
summary:after {
    content: '+';
    position: absolute;
    right: 0;
    top: 0;
    color: var(--muted);
}
details[open] > summary:after {
    content: '−';
}
summary strong {
    font-weight: 500;
}
summary small {
    display: block;
    font-size: 9px;
    margin-top: 3px;
}
.event details p {
    font-size: 11px;
    color: var(--secondary);
    margin-top: 8px;
}
.diff {
    margin-top: 8px;
    padding: 10px;
    background: var(--surface-soft);
    border-radius: 6px;
    font-size: 10px;
}
.diff del {
    margin-right: 10px;
    color: var(--muted);
}
.alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid color-mix(in srgb, currentColor 15%, transparent);
    margin-bottom: 10px;
}
.alert > .icon {
    width: 16px;
    height: 16px;
    margin-top: 1px;
}
.alert strong {
    font-size: 11px;
    font-weight: 600;
}
.alert p {
    font-size: 10px;
    margin-top: 2px;
}
.segmented {
    display: flex;
    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 2px;
}
.segmented button {
    border: 0;
    background: none;
    border-radius: 3px;
    font-size: 9px;
    color: var(--secondary);
    padding: 4px 7px;
}
.segmented button.active {
    background: var(--surface);
    color: var(--primary);
    box-shadow: 0 1px 3px #11234310;
}
.state {
    min-height: 207px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    gap: 8px;
}
.state > .tile {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    margin-bottom: 4px;
}
.state h3 {
    font-size: 12px;
}
.state p {
    font-size: 10px;
    color: var(--secondary);
    max-width: 280px;
}
.skeleton-row {
    display: flex;
    gap: 10px;
    width: 100%;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}
.skeleton {
    height: 11px;
    border-radius: 4px;
    background: var(--border);
    animation: pulse 1.8s ease-in-out infinite;
}
.skeleton.square {
    height: 30px;
    width: 30px;
}
.skeleton.text {
    width: 65%;
    margin-top: 3px;
}
.skeleton.short {
    width: 35%;
    margin-top: 8px;
}
@keyframes pulse {
    50% {
        opacity: 0.35;
    }
}
.page-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 30px;
    padding: 18px 0;
    border-top: 1px solid var(--border);
    font-size: 10px;
    color: var(--muted);
}
.page-footer strong {
    font-weight: 500;
    color: var(--secondary);
}
dialog {
    color: var(--text);
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    width: 510px;
    max-width: calc(100% - 24px);
    padding: 0;
    box-shadow: 0 20px 80px #07132c33;
}
dialog::backdrop {
    background: #07132c66;
    backdrop-filter: blur(2px);
}
dialog.drawer {
    height: 100dvh;
    max-height: 100dvh;
    margin: 0 0 0 auto;
    border-radius: 12px 0 0 12px;
    width: 480px;
    max-width: 100%;
}
#dialog-content {
    display: flex;
    flex-direction: column;
    max-height: 90dvh;
}
.drawer #dialog-content {
    height: 100%;
    max-height: 100%;
}
.dialog-header {
    padding: 19px 21px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}
.dialog-header p {
    font-size: 11px;
    color: var(--secondary);
    margin-top: 3px;
}
.dialog-body {
    padding: 21px;
    overflow: auto;
    flex: 1;
}
.dialog-body > p {
    font-size: 12px;
    color: var(--secondary);
    margin-bottom: 16px;
}
.dialog-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 16px 21px;
    border-top: 1px solid var(--border);
}
.dialog-body label {
    margin-bottom: 16px;
}
.dialog-body dl {
    display: grid;
    grid-template-columns: 120px 1fr;
    font-size: 12px;
    gap: 12px;
}
.dialog-body dt {
    color: var(--secondary);
}
.dialog-body dd {
    margin: 0;
}
.palette-results {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-top: 15px;
}
.palette-results button {
    border: 0;
    text-align: left;
    background: var(--surface-soft);
    border-radius: 5px;
    padding: 12px;
    font-size: 12px;
}
.palette-results button:hover {
    background: var(--primary-soft);
    color: var(--primary);
}
#toast {
    position: fixed;
    bottom: 25px;
    left: calc(50% + 100px);
    transform: translate(-50%, 20px);
    opacity: 0;
    pointer-events: none;
    background: var(--text);
    color: var(--surface);
    border-radius: 8px;
    padding: 12px 18px;
    font-size: 12px;
    box-shadow: 0 5px 25px #0b173020;
    z-index: 100;
    transition: 0.2s;
    max-width: calc(100% - 30px);
    display: flex;
    align-items: center;
    gap: 9px;
}
#toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}
#toast .icon {
    color: #6fdaa9;
    width: 16px;
}
.skip {
    position: fixed;
    top: -100px;
    left: 15px;
    z-index: 100;
    background: var(--primary);
    color: white;
    padding: 10px;
}
.skip:focus {
    top: 10px;
}
#backdrop {
    display: none;
}
[data-theme='dark'] .green {
    color: #7cddb2;
}
[data-theme='dark'] .amber {
    color: #f8c66c;
}
[data-theme='dark'] .red {
    color: #ff9baa;
}
[data-theme='dark'] .violet {
    color: #c0a2ff;
}
[data-theme='dark'] .blue,
[data-theme='dark'] .entity {
    color: #8bb4ff;
}
[data-theme='dark'] input:not([type='checkbox']):not([type='radio']),
[data-theme='dark'] select,
[data-theme='dark'] textarea,
[data-theme='dark'] .btn {
    border-color: var(--border);
}
@media (min-width: 1600px) {
    .card {
        padding: 19px;
    }
    .table-card {
        padding: 0;
    }
    .swatch-color {
        height: 75px;
    }
    .type-sample {
        padding: 16px 0;
    }
    .section {
        padding-top: 29px;
    }
}
@media (max-width: 1200px) {
    .topbar-end {
        gap: 10px;
    }
    .user-label {
        display: none;
    }
    .intro-description {
        display: none;
    }
    .principles {
        gap: 10px;
    }
    .principle {
        padding: 14px;
        gap: 9px;
    }
    .principle br {
        display: none;
    }
    .tile {
        width: 36px;
        height: 36px;
    }
    .type-sample {
        grid-template-columns: 80px 1fr;
    }
    .type-title {
        font-size: 19px;
    }
    .tabs {
        gap: 16px;
    }
    .toolbar > #selected {
        display: none;
    }
    .kpi {
        padding: 13px;
        gap: 9px;
    }
    .eyebrow {
        display: none;
    }
}
@media (max-width: 1000px) {
    :root {
        --sidebar-width: 210px;
    }
    main {
        padding: 0 18px;
    }
    .brand strong {
        font-size: 13px;
    }
    .brand {
        gap: 8px;
    }
    .brand small {
        font-size: 7px;
    }
    #topbar {
        padding: 0 18px;
    }
    .demo-dot {
        display: none;
    }
    .global-search {
        width: 100%;
    }
    .global-search span {
        max-width: 210px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }
    .foundation-grid,
    .two-col {
        grid-template-columns: 1fr;
    }
    .principles {
        grid-template-columns: 1fr;
    }
    .principle br {
        display: none;
    }
    .principle {
        padding: 13px;
    }
    .kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .tabs {
        gap: 20px;
    }
    .section-heading > .muted {
        display: none;
    }
}
@media (max-width: 760px) {
    #sidebar {
        transform: translateX(-100%);
        width: 236px;
        transition: transform 0.2s;
    }
    .nav-open #sidebar {
        transform: translateX(0);
    }
    .nav-open #backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: #07132c80;
        z-index: 25;
        border: 0;
    }
    .app {
        margin-left: 0;
    }
    #menu {
        display: flex;
        flex-shrink: 0;
    }
    #topbar {
        padding: 0 12px;
        gap: 8px;
    }
    .topbar-end {
        gap: 6px;
    }
    .topbar-end > .avatar {
        display: none;
    }
    .global-search {
        height: 32px;
        width: auto;
        flex: 1;
        min-width: 0;
    }
    .global-search span {
        font-size: 10px;
        max-width: 160px;
    }
    .global-search kbd {
        display: none;
    }
    main {
        padding: 0 15px;
    }
    .breadcrumbs {
        padding-block: 13px;
    }
    .page-heading {
        flex-wrap: wrap;
        margin-bottom: 16px;
        gap: 15px;
    }
    .identity {
        gap: 10px;
    }
    .page-icon {
        width: 43px;
        height: 43px;
    }
    .page-icon .icon {
        width: 24px;
    }
    h1 {
        font-size: 25px;
    }
    .page-heading p {
        font-size: 11px;
        max-width: 280px;
    }
    .page-heading > .btn {
        margin-left: 53px;
        height: 33px;
    }
    .intro {
        padding: 10px;
        font-size: 10px;
    }
    .intro > .badge {
        display: none;
    }
    .tabs {
        margin-top: 8px;
    }
    .section {
        padding-top: 23px;
    }
    .section-heading p {
        font-size: 10px;
    }
    h2 {
        font-size: 16px;
    }
    .card {
        padding: 15px;
    }
    .table-card {
        padding: 0;
    }
    .toolbar {
        flex-wrap: wrap;
        padding: 0 12px 12px;
        gap: 8px;
    }
    .search-input {
        max-width: none;
        flex-basis: 100%;
    }
    .toolbar select {
        flex: 1;
        width: auto;
    }
    .toolbar > .btn {
        margin-left: auto;
    }
    .table-footer {
        flex-wrap: wrap;
        padding: 12px;
    }
    .table-footer > .muted:last-child {
        display: none;
    }
    .table-footer > .muted {
        font-size: 10px;
    }
    .kpi-grid {
        gap: 10px;
    }
    .kpi {
        padding: 13px 10px;
        gap: 8px;
    }
    .kpi strong {
        font-size: 22px;
    }
    .kpi p {
        font-size: 9px;
    }
    .kpi small {
        font-size: 8px;
    }
    .kpi .tile {
        width: 33px;
        height: 33px;
    }
    .swatches {
        gap: 7px;
    }
    .swatch-color {
        height: 52px;
    }
    .swatch strong {
        font-size: 9px;
    }
    .swatch small {
        font-size: 8px;
    }
    .semantic-colors {
        gap: 9px;
    }
    .semantic-token {
        font-size: 9px;
    }
    .type-sample {
        grid-template-columns: 84px 1fr;
    }
    .type-title {
        font-size: 20px;
    }
    .spacing-demo {
        justify-content: space-between;
        gap: 8px;
    }
    .radius-demo {
        gap: 13px;
    }
    .icon-gallery {
        gap: 19px 6px;
    }
    .label {
        font-size: 8px;
    }
    .form-grid {
        gap: 12px;
    }
    .form-footer {
        align-items: flex-start;
    }
    .form-footer > .muted {
        max-width: 110px;
        font-size: 10px;
    }
    .card-heading h3 {
        font-size: 13px;
    }
    .card-heading > .muted {
        font-size: 9px;
    }
    .segmented button {
        font-size: 8px;
        padding: 4px 5px;
    }
    .page-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    #toast {
        left: 50%;
    }
    .dialog-body {
        padding: 18px;
    }
    .dialog-header {
        padding: 16px 18px;
    }
}
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
