@font-face {
  font-family: Atelier;
  src: local("Segoe UI"), local("Arial");
  font-display: swap;
}
* {
  box-sizing: border-box;
}
html {
  --accent: #2563eb;
  --navy: #172b4d;
  --muted: #5e7088;
  --line: #e6ebf2;
  --surface: #f5f7fb;
  font-family: Atelier, system-ui, sans-serif;
  color: var(--navy);
  background: var(--surface);
  font-size: 14px;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
a {
  color: var(--accent);
}
button,
input,
select,
textarea {
  border-radius: 7px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #87b6ff;
  outline-offset: 3px;
}
svg {
  width: 21px;
  height: 21px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 29px;
  letter-spacing: -0.9px;
  margin-bottom: 9px;
  font-weight: 680;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  margin-bottom: 7px;
}
h3 {
  font-size: 15px;
  margin: 24px 0 12px;
}
p {
  line-height: 1.7;
  color: var(--muted);
}
small {
  font-size: 12px;
}
.skip {
  position: fixed;
  top: -80px;
  left: 15px;
  z-index: 100;
  background: white;
  padding: 12px;
}
.skip:focus {
  top: 10px;
}
.shell {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 248px;
  position: fixed;
  inset: 0 auto 0 0;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 18px 20px;
  display: flex;
  flex-direction: column;
  z-index: 20;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 0 12px;
  color: var(--navy);
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1.1px;
}
.brand > svg {
  width: 37px;
  height: 40px;
  color: var(--accent);
}
.brand > span > span {
  display: block;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 5px;
  margin-top: 1px;
}
.workspace {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fafbfd;
  border-radius: 9px;
  padding: 12px 10px;
  margin: 31px 0 27px;
}
.workspace-icon {
  background: #e4edff;
  display: grid;
  place-items: center;
  border-radius: 7px;
  width: 33px;
  height: 36px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 700;
}
.workspace strong {
  display: block;
  font-size: 12px;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace small {
  color: var(--muted);
  font-size: 10px;
}
.nav-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.6px;
  color: #8994a6;
  padding: 0 12px;
  margin-bottom: 12px;
}
.nav-item {
  display: flex;
  align-items: center;
  text-align: left;
  gap: 12px;
  width: 100%;
  padding: 11px 12px;
  margin: 2px 0;
  color: #5e6c83;
  background: none;
  border: 0;
  font-size: 12px;
  position: relative;
  min-height: 42px;
}
.nav-item svg {
  width: 18px;
  height: 18px;
}
.nav-item.active {
  background: #eaf1ff;
  color: var(--accent);
  font-weight: 650;
}
.nav-item:hover {
  background: #f1f5fb;
}
.nav-item i {
  width: 6px;
  height: 6px;
  background: #e6a12d;
  border-radius: 100%;
  margin-left: auto;
}
.sidebar-bottom {
  font-size: 10px;
  margin-top: auto;
  padding: 35px 10px 0;
  color: #586a82;
}
.sidebar-bottom small {
  font-size: 10px;
  display: block;
  margin-top: 9px;
  color: #8994a6;
  line-height: 1.6;
}
.local-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: #259b77;
  border-radius: 50%;
  margin-right: 4px;
}
.body {
  margin-left: 248px;
  flex: 1;
  min-width: 0;
}
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 82px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 0 38px;
  gap: 15px;
}
.breadcrumb {
  font-size: 12px;
  color: #8691a2;
}
.breadcrumb span {
  margin: 0 12px;
  color: #c1c9d4;
}
.breadcrumb strong {
  color: #506079;
  font-weight: 500;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 25px;
}
.connection {
  font-size: 10px;
  color: #2b8167;
  display: flex;
  align-items: center;
  gap: 6px;
}
.connection:before {
  content: "";
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.connection.offline {
  color: #9b681d;
}
.profile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  background: none;
  text-align: left;
  font-size: 11px;
  color: var(--navy);
}
.profile > span {
  width: 33px;
  height: 33px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eaf0fa;
  font-size: 14px;
  font-weight: 600;
}
.profile small {
  display: block;
  color: var(--muted);
  font-size: 9px;
  margin-top: 4px;
}
main:not(.login):not(.loading) {
  padding: 33px 38px 20px;
  max-width: 1800px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
.page-heading p {
  font-size: 12px;
  margin-bottom: 0;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.4px;
  font-size: 9px;
  font-weight: 650;
  color: var(--muted);
  margin-bottom: 12px;
}
.primary,
.secondary {
  border: 1px solid transparent;
  padding: 10px 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  min-height: 39px;
  white-space: nowrap;
}
.primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 3px 7px #163e7c14;
}
.primary:hover {
  filter: brightness(0.95);
}
.primary svg,
.secondary svg {
  width: 16px;
  height: 16px;
}
.secondary {
  background: white;
  border-color: #dce3ed;
  color: #53647b;
}
.secondary:hover {
  background: #f6f8fc;
}
.wide {
  width: 100%;
}
.text-button {
  background: none;
  border: 0;
  color: var(--accent);
  font-size: 11px;
  padding: 5px 0;
  text-align: left;
}
.icon-button {
  background: none;
  border: 0;
  padding: 7px;
  color: #64758c;
  min-width: 34px;
  min-height: 34px;
  font-size: 21px;
}
.scopebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  padding-bottom: 17px;
  border-bottom: 1px solid var(--line);
  gap: 10px;
}
.scopebar label {
  display: flex;
  align-items: center;
  gap: 9px;
}
.scopebar label > svg {
  width: 16px;
  height: 16px;
  color: #667b98;
}
.scopebar select {
  border: 0;
  background: transparent;
  color: #465b78;
  font-size: 12px;
  max-width: 300px;
  padding: 8px 5px;
}
.scopebar > span {
  font-size: 10px;
  color: #8794a6;
}
.separator {
  margin: 0 10px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 24px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 20px 18px;
  min-width: 0;
}
.metric > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #728098;
  margin-bottom: 20px;
}
.metric > div svg {
  width: 17px;
  height: 17px;
  color: #9aa9bf;
}
.metric > strong {
  display: block;
  font-size: 25px;
  letter-spacing: -0.5px;
  white-space: nowrap;
  margin-bottom: 10px;
  font-weight: 650;
}
.metric > small {
  display: block;
  color: #8a97a8;
  font-size: 9px;
  line-height: 1.6;
}
.metric.highlight {
  border-top: 2px solid var(--accent);
}
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 22px;
}
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  min-width: 0;
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: 0 2px 4px #1b335203;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 23px 23px 17px;
}
.panel-heading p {
  font-size: 10px;
  margin: 0;
}
.panel-heading h2 {
  margin-bottom: 6px;
}
.panel.padded {
  padding: 25px;
}
.padded > .panel-heading {
  padding: 0 0 15px;
}
.panel > p.hint {
  padding: 0 24px;
}
.chart {
  height: 205px;
  padding: 12px 28px 22px;
  display: flex;
  align-items: flex-end;
  justify-content: space-around;
  gap: 10px;
}
.chart-column {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  flex: 1;
  max-width: 70px;
  height: 100%;
}
.chart-column > div {
  width: 65%;
  border-radius: 5px 5px 0 0;
  background: #8cb3f8;
  min-height: 3px;
}
.chart-column > span {
  font-size: 8px;
  color: #8795a8;
  margin-bottom: 7px;
  white-space: nowrap;
}
.chart-column > small {
  font-size: 9px;
  color: #8e9aac;
  margin-top: 10px;
}
.chart-empty {
  width: 100%;
  align-self: center;
  text-align: center;
  font-size: 11px;
  position: relative;
}
.chart-line {
  display: block;
  border-bottom: 1px dashed #dce4f0;
  width: 100%;
  margin-bottom: 22px;
}
.alert-list {
  padding: 0 23px;
}
.alert-list > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #f1f3f7;
}
.alert-list strong {
  font-size: 11px;
}
.alert-list small {
  display: block;
  font-size: 9px;
  color: #8a97a7;
  margin-top: 5px;
}
.alert-list .badge {
  margin-left: auto;
  white-space: nowrap;
}
.alert-icon {
  width: 27px;
  height: 29px;
  display: grid;
  place-items: center;
  background: #fff4df;
  color: #b98424;
  border-radius: 7px;
  font-weight: 700;
}
.alert-list + .text-button {
  margin: 18px 23px;
}
.count-pill {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  background: #fff4df;
  color: #b98424;
  border-radius: 6px;
  font-size: 10px;
}
.badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 500;
  padding: 5px 8px;
  border-radius: 5px;
  background: #eef2f8;
  color: #61718c;
}
.badge.confirmed {
  background: #eaf7f0;
  color: #28754f;
}
.badge.pending {
  background: #fff5df;
  color: #926720;
}
.badge.rejected {
  background: #fcecee;
  color: #ad4650;
}
.badge.neutral {
  background: #f3f5f9;
  color: #5e7088;
}
.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  white-space: nowrap;
}
th {
  background: #fafbfd;
  color: #8190a3;
  font-size: 10px;
  font-weight: 550;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px;
}
td {
  padding: 16px 18px;
  border-bottom: 1px solid #f0f3f7;
  font-size: 11px;
  color: #53647d;
}
td:first-child,
th:first-child {
  padding-left: 24px;
}
td:last-child,
th:last-child {
  padding-right: 24px;
}
td small {
  display: block;
  font-size: 9px;
  color: #91a0b2;
  margin-top: 5px;
  max-width: 230px;
  overflow: hidden;
  text-overflow: ellipsis;
}
td strong {
  color: #344b6a;
  font-weight: 600;
}
tbody tr:last-child td {
  border-bottom: 0;
}
.article-name {
  display: flex;
  align-items: center;
  gap: 12px;
}
.product-icon {
  display: grid;
  place-items: center;
  background: #f0f4fb;
  color: #7798c3;
  width: 34px;
  height: 35px;
  border-radius: 7px;
}
.product-icon svg {
  width: 18px;
  height: 18px;
}
.sort {
  border: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  padding: 0;
}
.notice {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  line-height: 1.7;
  padding: 16px 19px;
  background: #eef3fb;
  color: #617997;
  border: 1px solid #e2eaf6;
  border-radius: 8px;
  margin-bottom: 22px;
}
.notice > svg {
  width: 19px;
  height: 19px;
}
.notice.warning {
  background: #fff8e9;
  border-color: #f5e8cb;
  color: #906b32;
}
.notice .text-button {
  margin-left: 10px;
  white-space: nowrap;
}
footer {
  padding: 15px 38px 24px;
  font-size: 10px;
  color: #9aa6b6;
}
footer > span {
  margin: 0 7px;
}
.footer-right {
  float: right;
  font-size: 9px;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 23px;
  flex-wrap: wrap;
}
.search {
  display: flex;
  align-items: center;
  border: 1px solid #dfe5ef;
  border-radius: 7px;
  gap: 8px;
  padding: 0 10px;
  flex: 1;
  min-width: 190px;
  max-width: 330px;
}
.search svg {
  width: 16px;
  height: 16px;
  color: #8e9fb5;
}
.search input {
  border: 0;
  padding: 10px 0;
  width: 100%;
  font-size: 11px;
}
.toolbar > select {
  font-size: 11px;
  padding: 10px 8px;
  border: 1px solid var(--line);
  max-width: 170px;
  background: white;
  color: #65768d;
}
.grow {
  flex: 1;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: #5e7088;
  min-height: 38px;
}
.check-label input {
  accent-color: var(--accent);
}
.pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding: 15px 23px;
  font-size: 10px;
  color: #8594a8;
}
.pagination > div {
  display: flex;
  align-items: center;
  gap: 15px;
}
.pagination .secondary {
  font-size: 10px;
  min-height: 32px;
  padding: 7px 10px;
}
.hint {
  color: #8b98aa;
  font-size: 11px;
  line-height: 1.7;
}
.muted {
  color: #8c9aac;
}
.danger-text {
  color: #b04150;
}
.empty {
  text-align: center;
  padding: 45px 20px;
  color: #8999ae;
}
.empty > svg {
  height: 35px;
  width: 35px;
  color: #b0c1d8;
}
.empty h3 {
  margin: 15px 0 5px;
  font-size: 14px;
  font-weight: 500;
}
.empty p {
  font-size: 11px;
  margin: 0;
}
.quick-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 20px 0 24px;
}
.list-row {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}
.list-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.list-row strong {
  font-size: 12px;
}
.list-row small {
  display: block;
  color: #8595a9;
  font-size: 10px;
  margin-top: 5px;
}
.list-row p {
  font-size: 11px;
  margin: 8px 0 0;
}
.two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 11px;
  color: #5c6e87;
  margin-bottom: 17px;
  min-width: 0;
}
.field input,
.field select,
.field textarea,
.report-filter input {
  width: 100%;
  background: white;
  border: 1px solid #dce4ee;
  padding: 11px 12px;
  color: #304965;
  font-size: 12px;
  min-height: 41px;
}
.field input[type="color"] {
  padding: 5px;
  height: 41px;
  max-width: 100px;
}
.field input[type="file"] {
  padding: 9px;
  font-size: 11px;
}
.field small {
  font-size: 10px;
  line-height: 1.6;
  color: #8b98aa;
}
.field textarea {
  resize: vertical;
  line-height: 1.6;
  min-height: 80px;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
.checks {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.form-error {
  color: #b04150;
  font-size: 12px;
  margin: 10px 0;
  line-height: 1.7;
}
.report-filter {
  display: flex;
  gap: 14px;
  align-items: flex-end;
  flex-wrap: wrap;
  padding: 22px;
}
.report-filter label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 11px;
  color: #7b8ca2;
}
.report-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 0 24px 20px;
  gap: 0 40px;
}
.report-grid > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 16px 0;
  font-size: 12px;
}
.report-grid span {
  color: #7c8da2;
}
.report-grid strong {
  white-space: nowrap;
}
.report-grid + .notice {
  margin: 0 24px 20px;
}
.permission-table select {
  font-size: 11px;
  padding: 8px;
  border: 1px solid var(--line);
  color: #586c87;
  background: white;
  min-width: 95px;
}
.permission-table td:first-child {
  position: sticky;
  left: 0;
  background: white;
  z-index: 1;
}
.login {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 46% 54%;
  background: white;
}
.login-intro {
  padding: 55px 65px;
  background: #172b4d;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 50px;
  position: relative;
  overflow: hidden;
}
.login-intro:after {
  content: "";
  position: absolute;
  width: 400px;
  height: 400px;
  right: -200px;
  bottom: -150px;
  border: 1px solid #ffffff15;
  border-radius: 50%;
  box-shadow:
    0 0 0 60px #ffffff03,
    0 0 0 120px #ffffff02;
  pointer-events: none;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 13px;
  font-size: 15px;
  letter-spacing: 2px;
  font-weight: 700;
}
.wordmark svg {
  width: 35px;
  height: 35px;
  color: #9abff9;
}
.login-intro .eyebrow {
  color: #9db7dc;
  font-size: 9px;
  letter-spacing: 2px;
}
.login-intro h1 {
  font-size: 53px;
  line-height: 1.15;
  letter-spacing: -2px;
  font-weight: 550;
  margin-top: 25px;
  margin-bottom: 25px;
}
.login-intro p {
  color: #9bb0cd;
  max-width: 330px;
  font-size: 13px;
  line-height: 1.9;
}
.login-intro > small {
  color: #8199bc;
  font-size: 10px;
  line-height: 1.6;
}
.login-form {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
}
.login-card {
  width: 100%;
  max-width: 350px;
}
.login-card h2 {
  font-size: 25px;
  letter-spacing: -0.7px;
  margin-bottom: 12px;
}
.login-card > p {
  font-size: 12px;
  margin-bottom: 32px;
}
.login-card .field {
  margin-bottom: 20px;
}
.login-card .primary {
  margin-top: 8px;
  justify-content: space-between;
  padding: 13px 16px;
}
.login-card .hint {
  margin-top: 25px;
  font-size: 10px;
}
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #b5bdc9;
  font-size: 9px;
  margin: 24px 0;
}
.divider:before,
.divider:after {
  content: "";
  height: 1px;
  background: var(--line);
  flex: 1;
}
code {
  font-family: ui-monospace, monospace;
  font-size: 11px;
  overflow-wrap: anywhere;
}
pre {
  font-size: 11px;
  background: #f5f7fb;
  border-radius: 8px;
  padding: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 350px;
  overflow: auto;
  color: #536b88;
  line-height: 1.7;
}
.loading {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: #788ba5;
}
dialog {
  width: min(850px, 94vw);
  max-height: 90dvh;
  border: 1px solid #dae2ee;
  border-radius: 12px;
  padding: 0;
  color: var(--navy);
  box-shadow: 0 20px 80px #10284a33;
}
dialog::backdrop {
  background: #10234080;
  backdrop-filter: blur(3px);
}
dialog form > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  border-bottom: 1px solid var(--line);
}
dialog header h2 {
  font-size: 18px;
  margin: 0;
}
dialog .modal-content {
  padding: 24px;
  max-height: calc(90dvh - 150px);
  overflow: auto;
}
dialog form > footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 25px;
  border-top: 1px solid var(--line);
  background: #fafbfd;
}
.totp-qr {
  width: 190px;
  height: 190px;
  display: block;
  margin: 10px auto 20px;
}
.secret {
  display: block;
  padding: 15px;
  background: #f1f4f9;
  margin: 15px 0;
  user-select: all;
}
.line-editor {
  margin: 5px 0 22px;
}
.line-editor h3 {
  margin-top: 0;
}
.suggestion {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 13px;
  text-align: left;
  border: 1px solid var(--line);
  background: #f8faff;
  font-size: 11px;
}
.suggestion span {
  font-size: 10px;
  color: #7f91aa;
}
.operation-line {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.operation-line > div:first-child {
  flex: 1;
  min-width: 160px;
  font-size: 12px;
}
.operation-line small {
  display: block;
  font-size: 10px;
  color: #8b9cb1;
  margin-top: 6px;
}
.operation-line > .field {
  width: 100px;
  margin: 0;
}
.operation-line > .check-label {
  font-size: 10px;
  max-width: 90px;
}
#toast {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #173d31;
  color: white;
  padding: 15px 22px;
  border-radius: 9px;
  box-shadow: 0 5px 30px #0002;
  z-index: 100;
  max-width: min(460px, 90vw);
  font-size: 12px;
  line-height: 1.7;
  display: none;
}
#toast.show {
  display: block;
}
#toast.error {
  background: #8b3346;
}
.mobile-menu {
  display: none;
}
@media (min-width: 1600px) {
  .metric > strong {
    font-size: 30px;
  }
  .topbar,
  main:not(.login):not(.loading) {
    padding-left: 50px;
    padding-right: 50px;
  }
  .sidebar {
    width: 265px;
  }
  .body {
    margin-left: 265px;
  }
}
@media (max-width: 1200px) {
  .sidebar {
    width: 220px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .body {
    margin-left: 220px;
  }
  .topbar {
    padding: 0 25px;
  }
  main:not(.login):not(.loading) {
    padding: 26px 25px 20px;
  }
  .metric {
    padding: 17px 14px;
  }
  .metric > strong {
    font-size: 21px;
  }
  .metrics {
    gap: 12px;
  }
  .dashboard-grid {
    grid-template-columns: 1.2fr 1fr;
  }
  .breadcrumb {
    font-size: 10px;
  }
  .connection {
    display: none;
  }
  .topbar-right {
    gap: 12px;
  }
  .login-intro {
    padding: 45px;
  }
  .login-intro h1 {
    font-size: 44px;
  }
  .report-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 960px) {
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 35px;
  }
  .login-intro h1 {
    font-size: 38px;
  }
  .login-form {
    padding: 35px;
  }
  .toolbar .grow {
    display: none;
  }
  .two-columns {
    grid-template-columns: 1fr;
  }
  .breadcrumb {
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .heading-actions .primary {
    font-size: 10px;
    padding: 10px;
  }
  .footer-right {
    display: none;
  }
}
@media (max-width: 700px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.18s ease;
    width: 250px;
    box-shadow: 15px 0 45px #1b35531a;
  }
  .sidebar.open {
    transform: none;
  }
  .body {
    margin-left: 0;
  }
  .mobile-menu {
    display: block;
  }
  .topbar {
    height: 65px;
    padding: 0 16px;
    gap: 8px;
  }
  .topbar .breadcrumb {
    font-size: 10px;
    flex: 1;
  }
  .breadcrumb span {
    margin: 0 6px;
  }
  .profile > div {
    display: none;
  }
  .profile > span {
    height: 30px;
    width: 30px;
  }
  main:not(.login):not(.loading) {
    padding: 24px 16px 15px;
  }
  .page-heading {
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .heading-actions {
    margin-top: 5px;
  }
  .scopebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }
  .scopebar > span {
    padding-left: 28px;
  }
  .scopebar select {
    font-size: 11px;
    max-width: 300px;
  }
  .metric {
    padding: 15px 13px;
  }
  .metric > div {
    font-size: 10px;
    margin-bottom: 16px;
  }
  .metric > strong {
    font-size: 20px;
  }
  .metric > small {
    font-size: 9px;
    min-height: 28px;
  }
  .metrics {
    gap: 10px;
    margin-bottom: 18px;
  }
  .panel {
    margin-bottom: 18px;
  }
  .panel-heading {
    padding: 20px 18px 16px;
  }
  .panel-heading h2 {
    font-size: 14px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .alert-list {
    padding: 0 18px;
  }
  .chart {
    padding: 12px 18px 20px;
  }
  .toolbar {
    padding: 15px;
    gap: 9px;
  }
  .search {
    max-width: none;
    flex-basis: 100%;
  }
  .toolbar > select {
    max-width: 160px;
  }
  .toolbar .check-label {
    font-size: 10px;
  }
  .toolbar .secondary,
  .toolbar .primary {
    font-size: 10px;
    padding: 8px 10px;
    min-height: 35px;
  }
  .pagination {
    padding: 15px;
    font-size: 9px;
    flex-wrap: wrap;
    gap: 10px;
  }
  .pagination > div {
    gap: 10px;
  }
  .notice {
    align-items: flex-start;
    font-size: 10px;
    padding: 13px;
    flex-wrap: wrap;
  }
  .notice .text-button {
    margin-left: 0;
  }
  .list-row {
    padding: 15px;
    flex-wrap: wrap;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .field input,
  .field select,
  .field textarea {
    font-size: 16px;
  }
  .report-filter {
    padding: 17px;
    gap: 10px;
  }
  .report-filter input {
    font-size: 13px;
  }
  .report-filter label {
    flex: 1;
    min-width: 115px;
  }
  .report-filter .secondary {
    font-size: 10px;
  }
  .report-grid {
    padding: 0 18px 18px;
  }
  .report-grid > div {
    font-size: 11px;
  }
  .quick-actions {
    gap: 9px;
  }
  .quick-actions button {
    font-size: 10px;
    padding: 9px 11px;
  }
  footer {
    padding: 10px 16px 20px;
    font-size: 9px;
  }
  .panel.padded {
    padding: 20px;
  }
  .padded p {
    font-size: 12px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-intro {
    padding: 25px;
    min-height: auto;
    gap: 25px;
  }
  .login-intro h1 {
    font-size: 33px;
    margin: 15px 0;
    line-height: 1.1;
  }
  .login-intro h1 br {
    display: none;
  }
  .login-intro h1 br:after {
    content: " ";
  }
  .login-intro p,
  .login-intro > small {
    display: none;
  }
  .login-intro .eyebrow {
    font-size: 8px;
    margin-bottom: 0;
  }
  .wordmark {
    font-size: 12px;
  }
  .wordmark svg {
    height: 29px;
    width: 29px;
  }
  .login-form {
    padding: 35px 25px 45px;
  }
  .login-card h2 {
    font-size: 23px;
  }
  .login-card .field input {
    font-size: 16px;
  }
  .modal-content {
    padding: 18px !important;
  }
  dialog form > header {
    padding: 17px 18px;
  }
  dialog form > header h2 {
    font-size: 16px;
  }
  dialog form > footer {
    padding: 13px 18px;
  }
  .operation-line > .field {
    width: 100%;
    flex: 1;
    min-width: 95px;
  }
  .operation-line > div:first-child {
    flex-basis: 100%;
  }
  .operation-line > .check-label {
    max-width: 110px;
  }
  #toast {
    bottom: 15px;
    right: 15px;
  }
  .secret {
    font-size: 10px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
.column-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 6px 0;
}
.technical-wrap{max-width:1250px;margin:0 auto;padding:32px}.technical-notice{position:fixed;bottom:10px;left:20px;right:20px;z-index:50}.technical-wrap .secret{width:100%;min-height:65px}
@media(max-width:700px){.technical-wrap{padding:20px 14px}}
.pwa-update{position:fixed;bottom:12px;left:270px;right:20px;z-index:50;box-shadow:0 5px 25px #0002}.report-filter select{padding:10px;border:1px solid var(--line);background:#fff;color:var(--navy)}
@media(max-width:700px){.pwa-update{left:12px;right:12px;font-size:11px}}
.column-row label {
  flex: 1;
}
.column-row button {
  padding: 3px 9px;
  min-height: 28px;
}
.custom-field-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  border: 1px solid var(--line);
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 12px;
}
.custom-field-row .field {
  flex: 1;
  min-width: 100px;
  margin: 0;
}
#column-editor {
  max-width: 550px;
  margin-bottom: 25px;
}
/* Contraste des petits textes et états. */
.metric > div,
.metric > small,
.panel-heading p,
.muted,
.hint,
.field small,
.scopebar > span,
.eyebrow,
.breadcrumb,
.nav-label,
td small,
.alert-list small,
.chart-column > span,
.chart-column > small,
.pagination,
footer,
.footer-right,
.sidebar-bottom small,
.workspace small,
.profile small,
.list-row small,
.operation-line small,
.suggestion span {
  color: #5e7088;
}
th {
  color: #586b84;
}
.notice {
  color: #47617f;
}
.login-intro p {
  color: #b7c8e0;
}
.login-intro > small {
  color: #b0c2dc;
}
.divider {
  color: #66758b;
}
.line-total {
  font-size: 11px;
  color: #375b80;
}
.operation-total {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-top: 18px;
}
.primary {
  color: var(--accent-ink, #fff);
}
.text-button,
.nav-item.active,
.brand > svg {
  color: var(--accent-text, var(--accent));
}
