@font-face {
font-family: Vazirmatn;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/Assets/fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}

@font-face {
font-family: Vazirmatn;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/Assets/fonts/vazirmatn-latin-ext-wght-normal.woff2") format("woff2");
unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
font-family: Vazirmatn;
font-style: normal;
font-weight: 100 900;
font-display: swap;
src: url("/Assets/fonts/vazirmatn-latin-wght-normal.woff2") format("woff2");
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
--bg: #09111f;
--bg-accent: #112847;
--surface: #101d31;
--surface-raised: #162641;
--surface-hover: #1c3152;
--line: #2b4164;
--line-strong: #415d88;
--text: #f2f6ff;
--muted: #a9b9d4;
--subtle: #7489aa;
--primary: #6fe4cf;
--primary-strong: #40cbb2;
--primary-ink: #05231e;
--success: #77e5a5;
--warning: #ffd078;
--danger: #ff8f98;
--danger-strong: #d45461;
--danger-surface: #351c2b;
--radius-sm: 12px;
--radius: 18px;
--radius-lg: 26px;
--shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.16);
--shadow: 0 20px 60px rgba(0, 0, 0, 0.28);
--sidebar-width: 17rem;
color-scheme: dark;
font-family: Vazirmatn, IRANSans, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
box-sizing: border-box;
}

html {
min-width: 280px;
background: var(--bg);
scroll-behavior: smooth;
}

body {
min-width: 280px;
min-height: 100vh;
min-height: 100dvh;
margin: 0;
overflow-x: hidden;
color: var(--text);
background:
radial-gradient(circle at 94% -10%, rgba(69, 137, 196, 0.24), transparent 31rem),
radial-gradient(circle at -12% 105%, rgba(52, 174, 148, 0.1), transparent 28rem),
var(--bg);
text-rendering: optimizeLegibility;
}

body.menu-open {
overflow: hidden;
}

button,
input,
select,
textarea {
font: inherit;
}

button {
cursor: pointer;
}

button:disabled {
cursor: not-allowed;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
a:focus-visible {
outline: 3px solid var(--primary);
outline-offset: 3px;
}

[hidden] {
display: none !important;
}

.visually-hidden {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border: 0;
}

.skip-link {
position: fixed;
z-index: 100;
top: -5rem;
right: 1rem;
padding: 0.72rem 1rem;
border-radius: 10px;
color: var(--primary-ink);
background: var(--primary);
box-shadow: var(--shadow-sm);
font-weight: 800;
}

.skip-link:focus {
top: 1rem;
}

.noscript-notice {
position: fixed;
z-index: 90;
top: 1rem;
right: 1rem;
left: 1rem;
max-width: 54rem;
margin: 0 auto;
padding: 0.85rem 1rem;
border: 1px solid rgba(255, 208, 120, 0.74);
border-radius: var(--radius-sm);
color: #ffe4aa;
background: rgba(67, 48, 12, 0.96);
box-shadow: var(--shadow-sm);
line-height: 1.8;
}

.auth-layout {
display: grid;
min-height: 100vh;
min-height: 100dvh;
padding: clamp(1rem, 5vw, 3rem);
place-items: center;
}

.auth-card {
width: min(100%, 32rem);
padding: clamp(1.35rem, 5vw, 3rem);
border: 1px solid var(--line);
border-radius: var(--radius-lg);
background: linear-gradient(145deg, rgba(22, 38, 65, 0.97), rgba(11, 21, 37, 0.97));
box-shadow: var(--shadow);
}

.auth-card__header {
margin-bottom: 1.5rem;
}

.brand-mark {
display: grid;
width: 3.3rem;
height: 3.3rem;
margin-bottom: 1.2rem;
place-items: center;
border-radius: 14px;
color: var(--primary-ink);
background: linear-gradient(135deg, var(--primary), #86adff);
box-shadow: 0 8px 24px rgba(77, 165, 179, 0.28);
font-size: 1.08rem;
font-weight: 900;
letter-spacing: -0.08em;
}

.brand-mark.small {
width: 2.4rem;
height: 2.4rem;
margin: 0;
border-radius: 10px;
font-size: 0.9rem;
}

.eyebrow {
margin: 0 0 0.35rem;
color: var(--primary);
font-size: 0.72rem;
font-weight: 800;
letter-spacing: 0.1em;
}

h1,
h2,
h3,
p {
margin-top: 0;
}

h1 {
margin-bottom: 0.8rem;
font-size: clamp(1.55rem, 3vw, 2.15rem);
line-height: 1.35;
}

h2 {
margin-bottom: 0.4rem;
font-size: clamp(1.25rem, 2.6vw, 1.72rem);
line-height: 1.45;
}

h3 {
margin-bottom: 0.25rem;
font-size: 1rem;
line-height: 1.55;
}

.muted,
.section-heading p,
.panel-header p,
.auth-footnote {
color: var(--muted);
line-height: 1.8;
}

.auth-footnote {
margin: 1.4rem 0 0;
font-size: 0.8rem;
}

.form-stack,
#password-form {
display: grid;
gap: 1rem;
}

.field-group {
min-width: 0;
}

label {
display: block;
margin: 0 0 0.45rem;
color: #dce8ff;
font-size: 0.88rem;
font-weight: 750;
}

input,
select,
textarea {
width: 100%;
min-height: 2.8rem;
padding: 0.66rem 0.82rem;
border: 1px solid var(--line);
border-radius: 11px;
color: var(--text);
outline: none;
background: rgba(5, 13, 27, 0.74);
transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

input:hover,
select:hover,
textarea:hover {
border-color: var(--line-strong);
}

input:focus,
select:focus,
textarea:focus {
border-color: var(--primary);
background: rgba(7, 20, 35, 0.95);
box-shadow: 0 0 0 3px rgba(111, 228, 207, 0.14);
}

textarea {
min-height: 6.5rem;
resize: vertical;
}

select {
width: auto;
min-width: 8.5rem;
cursor: pointer;
}

option {
color: var(--text);
background: var(--surface);
}

.password-wrap {
position: relative;
}

.password-wrap input {
padding-left: 5.25rem;
}

.password-toggle {
position: absolute;
top: 0.3rem;
bottom: 0.3rem;
left: 0.3rem;
}

.form-message {
min-height: 1.3rem;
margin: -0.3rem 0 0;
color: var(--danger);
font-size: 0.86rem;
}

.button {
display: inline-flex;
min-height: 2.7rem;
align-items: center;
justify-content: center;
gap: 0.42rem;
padding: 0.58rem 0.92rem;
border: 1px solid transparent;
border-radius: 11px;
color: var(--text);
background: var(--surface-hover);
font-size: 0.88rem;
font-weight: 800;
line-height: 1.2;
white-space: nowrap;
transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.button:hover:not(:disabled) {
border-color: var(--line-strong);
background: #254069;
transform: translateY(-1px);
}

.button:disabled {
opacity: 0.58;
transform: none;
}

.button-primary {
border-color: transparent;
color: var(--primary-ink);
background: var(--primary);
}

.button-primary:hover:not(:disabled) {
border-color: transparent;
color: var(--primary-ink);
background: #8aedda;
}

.button-danger {
color: #fff;
background: var(--danger-strong);
}

.button-danger:hover:not(:disabled) {
background: #e0616c;
}

.button-quiet {
border-color: var(--line);
background: transparent;
}

.button-danger-quiet {
border-color: rgba(255, 143, 152, 0.48);
color: #ffc0c6;
background: rgba(116, 36, 51, 0.14);
}

.button-danger-quiet:hover:not(:disabled) {
border-color: rgba(255, 143, 152, 0.8);
background: rgba(116, 36, 51, 0.35);
}

.button-wide {
width: 100%;
margin-top: 0.15rem;
}

.icon-button {
display: inline-grid;
min-width: 2.7rem;
min-height: 2.7rem;
padding: 0.35rem 0.55rem;
place-items: center;
border: 1px solid transparent;
border-radius: 10px;
color: var(--muted);
background: transparent;
line-height: 1;
transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.icon-button:hover {
border-color: var(--line);
color: var(--text);
background: var(--surface-hover);
}

.app-shell {
display: grid;
min-height: 100vh;
min-height: 100dvh;
grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.sidebar {
position: sticky;
top: 0;
display: flex;
height: 100vh;
height: 100dvh;
min-width: 0;
flex-direction: column;
padding: 1.25rem 0.82rem max(1.25rem, env(safe-area-inset-bottom));
border-inline-end: 1px solid var(--line);
background: rgba(8, 17, 31, 0.9);
box-shadow: 1px 0 0 rgba(255, 255, 255, 0.015);
backdrop-filter: blur(18px);
}

.sidebar__inner {
min-height: 0;
overflow-y: auto;
overscroll-behavior: contain;
}

.sidebar-brand {
display: flex;
align-items: center;
gap: 0.72rem;
padding: 0 0.5rem 1.55rem;
font-weight: 900;
}

.sidebar-brand__name {
min-width: 0;
line-height: 1.45;
}

.nav-list {
display: grid;
gap: 0.35rem;
}

.nav-item {
display: flex;
width: 100%;
min-height: 2.9rem;
align-items: center;
gap: 0.72rem;
padding: 0.72rem 0.8rem;
border: 1px solid transparent;
border-radius: 11px;
color: var(--muted);
background: transparent;
text-align: right;
font-weight: 750;
transition: color 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.nav-item:hover {
color: var(--text);
background: var(--surface-raised);
}

.nav-item.is-active {
border-color: rgba(111, 228, 207, 0.15);
color: var(--primary);
background: rgba(111, 228, 207, 0.11);
}

.nav-icon {
display: inline-grid;
width: 1.25rem;
height: 1.25rem;
flex: 0 0 1.25rem;
place-items: center;
color: currentcolor;
font-size: 1.04rem;
}

.sidebar-note {
display: flex;
align-items: center;
gap: 0.55rem;
margin-top: auto;
padding: 1.15rem 0.55rem 0.15rem;
color: var(--muted);
font-size: 0.78rem;
}

.status-dot {
display: inline-block;
width: 0.58rem;
height: 0.58rem;
flex: 0 0 0.58rem;
border-radius: 50%;
background: var(--success);
box-shadow: 0 0 0 4px rgba(119, 229, 165, 0.1);
}

.sidebar-backdrop {
position: fixed;
z-index: 29;
inset: 0;
width: 100%;
height: 100%;
border: 0;
background: rgba(1, 7, 16, 0.68);
backdrop-filter: blur(2px);
}

.workspace {
min-width: 0;
}

.topbar {
position: sticky;
z-index: 10;
top: 0;
display: flex;
min-height: 5.65rem;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: max(0.9rem, env(safe-area-inset-top)) clamp(1rem, 3.5vw, 2.5rem) 0.9rem;
border-bottom: 1px solid rgba(43, 65, 100, 0.75);
background: rgba(9, 17, 31, 0.82);
backdrop-filter: blur(18px);
}

.topbar__title-group,
.topbar-actions,
.toolbar {
display: flex;
align-items: center;
gap: 0.68rem;
}

.topbar__title-group {
min-width: 0;
}

.topbar h1 {
margin: 0;
font-size: clamp(1.1rem, 2.4vw, 1.38rem);
}

.topbar-actions,
.toolbar {
flex-wrap: wrap;
}

.topbar-actions {
justify-content: flex-end;
}

.connection-status {
display: inline-flex;
max-width: 12rem;
align-items: center;
gap: 0.38rem;
color: var(--muted);
font-size: 0.78rem;
line-height: 1.45;
}

.connection-status::before {
width: 0.48rem;
height: 0.48rem;
flex: 0 0 0.48rem;
border-radius: 50%;
background: var(--warning);
content: "";
}

.connection-status.is-ok {
color: var(--success);
}

.connection-status.is-ok::before {
background: var(--success);
}

.connection-status.is-error {
color: var(--danger);
}

.connection-status.is-error::before {
background: var(--danger);
}

.user-menu {
display: flex;
align-items: center;
gap: 0.45rem;
color: var(--muted);
font-size: 0.84rem;
}

.avatar {
display: grid;
width: 2.15rem;
height: 2.15rem;
place-items: center;
border-radius: 50%;
color: var(--primary-ink);
background: var(--primary);
font-weight: 900;
}

.mobile-menu {
display: none;
}

.content {
width: min(100%, 100rem);
margin: 0 auto;
padding: clamp(1rem, 3vw, 2.45rem) clamp(1rem, 3vw, 2.5rem) max(1.5rem, env(safe-area-inset-bottom));
}

.view {
animation: view-appear 0.2s ease-out;
}

.section-heading {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1.45rem;
}

.section-heading > div:first-child {
min-width: 0;
}

.section-heading p {
max-width: 56rem;
margin-bottom: 0;
}

.select-label {
display: inline-flex;
min-height: 2.7rem;
align-items: center;
gap: 0.55rem;
margin: 0;
color: var(--muted);
white-space: nowrap;
}

.select-label select {
min-height: 2.7rem;
margin: 0;
}

.metric-grid {
display: grid;
grid-template-columns: repeat(4, minmax(0, 1fr));
gap: 1rem;
margin-bottom: 1rem;
}

.metric-card {
display: flex;
min-height: 8.4rem;
min-width: 0;
flex-direction: column;
justify-content: center;
padding: 1.05rem;
border: 1px solid var(--line);
border-radius: var(--radius);
background: linear-gradient(145deg, rgba(29, 48, 80, 0.84), rgba(14, 28, 48, 0.95));
box-shadow: var(--shadow-sm);
}

.metric-card span,
.metric-card small {
color: var(--muted);
font-size: 0.8rem;
}

.metric-card strong {
display: block;
margin: 0.55rem 0 0.7rem;
overflow-wrap: anywhere;
font-size: clamp(1.65rem, 3vw, 2.35rem);
line-height: 1;
}

.metric-card small {
margin-top: auto;
line-height: 1.5;
}

.metric-alert strong {
color: var(--warning);
}

.panel-grid {
display: grid;
gap: 1rem;
margin-bottom: 1rem;
}

.two-up {
grid-template-columns: minmax(0, 1.45fr) minmax(18rem, 1fr);
}

.panel {
min-width: 0;
padding: clamp(1rem, 2vw, 1.45rem);
border: 1px solid var(--line);
border-radius: var(--radius);
background: rgba(16, 29, 49, 0.88);
box-shadow: var(--shadow-sm);
}

.panel-header {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 1rem;
margin-bottom: 1rem;
}

.panel-header > div {
min-width: 0;
}

.panel-header h3 {
margin: 0;
}

.panel-header p {
margin: 0.28rem 0 0;
font-size: 0.81rem;
}

.table-panel {
position: relative;
padding: 0;
overflow: hidden;
}

.table-panel[aria-busy="true"] {
min-height: 5.2rem;
}

.table-panel[aria-busy="true"] .table-wrap {
opacity: 0.48;
pointer-events: none;
}

.table-panel[aria-busy="true"]::after {
position: absolute;
z-index: 1;
top: 0.8rem;
right: 50%;
padding: 0.35rem 0.7rem;
border: 1px solid var(--line);
border-radius: 999px;
color: var(--muted);
background: var(--surface-raised);
content: "در حال بارگذاری…";
font-size: 0.76rem;
font-weight: 800;
transform: translateX(50%);
}

.table-wrap {
max-width: 100%;
overflow-x: auto;
overscroll-behavior-inline: contain;
-webkit-overflow-scrolling: touch;
}

table {
width: 100%;
min-width: 46rem;
border-collapse: collapse;
text-align: right;
white-space: nowrap;
}

th,
td {
padding: 0.92rem 1rem;
border-bottom: 1px solid rgba(43, 65, 100, 0.72);
vertical-align: middle;
}

th {
color: var(--muted);
background: rgba(4, 12, 25, 0.38);
font-size: 0.75rem;
font-weight: 800;
}

td {
font-size: 0.84rem;
}

tr:last-child td {
border-bottom: 0;
}

.fingerprint {
display: inline-block;
max-width: 15rem;
overflow: hidden;
color: #c8dcff;
direction: ltr;
text-align: left;
text-overflow: ellipsis;
vertical-align: middle;
white-space: nowrap;
}

.badge {
display: inline-flex;
align-items: center;
padding: 0.24rem 0.56rem;
border-radius: 999px;
font-size: 0.74rem;
font-weight: 800;
line-height: 1.35;
white-space: nowrap;
}

.badge.allow {
color: #c3f7d6;
background: rgba(75, 180, 112, 0.18);
}

.badge.review {
color: #ffe4aa;
background: rgba(220, 160, 48, 0.18);
}

.badge.block {
color: #ffc2c8;
background: rgba(210, 67, 82, 0.2);
}

.badge.neutral {
color: #c7d9ff;
background: rgba(120, 150, 204, 0.17);
}

.compact-list {
display: grid;
gap: 0.65rem;
}

.compact-row {
display: flex;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 1rem;
padding: 0.85rem;
border: 1px solid rgba(65, 93, 136, 0.52);
border-radius: 12px;
background: rgba(28, 49, 82, 0.54);
}

.compact-row > div {
min-width: 0;
}

.compact-row small {
display: block;
margin-top: 0.25rem;
color: var(--muted);
}

.empty-state {
padding: 2.7rem 1rem;
color: var(--muted);
text-align: center;
line-height: 1.8;
}

.pagination {
display: flex;
min-width: 0;
align-items: center;
justify-content: space-between;
gap: 0.75rem;
margin-top: 1rem;
padding: 0.8rem 0.95rem;
border: 1px solid var(--line);
border-radius: var(--radius-sm);
background: rgba(16, 29, 49, 0.58);
}

.pagination-status {
min-width: 0;
color: var(--muted);
font-size: 0.82rem;
line-height: 1.6;
text-align: center;
}

.bar-chart {
display: flex;
min-height: 14.5rem;
align-items: flex-end;
gap: 0.45rem;
padding: 1.15rem 0.3rem 1.55rem;
overflow-x: auto;
border-bottom: 1px solid var(--line);
overscroll-behavior-inline: contain;
-webkit-overflow-scrolling: touch;
}

.bar {
position: relative;
display: grid;
min-width: 1.65rem;
flex: 1 0 1.65rem;
align-items: flex-end;
border-radius: 6px 6px 0 0;
background: linear-gradient(180deg, #87aefe, #5b72df);
}

.bar::after {
position: absolute;
right: 50%;
bottom: -1.28rem;
width: 4rem;
overflow: hidden;
color: var(--muted);
content: attr(data-label);
font-size: 0.65rem;
text-align: center;
text-overflow: ellipsis;
transform: translateX(50%);
white-space: nowrap;
}

.bar span {
position: absolute;
right: 50%;
top: -0.75rem;
color: var(--text);
font-size: 0.67rem;
transform: translateX(50%);
}

.distribution {
position: relative;
width: min(12rem, 72vw);
aspect-ratio: 1;
margin: 1rem auto;
border-radius: 50%;
background: conic-gradient(var(--danger) 0deg, var(--danger) 0deg, var(--success) 0deg);
box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.distribution::after {
position: absolute;
inset: 27%;
border: 1px solid var(--line);
border-radius: inherit;
background: var(--surface);
content: "";
}

.legend {
display: flex;
justify-content: center;
gap: 1rem;
color: var(--muted);
font-size: 0.82rem;
}

.legend span {
display: inline-flex;
align-items: center;
gap: 0.35rem;
}

.legend i {
display: inline-block;
width: 0.65rem;
height: 0.65rem;
border-radius: 50%;
}

.details-list {
margin: 1rem 0;
}

.details-list div {
display: flex;
justify-content: space-between;
gap: 1rem;
padding: 0.75rem 0;
border-bottom: 1px solid var(--line);
}

.details-list dt {
color: var(--muted);
}

.details-list dd {
margin: 0;
text-align: left;
}

.diagnostic-summary-panel {
margin-bottom: 1rem;
}

.diagnostics-summary {
margin: 0.55rem 0;
font-weight: 700;
line-height: 1.8;
}

.diagnostic-note {
max-width: 68rem;
margin: 0;
line-height: 1.85;
}

.diagnostic-guidance {
margin: 0.85rem 0 0;
padding: 0 1.2rem 0 0;
color: var(--muted);
line-height: 1.9;
}

.diagnostic-guidance li + li {
margin-top: 0.5rem;
}

#diagnostics-wordpress-origin {
direction: ltr;
overflow-wrap: anywhere;
}

.danger-panel {
border-color: rgba(255, 143, 152, 0.52);
background: linear-gradient(145deg, rgba(58, 28, 42, 0.72), rgba(16, 29, 49, 0.94));
}

.danger-panel p {
color: #e8bdc6;
line-height: 1.85;
}

dialog {
width: min(calc(100% - 2rem), 32rem);
max-height: min(90vh, 44rem);
padding: 0;
overflow: auto;
border: 1px solid var(--line);
border-radius: var(--radius);
color: var(--text);
background: var(--surface);
box-shadow: var(--shadow);
}

dialog::backdrop {
background: rgba(1, 7, 16, 0.74);
backdrop-filter: blur(3px);
}

.dialog-form {
padding: clamp(1rem, 4vw, 1.4rem);
}

.dialog-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 1rem;
margin-bottom: 0.85rem;
}

.dialog-head h2 {
margin: 0;
}

.dialog-actions {
display: flex;
justify-content: flex-start;
gap: 0.65rem;
margin-top: 1.15rem;
}

.toast-region {
position: fixed;
z-index: 50;
bottom: max(1rem, env(safe-area-inset-bottom));
left: max(1rem, env(safe-area-inset-left));
display: grid;
width: min(26rem, calc(100% - 2rem));
gap: 0.55rem;
pointer-events: none;
}

.toast {
padding: 0.9rem 1rem;
border: 1px solid var(--line);
border-radius: 12px;
color: var(--text);
background: var(--surface-raised);
box-shadow: var(--shadow);
line-height: 1.7;
animation: toast-appear 0.2s ease-out;
}

.toast.success {
border-color: rgba(119, 229, 165, 0.58);
}

.toast.error {
border-color: rgba(255, 143, 152, 0.7);
}

@keyframes view-appear {
from {
opacity: 0;
transform: translateY(5px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

@keyframes toast-appear {
from {
opacity: 0;
transform: translateY(8px);
}

to {
opacity: 1;
transform: translateY(0);
}
}

@media (max-width: 1120px) {
:root {
--sidebar-width: 15.25rem;
}

.metric-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-up {
grid-template-columns: 1fr;
}
}

@media (max-width: 900px) {
.app-shell {
display: block;
}

.sidebar {
position: fixed;
z-index: 30;
top: 0;
right: 0;
width: min(84vw, 20rem);
height: 100vh;
height: 100dvh;
padding-top: max(1.25rem, env(safe-area-inset-top));
transform: translateX(110%);
transition: transform 0.2s ease;
box-shadow: var(--shadow);
}

.sidebar.is-open {
transform: translateX(0);
}

.mobile-menu {
display: inline-grid;
}

.topbar {
min-height: 5.2rem;
}
}

@media (max-width: 720px) {
.topbar {
align-items: flex-start;
flex-wrap: wrap;
}

.topbar__title-group {
flex: 1 1 auto;
}

.topbar-actions {
width: 100%;
justify-content: flex-start;
}

.connection-status {
margin-inline-start: auto;
}

.section-heading {
display: grid;
gap: 1rem;
}

.section-heading .toolbar,
.section-heading .select-label {
justify-content: flex-start;
}

.toolbar {
width: 100%;
}

.toolbar .button {
flex: 0 1 auto;
}

.panel-header {
flex-wrap: wrap;
}

.compact-row {
align-items: flex-start;
flex-wrap: wrap;
}

.compact-row > .badge,
.compact-row > span:not(.badge) {
margin-inline-start: auto;
}

.details-list div {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.details-list dd {
overflow-wrap: anywhere;
}
}

@media (max-width: 640px) {
.table-wrap {
overflow: visible;
}

.table-wrap table,
.table-wrap tbody {
display: block;
width: 100%;
min-width: 0;
}

.table-wrap thead {
position: absolute;
width: 1px;
height: 1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
}

.table-wrap tr {
display: block;
margin: 0.7rem;
overflow: hidden;
border: 1px solid rgba(65, 93, 136, 0.62);
border-radius: var(--radius-sm);
background: rgba(18, 33, 56, 0.66);
}

.table-wrap td {
display: grid;
grid-template-columns: minmax(6.6rem, 42%) minmax(0, 1fr);
gap: 0.7rem;
padding: 0.72rem 0.85rem;
border-bottom: 1px solid rgba(43, 65, 100, 0.64);
text-align: left;
white-space: normal;
}

.table-wrap td::before {
color: var(--muted);
content: attr(data-label);
font-size: 0.76rem;
font-weight: 800;
text-align: right;
}

.table-wrap td[dir="ltr"]::before {
direction: rtl;
text-align: right;
}

.table-wrap td:last-child {
border-bottom: 0;
}

.table-wrap td .button {
justify-self: start;
}

.fingerprint {
max-width: 100%;
}

.bar-chart {
min-height: 13.5rem;
}

.legend {
flex-wrap: wrap;
}
}

@media (max-width: 500px) {
.pagination {
flex-wrap: wrap;
}

.pagination .button {
flex: 1 1 calc(50% - 0.4rem);
}

.pagination-status {
order: 3;
width: 100%;
}

.auth-layout {
padding: 0.85rem;
}

.auth-card {
border-radius: 20px;
}

.content {
padding: 0.9rem 0.85rem max(1.25rem, env(safe-area-inset-bottom));
}

.topbar {
gap: 0.75rem;
padding-right: 0.85rem;
padding-left: 0.85rem;
}

.topbar-actions {
gap: 0.45rem;
}

.topbar-actions .button {
min-height: 2.55rem;
padding: 0.5rem 0.65rem;
font-size: 0.8rem;
}

.connection-status {
max-width: 8.6rem;
font-size: 0.72rem;
}

.user-menu > span:last-child {
display: none;
}

.metric-grid {
grid-template-columns: 1fr;
}

.metric-card {
min-height: 7.35rem;
}

.select-label,
.select-label select,
.toolbar .select-label {
width: 100%;
}

.select-label {
justify-content: space-between;
}

.toolbar .button {
flex: 1 1 auto;
}

.dialog-actions {
display: grid;
grid-template-columns: 1fr 1fr;
}

.dialog-actions .button {
width: 100%;
}
}

@media (max-width: 360px) {
.topbar-actions {
width: 100%;
}

.connection-status {
display: none;
}

.topbar-actions .button {
flex: 1 1 auto;
}

.sidebar {
width: min(92vw, 20rem);
}

.table-wrap td {
grid-template-columns: 1fr;
gap: 0.3rem;
}
}

@media (hover: none) {
.button:hover:not(:disabled) {
transform: none;
}
}

@media (prefers-reduced-motion: reduce) {
html {
scroll-behavior: auto;
}

*,
*::before,
*::after {
animation-duration: 0.01ms !important;
animation-iteration-count: 1 !important;
transition-duration: 0.01ms !important;
}
}