:root {
  --bg: #f3f6fb;
  --bg-soft: #edf2fb;
  --surface: #ffffff;
  --surface-soft: #f8faff;
  --text: #111827;
  --text-soft: #4b5563;
  --text-muted: #6b7280;
  --accent: #2563eb;
  --accent-strong: #1d4ed8;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --ok: #0e9f6e;
  --warn: #d97706;
  --danger: #dc2626;
  --line: #d6deeb;
  --line-soft: #e5eaf4;
  --shadow-strong: 0 24px 40px -28px rgba(15, 23, 42, 0.35);
  --shadow-soft: 0 14px 24px -20px rgba(15, 23, 42, 0.25);
  --radius-xl: 20px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background:
    radial-gradient(1200px 420px at 20% -10%, rgba(37, 99, 235, 0.12), transparent 55%),
    radial-gradient(900px 360px at 88% 0%, rgba(16, 185, 129, 0.08), transparent 50%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 35%, var(--bg) 100%);
}

a {
  color: inherit;
}

.wrap {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0 clamp(1rem, 2vw, 2rem);
}

.cabinet-auth .wrap {
  padding-bottom: 1.5rem;
}

.app-shell {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  min-height: 100vh;
}

.app-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 100vh;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.25rem 0 0.45rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
}

.brand-dot {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #38bdf8);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.nav {
  display: grid;
  gap: 0.36rem;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0.58rem 0.78rem;
  border-radius: 10px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 650;
  color: var(--text-soft);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav a:hover {
  background: var(--surface-soft);
  color: var(--text);
}

.nav a.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.2);
}

.sidebar-footer {
  margin-top: auto;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line-soft);
}

.app-main {
  min-width: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(10px);
}

.top-row {
  width: min(1280px, 100%);
  margin: 0 auto;
  padding: 0.95rem clamp(1rem, 2vw, 2rem);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.top-row > * {
  min-width: 0;
}

.client-top-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem 1rem;
}

.client-brand {
  margin: 0;
}

.client-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.1rem;
  scrollbar-width: thin;
}

.client-nav a {
  white-space: nowrap;
}

.client-nav-actions {
  justify-content: flex-end;
}

.client-main {
  padding-top: 1rem;
  padding-bottom: 1.8rem;
}

.top-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
}

.top-user {
  margin-top: 0.12rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
}

.page-content {
  padding: 1.15rem 0 2rem;
}

.auth-main {
  min-height: 100vh;
  display: grid;
  align-content: center;
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.nav-actions {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.lang-switch-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  padding: 0.2rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
}

.lang-switch-inline a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  min-height: 24px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 750;
}

.lang-switch-inline a.active {
  color: var(--accent-strong);
  background: var(--accent-soft);
}

.nav-actions form,
.logout-form {
  margin: 0;
}

.link-muted {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.88rem;
}

.link-muted:hover {
  color: var(--accent-strong);
}

.card,
.panel,
.panel-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.panel,
.panel-card {
  padding: 1.1rem 1.15rem;
}

.panel {
  margin-bottom: 1rem;
}

.card {
  width: min(460px, 100%);
  margin: 0 auto;
  padding: 1.45rem 1.35rem;
}

.card h1 {
  margin: 0 0 1rem;
  font-size: 1.25rem;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(1.35rem, 2.6vw, 1.62rem);
}

h2 {
  font-size: clamp(1.14rem, 2.2vw, 1.34rem);
}

h3 {
  font-size: clamp(0.98rem, 2vw, 1.08rem);
}

p {
  margin: 0;
}

label {
  display: grid;
  gap: 0.42rem;
  margin-bottom: 0.9rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-soft);
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  padding: 0.62rem 0.78rem;
  font: inherit;
  font-size: 0.92rem;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.44;
}

input::placeholder,
textarea::placeholder {
  color: #9ca3af;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  padding: 0;
  margin: 0;
  accent-color: var(--accent);
}

input[type="file"] {
  padding: 0.5rem;
  background: var(--surface-soft);
}

button,
.btn {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.1;
  padding: 0.58rem 0.9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, transform 0.08s ease;
}

button:hover,
.btn:hover {
  background: var(--accent-strong);
}

button:active,
.btn:active {
  transform: translateY(1px);
}

button:focus-visible,
.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

button[disabled],
.btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

button.ghost,
.btn-outline {
  background: #fff;
  color: var(--text);
  border-color: var(--line);
}

button.ghost:hover,
.btn-outline:hover {
  background: var(--surface-soft);
  border-color: #c7d2e4;
}

button.danger {
  background: var(--danger);
}

button.danger:hover {
  background: #b91c1c;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-strong);
}

.error {
  color: var(--danger);
  margin-top: 0.4rem;
  font-size: 0.9rem;
}

.muted {
  color: var(--text-muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.8rem;
  color: #334155;
}

.message {
  color: #334155;
  line-height: 1.45;
  max-width: 42ch;
}

.flash-stack {
  display: grid;
  gap: 0.6rem;
  margin: 0 0 1rem;
}

.flash {
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  padding: 0.72rem 0.9rem;
  font-size: 0.9rem;
  box-shadow: var(--shadow-soft);
}

.flash.success {
  border-color: rgba(14, 159, 110, 0.25);
  background: rgba(14, 159, 110, 0.1);
}

.flash.error {
  border-color: rgba(220, 38, 38, 0.25);
  background: rgba(220, 38, 38, 0.08);
}

.tabs,
.lang-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.95rem;
}

.tabs a,
.lang-switch a {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.35rem 0.68rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 650;
  color: var(--text-soft);
  background: var(--surface);
}

.tabs a.active,
.lang-switch a.active {
  color: var(--accent-strong);
  border-color: rgba(37, 99, 235, 0.35);
  background: var(--accent-soft);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.panel h2 {
  margin-bottom: 0.35rem;
}

.panel h3 {
  margin: 1rem 0 0.5rem;
}

.panel-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  align-items: center;
}

.status-line {
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0.16rem 0.56rem;
  border: 1px solid var(--line);
  font-size: 0.71rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-draft {
  color: #6d28d9;
  background: rgba(109, 40, 217, 0.1);
  border-color: rgba(109, 40, 217, 0.25);
}

.status-published,
.status-active {
  color: #047857;
  background: rgba(4, 120, 87, 0.12);
  border-color: rgba(4, 120, 87, 0.25);
}

.status-archived,
.status-suspended {
  color: #b91c1c;
  background: rgba(185, 28, 28, 0.12);
  border-color: rgba(185, 28, 28, 0.24);
}

.status-invited {
  color: #1d4ed8;
  background: rgba(29, 78, 216, 0.11);
  border-color: rgba(29, 78, 216, 0.24);
}

.form-actions {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 0.55rem;
}

.editor-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.45rem 0.8rem;
}

.inline {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-weight: 600;
}

.invite-preview {
  border-left: 4px solid var(--accent);
}

.invite-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.55rem;
  align-items: center;
  margin: 0.7rem 0 0.4rem;
}

.log-search,
.user-filters,
.doc-upload,
.chat-form {
  display: grid;
  gap: 0.55rem;
  margin: 0.75rem 0 0.9rem;
}

.log-search {
  grid-template-columns: 1.4fr 0.85fr 1fr 1fr auto;
}

.user-filters {
  grid-template-columns: 1.4fr 1fr 1fr 1fr auto auto;
}

.clients-filters {
  grid-template-columns: 1fr auto auto;
}

.clients-filters-advanced {
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  align-items: center;
}

.clients-filters-advanced > input[type="text"] {
  grid-column: span 2;
}

.clients-filters-advanced .inline {
  font-size: 0.82rem;
}

.doc-upload {
  grid-template-columns: 1fr 1fr 1fr auto;
}

.chat-form {
  grid-template-columns: 1fr 1fr auto;
}

.chat-form textarea {
  grid-column: 1 / -1;
}

.copy-btn,
.log-search button,
.user-filters button,
.doc-upload button,
.chat-form button {
  width: auto;
  min-height: 40px;
}

.copy-btn {
  font-size: 0.8rem;
}

.table {
  margin: 1rem 0;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: auto;
}

.table-head,
.table-row {
  display: grid;
  align-items: start;
  gap: 0.85rem;
  min-width: 920px;
  padding: 0.88rem 1rem;
}

.table-head {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--line-soft);
  background: linear-gradient(180deg, #fbfcff 0%, #f7f9fd 100%);
  color: var(--text-muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 750;
}

.table-row {
  border-bottom: 1px solid var(--line-soft);
  font-size: 0.9rem;
  background: #fff;
}

.table-row:last-child {
  border-bottom: none;
}

.table > p,
.table > .muted {
  margin: 0;
  padding: 0.9rem 1rem;
}

.table:not(.logs-table):not(.events-table):not(.users-table):not(.blog-table) .table-head,
.table:not(.logs-table):not(.events-table):not(.users-table):not(.blog-table) .table-row {
  grid-template-columns: 1.2fr 1.2fr 0.8fr 1.3fr 1fr 0.8fr 1fr auto;
}

.clients-table .table-head,
.clients-table .table-row {
  grid-template-columns: 1.2fr 1.25fr 1.1fr 1.25fr 0.62fr 0.82fr 0.95fr 1fr auto !important;
}

.clients-topic-table .table-head,
.clients-topic-table .table-row {
  grid-template-columns: 1.3fr 0.72fr 0.72fr 0.72fr 0.9fr !important;
  min-width: 620px;
}

.legal-table .table-head,
.legal-table .table-row {
  min-width: 720px;
}

.legal-table:not(.legal-topic-table) .table-head,
.legal-table:not(.legal-topic-table) .table-row {
  grid-template-columns: 1fr 1.1fr 1fr 0.8fr 0.8fr 0.72fr !important;
}

.legal-topic-table .table-head,
.legal-topic-table .table-row {
  grid-template-columns: 1.2fr 0.75fr 0.75fr 0.75fr 0.8fr 0.82fr !important;
}

.legal-court-type-table .table-head,
.legal-court-type-table .table-row {
  grid-template-columns: 1.35fr 0.82fr 0.82fr !important;
  min-width: 460px;
}

.legal-court-table .table-head,
.legal-court-table .table-row {
  grid-template-columns: 1.4fr 0.82fr 0.82fr !important;
  min-width: 480px;
}

.legal-fresh-table .table-head,
.legal-fresh-table .table-row {
  grid-template-columns: 1.35fr 0.7fr 0.95fr !important;
  min-width: 520px;
}

.legal-category-table .table-head,
.legal-category-table .table-row {
  grid-template-columns: 1.4fr 0.7fr 0.75fr 0.75fr !important;
  min-width: 640px;
}

.legal-article-table .table-head,
.legal-article-table .table-row {
  grid-template-columns: 0.72fr 1.55fr 0.72fr 0.72fr !important;
  min-width: 720px;
}

.legal-practice-court-table .table-head,
.legal-practice-court-table .table-row {
  grid-template-columns: 1.4fr 0.8fr 0.8fr !important;
  min-width: 500px;
}

.legal-practice-month-table .table-head,
.legal-practice-month-table .table-row {
  grid-template-columns: 1fr 0.9fr 0.9fr !important;
  min-width: 460px;
}

.row-form {
  display: contents;
}

.row-delete {
  margin: 0;
}

.actions {
  display: flex;
  gap: 0.45rem;
  align-items: center;
  flex-wrap: wrap;
}

.actions form {
  margin: 0;
}

.table-body {
  display: grid;
}

.table .table-cell.path {
  font-size: 0.83rem;
  color: #334155;
}

.path-label {
  display: block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 0.22rem;
}

.path-bar {
  display: block;
  height: 5px;
  border-radius: 999px;
  background: #e5eaf3;
  overflow: hidden;
}

.path-bar-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.table .table-cell.value {
  text-align: right;
  font-weight: 700;
}

.blog-table .table-head,
.blog-table .table-row {
  grid-template-columns: minmax(220px, 2fr) 0.9fr 0.58fr 1fr 1fr 1.2fr;
}

.users-table .table-head,
.users-table .table-row {
  grid-template-columns: 1.55fr 1.2fr 1fr 2.1fr 1fr 1.1fr 1fr;
}

.logs-table .table-head,
.logs-table .table-row {
  grid-template-columns: 1.18fr 2.2fr 0.95fr 0.95fr 0.9fr 1.25fr 0.5fr 0.5fr;
}

.events-table .table-head,
.events-table .table-row {
  grid-template-columns: 1.1fr 1fr 1fr 1fr 0.85fr 2fr;
}

.panel-card .table {
  margin: 0;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.panel-card .table .table-head,
.panel-card .table .table-row {
  min-width: 0;
  padding: 0.54rem 0;
  grid-template-columns: 1fr 110px;
}

.panel-card .table .table-head {
  position: static;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.panel-card .table .table-row {
  border-bottom: 1px dashed var(--line-soft);
}

.panel-card .table .table-row:last-child {
  border-bottom: none;
}

.panel-card .table .table-cell.path {
  color: var(--text-soft);
}

.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.priority-panel {
  border-color: rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(480px 220px at 10% 0%, rgba(37, 99, 235, 0.09), transparent 65%),
    #fff;
}

.priority-list {
  display: grid;
  gap: 0.55rem;
}

.priority-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.72rem 0.78rem;
  background: #fff;
}

.priority-item.is-overdue {
  border-color: rgba(220, 38, 38, 0.26);
  background: rgba(220, 38, 38, 0.05);
}

.priority-metrics {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.42rem;
}

.lead-inline-form {
  display: grid;
  grid-template-columns: minmax(120px, 0.8fr) minmax(170px, 1.2fr) auto;
  gap: 0.4rem;
}

.lead-inline-form select,
.lead-inline-form input {
  min-height: 34px;
  font-size: 0.8rem;
  padding: 0.42rem 0.54rem;
}

.lead-inline-form button {
  min-height: 34px;
  min-width: 90px;
}

.dashboard-hero {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
  padding: 1.15rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(37, 99, 235, 0.2);
  background:
    radial-gradient(420px 260px at 0% 0%, rgba(37, 99, 235, 0.12), transparent 70%),
    radial-gradient(320px 220px at 100% 100%, rgba(14, 165, 233, 0.12), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.dashboard-hero.is-loading {
  opacity: 0.9;
}

.dashboard-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 280px);
  gap: 0.9rem;
  align-items: start;
}

.dashboard-subtitle {
  margin-top: 0.35rem;
  color: var(--text-soft);
  max-width: 62ch;
}

.dashboard-controls {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(37, 99, 235, 0.2);
  padding: 0.88rem 0.92rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.control-block {
  margin-bottom: 0.55rem;
}

.control-block:last-child {
  margin-bottom: 0;
}

.control-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--text-muted);
}

.control-value {
  font-size: 0.88rem;
  color: var(--text);
}

.control-value.is-up {
  color: #047857;
}

.control-value.is-down {
  color: #b91c1c;
}

.control-value.is-neutral {
  color: var(--text-soft);
}

.control-switch {
  margin: 0.2rem 0;
  font-size: 0.8rem;
  color: var(--text-soft);
}

.dashboard-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.75rem;
  margin: 0 0 1rem;
}

.user-stats {
  margin-top: 0.2rem;
  margin-bottom: 1rem;
}

.user-stats .kpi-value {
  font-size: clamp(1.2rem, 2.6vw, 1.5rem);
}

.kpi-card {
  border-radius: 15px;
  border: 1px solid var(--line-soft);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem 0.9rem;
  display: grid;
  gap: 0.32rem;
}

.kpi-card.highlight {
  border-color: rgba(37, 99, 235, 0.24);
  background:
    linear-gradient(130deg, rgba(37, 99, 235, 0.12), rgba(16, 185, 129, 0.09)),
    #fff;
}

.kpi-label {
  font-size: 0.8rem;
  color: var(--text-soft);
  font-weight: 650;
}

.kpi-value {
  font-size: clamp(1.35rem, 2.8vw, 1.74rem);
  line-height: 1.08;
  font-weight: 800;
  color: #0f172a;
}

.kpi-note {
  font-size: 0.79rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.kpi-note.is-error {
  color: var(--danger);
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.dashboard-grid .panel-card {
  grid-column: span 6;
}

.dashboard-grid .panel-card.wide {
  grid-column: span 12;
}

.panel-card {
  border-radius: var(--radius-lg);
  padding: 0.92rem 1rem;
}

.panel-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.panel-meta {
  color: var(--text-muted);
  font-size: 0.79rem;
}

.panel-list {
  display: grid;
  gap: 0.55rem;
}

.panel-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.55rem;
  line-height: 1.35;
}

.panel-row small {
  color: var(--text-muted);
  font-size: 0.8rem;
}

.chart-shell {
  position: relative;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff 0%, #f7faff 100%);
  padding: 0.75rem 0.75rem 0.58rem;
  overflow: hidden;
}

.line-chart {
  width: 100%;
  height: auto;
  display: block;
}

.line-area {
  fill: url(#lineFill);
}

.line-weekend {
  fill: rgba(148, 163, 184, 0.12);
}

.line-path {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
}

.line-path-prev {
  fill: none;
  stroke: rgba(71, 85, 105, 0.9);
  stroke-width: 2;
  stroke-dasharray: 6 5;
}

.chart-shell:not(.compare-enabled) .line-path-prev {
  display: none;
}

.line-path-smooth {
  fill: none;
  stroke: #0f766e;
  stroke-width: 2.2;
  opacity: 0;
  transition: opacity 0.18s ease;
}

.chart-shell.smooth-enabled .line-path {
  opacity: 0.55;
}

.chart-shell.smooth-enabled .line-path-smooth {
  opacity: 1;
}

.line-grid-line {
  stroke: #dbe4f2;
  stroke-width: 1;
}

.line-grid-line.is-baseline {
  stroke: #c9d4e7;
}

.line-grid-vline {
  stroke: #e7edf7;
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.line-grid-label {
  fill: #64748b;
  font-size: 10.5px;
  font-weight: 650;
}

.line-grid-xlabel {
  fill: #8a94a7;
  font-size: 10px;
  font-weight: 600;
  text-anchor: middle;
}

.line-hitbox {
  pointer-events: all;
  cursor: crosshair;
}

.line-hover {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.12s ease;
}

.line-hover.is-visible {
  opacity: 1;
}

.line-focus {
  stroke: rgba(37, 99, 235, 0.75);
  stroke-width: 1.4;
  stroke-dasharray: 4 4;
}

.line-focus-dot {
  fill: #2563eb;
  stroke: #ffffff;
  stroke-width: 2.4;
}

.line-peak-dot {
  fill: #1d4ed8;
  stroke: #fff;
  stroke-width: 2;
}

.line-peak-label {
  fill: #1f2937;
  font-size: 10px;
  font-weight: 700;
  text-anchor: middle;
}

.chart-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  padding: 0.48rem 0.62rem;
  min-width: 86px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.92);
  color: #fff;
  box-shadow: 0 12px 24px -18px rgba(15, 23, 42, 0.8);
  pointer-events: none;
  z-index: 2;
}

.chart-tooltip strong {
  display: block;
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.2;
}

.chart-tooltip span {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}

.chart-tooltip small {
  display: block;
  margin-top: 0.22rem;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.9);
}

.chart-tooltip small.up {
  color: #86efac;
}

.chart-tooltip small.down {
  color: #fca5a5;
}

.chart-tooltip small.flat {
  color: #d1d5db;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-legend-inline {
  margin-top: 0.48rem;
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}

.chart-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  border-radius: 999px;
  padding: 0.15rem 0.52rem;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text-soft);
  font-size: 0.73rem;
  font-weight: 650;
}

.chart-chip-current {
  border-color: rgba(37, 99, 235, 0.28);
}

.chart-chip-prev {
  border-style: dashed;
}

.chart-chip-smooth {
  border-color: rgba(15, 118, 110, 0.35);
}

.chart-shell:not(.compare-enabled) .chart-chip-prev {
  display: none;
}

.chart-shell:not(.smooth-enabled) .chart-chip-smooth {
  opacity: 0.55;
}

.chart-axis {
  display: flex;
  justify-content: space-between;
  margin-top: 0.38rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.legal-hero {
  margin-bottom: 0.85rem;
}

.legal-controls {
  min-height: 100%;
}

.legal-kpis .kpi-card strong {
  font-weight: 750;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.9rem;
}

.legal-grid > .panel-card {
  grid-column: span 4;
}

.legal-grid-main > .panel-card {
  grid-column: span 6;
}

.legal-grid .panel-card.wide,
.legal-topic-panel {
  grid-column: span 12;
}

.legal-alerts {
  display: grid;
  gap: 0.55rem;
}

.legal-alert {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.72rem 0.76rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
}

.legal-alert strong {
  display: block;
  font-size: 0.92rem;
  margin-bottom: 0.22rem;
}

.legal-alert p {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.4;
}

.legal-alert-meta {
  text-align: right;
  min-width: 88px;
}

.legal-alert-meta span {
  display: block;
  font-size: 1.08rem;
  font-weight: 800;
  margin-bottom: 0.22rem;
}

.legal-alert-critical {
  border-color: rgba(220, 38, 38, 0.28);
  background: rgba(220, 38, 38, 0.08);
}

.legal-alert-attention {
  border-color: rgba(217, 119, 6, 0.28);
  background: rgba(217, 119, 6, 0.08);
}

.legal-alert-info {
  border-color: rgba(37, 99, 235, 0.22);
  background: rgba(37, 99, 235, 0.07);
}

.legal-feed {
  display: grid;
  gap: 0.58rem;
}

.legal-feed-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0.68rem 0.72rem;
  background: #fff;
}

.legal-feed-item h4 {
  margin: 0 0 0.34rem;
  font-size: 0.92rem;
}

.legal-feed-item p {
  color: var(--text-soft);
  font-size: 0.81rem;
  line-height: 1.38;
}

.legal-feed-meta {
  margin: 0.48rem 0 0.46rem;
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legal-feed-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-bottom: 0.45rem;
}

.legal-court-chart-shell {
  margin-top: 0.2rem;
}

.legal-practice-chart-shell {
  margin-top: 0.1rem;
}

.line-path-ua {
  stroke: #2563eb;
  stroke-width: 2.8;
}

.line-path-kyiv {
  stroke: #d97706;
  stroke-width: 2.6;
}

.line-focus-dot-ua {
  fill: #2563eb;
}

.line-focus-dot-kyiv {
  fill: #d97706;
}

.chart-chip-kyiv {
  border-color: rgba(217, 119, 6, 0.32);
}

.legal-courtgov-kpis {
  margin-top: 0.1rem;
}

.legal-loading {
  margin-top: 0.75rem;
  border: 1px solid rgba(37, 99, 235, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #f1f7ff 100%);
  padding: 0.62rem 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.62rem;
}

.legal-loading[hidden] {
  display: none;
}

.legal-loading-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(37, 99, 235, 0.25);
  border-top-color: #2563eb;
  border-radius: 999px;
  animation: legal-spin 0.9s linear infinite;
  flex: 0 0 auto;
}

.legal-loading-meta {
  min-width: 0;
  flex: 1 1 auto;
  display: grid;
  gap: 0.2rem;
}

.legal-loading-meta strong {
  font-size: 0.82rem;
  font-weight: 700;
  color: #0f172a;
}

.legal-loading-meta span {
  font-size: 0.76rem;
  color: var(--text-muted);
}

.legal-loading-bar {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

.legal-loading-bar > span {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
  transition: width 0.2s ease;
}

.legal-loading-bar > span.is-indeterminate {
  width: 36% !important;
  animation: legal-progress-indeterminate 1.2s ease-in-out infinite;
}

.legal-chart-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin-bottom: 0.52rem;
}

.courtgov-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #fff;
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 650;
  padding: 0.26rem 0.6rem 0.24rem;
  cursor: pointer;
}

.courtgov-toggle input {
  width: 14px;
  height: 14px;
  margin: 0;
}

.courtgov-toggle i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  display: inline-block;
}

.line-path-city-kyiv {
  stroke: #2563eb;
  stroke-width: 2.8;
}

.line-path-city-odesa {
  stroke: #d97706;
  stroke-width: 2.5;
}

.line-path-city-lviv {
  stroke: #7c3aed;
  stroke-width: 2.5;
}

.line-path-city-dnipro {
  stroke: #059669;
  stroke-width: 2.5;
}

.line-path-city-kharkiv {
  stroke: #dc2626;
  stroke-width: 2.5;
}

.line-path-war-kyiv {
  stroke: #1d4ed8;
  stroke-width: 2.8;
}

.line-path-war-ua {
  stroke: #0f766e;
  stroke-width: 2.8;
  stroke-dasharray: 6 4;
}

.courtgov-tooltip-row {
  margin-top: 0.16rem;
  font-size: 0.74rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.courtgov-tooltip-row i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  display: inline-block;
}

[data-courtgov-status].is-error {
  color: #b91c1c;
}

[data-courtgov-status]:not(.is-error) {
  color: #0f766e;
}

[data-courtgov-note],
[data-courtgov-war-note] {
  margin: 0.45rem 0 0;
}

.legal-courtgov-grid .panel-card {
  border-color: rgba(37, 99, 235, 0.14);
}

.legal-news-grid > .panel-card {
  grid-column: span 4;
}

.legal-news-card {
  border-color: rgba(37, 99, 235, 0.16);
}

.legal-news-badges {
  display: flex;
  gap: 0.34rem;
  flex-wrap: wrap;
}

.legal-news-list {
  display: grid;
  gap: 0.5rem;
}

.legal-news-item {
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  padding: 0.58rem 0.62rem;
  background: #fff;
}

.legal-news-item a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 650;
  line-height: 1.35;
}

.legal-news-item a:hover {
  color: var(--accent-strong);
}

.legal-news-meta {
  margin-top: 0.35rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.legal-practice-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.58rem;
  margin: 0.05rem 0 0.62rem;
}

.practice-summary-card {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fff;
  padding: 0.62rem 0.66rem;
  display: grid;
  gap: 0.15rem;
}

.practice-summary-card strong {
  font-size: 0.86rem;
  line-height: 1.28;
}

.practice-summary-value {
  font-size: 1.26rem;
  line-height: 1.1;
  font-weight: 800;
  color: #0f172a;
}

.practice-summary-caption {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.practice-summary-meta {
  font-size: 0.74rem;
  color: var(--text-soft);
  line-height: 1.32;
}

.inline-select {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.inline-select select {
  min-width: 185px;
  font-size: 0.82rem;
  padding: 0.35rem 0.45rem;
}

[data-court-top-court] {
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 700;
}

[data-court-fresh-summary] {
  display: block;
  margin: -0.2rem 0 0.55rem;
}

.fresh-delta-positive {
  color: #0f766e;
  font-weight: 700;
}

.fresh-delta-negative {
  color: #b91c1c;
  font-weight: 700;
}

.fresh-delta-neutral {
  color: var(--text-muted);
  font-weight: 700;
}

.donut-wrap {
  width: 148px;
  height: 148px;
  margin: 0.45rem auto 0.72rem;
  position: relative;
  display: grid;
  place-items: center;
}

.donut-wrap svg {
  width: 148px;
  height: 148px;
  transform: rotate(-90deg);
}

.donut-center {
  position: absolute;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 650;
}

.legend {
  display: grid;
  gap: 0.4rem;
}

.legend-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.45rem;
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.legend-label {
  color: var(--text-soft);
  font-size: 0.85rem;
}

.legend-value {
  color: var(--text-muted);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  color: var(--text-muted);
  font-size: 0.84rem;
  padding: 0.5rem 0;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}

.media-card {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  padding: 0.85rem;
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  margin-bottom: 0.6rem;
  display: block;
}

.media-meta {
  margin: 0.55rem 0 0.75rem;
  display: grid;
  gap: 0.5rem;
  font-size: 0.82rem;
}

.repeater {
  margin-top: 1.1rem;
  border-top: 1px dashed var(--line);
  padding-top: 0.85rem;
}

.repeater h3 {
  margin: 0 0 0.55rem;
}

.repeater-items {
  display: grid;
  gap: 0.72rem;
}

.repeater-item {
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: #fcfdff;
  padding: 0.72rem;
}

.repeater-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.45rem 0.75rem;
}

.repeater-actions {
  margin-top: 0.55rem;
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 0.35rem 0.45rem;
}

.perm-grid label {
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-soft);
}

.chat-list {
  display: grid;
  gap: 0.55rem;
}

.chat-bubble {
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: #fff;
}

.chat-bubble.staff {
  background: rgba(14, 159, 110, 0.1);
  border-color: rgba(14, 159, 110, 0.24);
}

.chat-bubble.client {
  background: rgba(37, 99, 235, 0.08);
  border-color: rgba(37, 99, 235, 0.2);
}

.logs-table .table-row {
  line-height: 1.35;
}

.captcha-block {
  margin: 0.75rem 0 0.95rem;
}

@keyframes legal-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes legal-progress-indeterminate {
  0% {
    transform: translateX(-110%);
  }

  50% {
    transform: translateX(30%);
  }

  100% {
    transform: translateX(220%);
  }
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: sticky;
    min-height: auto;
    height: auto;
    border-right: none;
    border-bottom: 1px solid var(--line-soft);
    padding: 0.85rem 0.9rem;
    gap: 0.7rem;
  }

  .brand {
    margin-bottom: 0;
  }

  .nav {
    display: flex;
    gap: 0.35rem;
    overflow: auto;
    padding-bottom: 0.15rem;
    scrollbar-width: thin;
  }

  .nav a {
    white-space: nowrap;
  }

  .sidebar-footer {
    display: none;
  }

  .dashboard-head {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .top-row {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .top-user {
    overflow-wrap: anywhere;
  }

  .client-top-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem 0.8rem;
  }

  .client-nav {
    grid-column: 1 / -1;
    order: 3;
    width: 100%;
  }

  .client-nav-actions {
    justify-content: flex-end;
  }

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

  .dashboard-grid .panel-card,
  .dashboard-grid .panel-card.wide {
    grid-column: span 1;
  }

  .legal-grid,
  .legal-grid-main,
  .legal-feeds-grid {
    grid-template-columns: 1fr;
  }

  .legal-grid > .panel-card,
  .legal-grid-main > .panel-card,
  .legal-grid .panel-card.wide,
  .legal-topic-panel {
    grid-column: span 1;
  }

  .legal-practice-summary {
    grid-template-columns: 1fr;
  }

  .log-search,
  .user-filters,
  .doc-upload,
  .chat-form {
    grid-template-columns: 1fr 1fr;
  }

  .clients-filters-advanced {
    grid-template-columns: 1fr 1fr;
  }

  .clients-filters-advanced > input[type="text"] {
    grid-column: span 2;
  }

  .priority-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .priority-metrics {
    justify-content: flex-start;
  }

  .panel-head,
  .panel-actions,
  .status-line {
    align-items: flex-start;
  }

  .pagination > div {
    min-width: 0;
  }

  .table-row,
  .table .table-cell.path,
  .table .table-cell.value {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
}

@media (max-width: 820px) {
  .table {
    border: none;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }

  .table-head {
    display: none;
  }

  .table-row {
    min-width: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.58rem;
    margin-bottom: 0.7rem;
    padding: 0.85rem;
    border: 1px solid var(--line-soft);
    border-radius: 13px;
    background: #fff;
    box-shadow: var(--shadow-soft);
  }

  .table-row:last-child {
    margin-bottom: 0;
  }

  .row-form,
  .row-delete {
    display: block;
  }

  .row-delete {
    margin-top: 0.5rem;
  }

  .panel-card .table .table-row {
    border: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    padding: 0.52rem 0;
    border-bottom: 1px dashed var(--line-soft);
  }

  .panel-card .table .table-row:last-child {
    border-bottom: none;
  }

  .panel-card .table .table-cell.value {
    text-align: left;
  }

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

  .log-search,
  .user-filters,
  .doc-upload,
  .chat-form,
  .clients-filters-advanced,
  .invite-link,
  .lead-inline-form {
    grid-template-columns: 1fr;
  }

  .clients-filters-advanced > input[type="text"] {
    grid-column: span 1;
  }

  .clients-filters .btn,
  .clients-filters button,
  .doc-upload button,
  .chat-form button,
  .lead-inline-form button {
    width: 100%;
  }

  .panel-actions {
    width: 100%;
  }

  .panel-actions .btn,
  .panel-actions button,
  .panel-actions .link-muted {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .status-badge {
    white-space: normal;
    line-height: 1.2;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .top-row {
    align-items: flex-start;
  }

  .nav-actions {
    width: 100%;
  }

  .nav-actions form {
    flex: 1;
  }

  .nav-actions button,
  .nav-actions .btn {
    width: 100%;
  }

  .log-search,
  .user-filters,
  .doc-upload,
  .chat-form,
  .invite-link {
    grid-template-columns: 1fr;
  }

  .clients-filters-advanced > input[type="text"] {
    grid-column: span 1;
  }

  .lead-inline-form {
    grid-template-columns: 1fr;
  }

  .client-top-row {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .client-nav,
  .client-nav-actions {
    width: 100%;
  }

  .client-nav a {
    width: 100%;
    justify-content: center;
  }

  .client-nav-actions form {
    flex: 1 1 100%;
  }

  .client-nav-actions .link-muted {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
  }

  .client-main {
    padding-top: 0.8rem;
  }

  .lang-switch-inline {
    width: 100%;
  }

  .lang-switch-inline a {
    flex: 1 1 50%;
  }

  .pagination {
    flex-direction: column;
    align-items: flex-start;
  }

  .kpi-card {
    padding: 0.78rem 0.8rem;
  }

  .kpi-label {
    font-size: 0.76rem;
  }

  .kpi-note {
    font-size: 0.74rem;
  }

  .dashboard-hero,
  .panel,
  .panel-card,
  .card {
    padding: 0.9rem;
    border-radius: 14px;
  }
}

@media (max-width: 480px) {
  .wrap,
  .top-row {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .app-sidebar {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .dashboard-hero,
  .panel,
  .panel-card,
  .card {
    padding: 0.8rem;
  }

  .table-row {
    padding: 0.75rem;
  }
}
