:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: #233b33;
  background: #f6f7f4;
  font-size: 14px;
  --green: #1e7158;
  --ink: #233b33;
  --muted: #7c8983;
  --line: #e5e9e3;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
a {
  color: inherit;
}
button:disabled {
  opacity: 0.55;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #8ab9a8;
  outline-offset: 3px;
}
input,
textarea,
select {
  border: 1px solid #dfe5dd;
  border-radius: 9px;
  background: #fff;
  padding: 11px 12px;
  outline: 0;
  color: var(--ink);
  width: 100%;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #4d9679;
  box-shadow: 0 0 0 3px #26775312;
}
input[type='color'] {
  height: 42px;
  padding: 5px;
  width: 60px;
}
input[type='checkbox'] {
  width: auto;
  accent-color: var(--green);
}
textarea {
  resize: vertical;
  min-height: 90px;
  line-height: 1.5;
}
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 550;
  font-size: 12px;
  margin: 0 0 18px;
}
label small {
  font-weight: 400;
  color: var(--muted);
  line-height: 1.5;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 32px;
  font-weight: 560;
  letter-spacing: -1px;
  line-height: 1.25;
}
h2 {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.35px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
.muted {
  color: var(--muted);
  line-height: 1.6;
}
.eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.8px;
  color: #7f8f83;
  margin-bottom: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 238px 1fr;
  min-height: 100vh;
}
.sidebar {
  padding: 29px 20px 0;
  border-right: 1px solid var(--line);
  position: fixed;
  top: 0;
  bottom: 0;
  width: 238px;
  background: #fbfcf9;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-size: 19px;
  font-weight: 650;
  letter-spacing: -0.6px;
  margin: 2px 9px 44px;
}
.brand-mark {
  background: #245e49;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: #f3efdb;
  font:
    italic 700 28px Georgia,
    serif;
}
.brand small {
  display: block;
  letter-spacing: 2.4px;
  font-size: 8px;
  margin-top: 4px;
  color: #8b9a8d;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #9aa59b;
  margin: 0 15px 13px;
}
nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
nav button {
  border: 0;
  background: none;
  text-align: left;
  padding: 12px 14px;
  border-radius: 8px;
  color: #79867c;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}
nav button:hover {
  background: #eef2eb;
}
nav button.active {
  background: #e8eee3;
  color: #315a40;
  font-weight: 650;
}
.nav-icon {
  font-size: 20px;
  width: 20px;
  line-height: 20px;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.sidebar-bottom > button {
  border: 0;
  background: none;
  display: flex;
  width: 100%;
  justify-content: space-between;
  color: #818d82;
  padding: 10px 14px;
  font-size: 11px;
}
.hosting {
  border: 1px solid #e4e9dd;
  border-radius: 10px;
  padding: 14px 12px;
  margin: 0 4px 18px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 11px;
}
.hosting i,
.top-status i {
  display: block;
  background: #6c9b72;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 5px;
}
.hosting small {
  display: block;
  color: #929e91;
  font-size: 9px;
  margin-top: 6px;
}
.account {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding: 20px 3px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
}
.avatar {
  height: 32px;
  width: 32px;
  border-radius: 50%;
  background: #e6eadc;
  color: #7e8b63;
  display: grid;
  place-items: center;
  font-weight: 600;
}
.account strong {
  display: block;
  font-size: 10px;
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account small {
  display: block;
  font-size: 9px;
  color: #9aa197;
  margin-top: 4px;
}
.account button {
  border: 0;
  background: none;
  color: #7a8a7c;
  margin-left: auto;
}
.main {
  grid-column: 2;
  min-width: 0;
}
.topbar {
  height: 80px;
  border-bottom: 1px solid var(--line);
  padding: 0 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafbf7;
}
.breadcrumb {
  font-size: 10px;
  color: #8b968c;
}
.breadcrumb span {
  margin: 0 13px;
  color: #bdc5b9;
}
.breadcrumb strong {
  font-weight: 500;
  color: #59695e;
}
.top-status {
  font-size: 10px;
  color: #8a978b;
  display: flex;
  gap: 8px;
  align-items: center;
}
.top-status i {
  margin: 0;
}
.divider {
  margin: 0 12px;
  color: #d6dccf;
}
main {
  padding: 39px 44px 30px;
  max-width: 1680px;
  margin: auto;
  min-height: calc(100vh - 130px);
}
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.page-head h1 {
  margin-bottom: 9px;
}
.page-head p {
  margin-bottom: 0;
  font-size: 12px;
}
.page-head .actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.primary,
.secondary,
.danger {
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 11px;
  padding: 12px 17px;
  font-weight: 550;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.primary {
  background: var(--green);
  color: white;
  box-shadow: 0 2px 3px #153a2910;
}
.primary:hover {
  background: #185e48;
}
.secondary {
  background: white;
  color: #54695a;
  border-color: #e1e6dc;
}
.secondary:hover {
  background: #f2f5ef;
}
.danger {
  background: #fff4f2;
  color: #a85043;
  border-color: #f1d6ce;
}
.icon-button {
  background: none;
  border: 0;
  color: #7c8e7e;
  padding: 6px;
  font-size: 20px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 23px;
}
.metric {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 21px;
}
.metric .label {
  color: #889387;
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.metric .label span {
  color: #a7b5a2;
  font-size: 17px;
}
.metric strong {
  display: block;
  font-size: 29px;
  letter-spacing: -1px;
  font-weight: 550;
  margin-top: 15px;
}
.metric small {
  display: block;
  font-size: 10px;
  color: #8fa086;
  margin-top: 8px;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 22px;
}
.panel-head {
  padding: 22px 23px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.panel-head h2 {
  font-size: 14px;
  margin: 0 0 5px;
}
.panel-head p {
  margin: 0;
  font-size: 10px;
  color: #93a08f;
}
.panel-body {
  padding: 20px 23px;
}
.chart-wrap {
  padding: 0 25px 15px;
}
.chart {
  display: block;
  width: 100%;
  height: 180px;
}
.chart text {
  font-size: 9px;
  fill: #98a492;
}
.chart .grid {
  stroke: #eef1e9;
  stroke-dasharray: 4 4;
}
.chart-labels {
  display: flex;
  justify-content: space-between;
  color: #9aa590;
  font-size: 9px;
  padding-top: 4px;
}
.chart-legend {
  font-size: 10px;
  color: #899980;
}
.legend-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #639d79;
  border-radius: 50%;
  margin-right: 7px;
}
.row-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.pill {
  background: #edf4e9;
  color: #5e8652;
  font-size: 9px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 9px;
  white-space: nowrap;
}
.pill.off {
  background: #f4eee5;
  color: #aa9169;
}
.pill:before {
  content: '';
  height: 4px;
  width: 4px;
  border-radius: 50%;
  background: currentColor;
}
.table-wrap {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 500;
  color: #9aa58f;
  font-size: 9px;
  letter-spacing: 0.5px;
  background: #fbfcf9;
  padding: 13px 23px;
  border-top: 1px solid #eef1e9;
  border-bottom: 1px solid #eef1e9;
}
td {
  padding: 17px 23px;
  border-bottom: 1px solid #eef1e9;
  color: #798a75;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  color: #40573f;
  font-weight: 550;
}
td .subtext {
  font-size: 9px;
  margin-top: 5px;
  color: #a0aa98;
}
.bot-cell {
  display: flex;
  align-items: center;
  gap: 12px;
}
.bot-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #eef2e6;
  color: #7f9567;
  font-size: 19px;
}
.table-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.table-actions button {
  background: white;
  border: 1px solid #e6ebdf;
  border-radius: 7px;
  padding: 7px 10px;
  color: #7a8d71;
  font-size: 10px;
}
.toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  align-items: center;
}
.toolbar input {
  max-width: 330px;
  background: white;
  font-size: 11px;
}
.toolbar select {
  width: auto;
  min-width: 150px;
  font-size: 11px;
}
.empty {
  padding: 55px 24px;
  text-align: center;
}
.empty .empty-icon {
  font-size: 28px;
  color: #a4b496;
  margin-bottom: 14px;
}
.empty h3 {
  margin-bottom: 8px;
}
.empty p {
  font-size: 12px;
  color: #8c9a84;
  max-width: 390px;
  margin: 0 auto 20px;
  line-height: 1.7;
}
.page-footer {
  border-top: 1px solid var(--line);
  padding: 19px 44px;
  font-size: 8px;
  letter-spacing: 1.7px;
  color: #a5af99;
  display: flex;
  justify-content: space-between;
}
.page-footer span {
  font-size: 9px;
  letter-spacing: 0;
  color: #a1ad98;
}
.notice {
  border: 1px solid #e4e9d7;
  background: #f4f7ee;
  color: #748965;
  padding: 14px 17px;
  border-radius: 9px;
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 20px;
}
.error {
  color: #a35146;
  font-size: 12px;
  line-height: 1.5;
}
.editor {
  display: grid;
  grid-template-columns: minmax(350px, 1fr) 370px;
  gap: 24px;
  align-items: start;
}
.editor .panel-body {
  padding: 24px;
}
.editor-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  padding: 0 20px;
  overflow: auto;
}
.editor-tabs button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  padding: 17px 12px;
  white-space: nowrap;
  font-size: 11px;
  color: #8c9c83;
}
.editor-tabs button.active {
  color: var(--green);
  border-bottom-color: var(--green);
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 18px;
}
/* Les quatre couleurs partagent une ligne ; les sélecteurs restent alignés si un libellé se replie. */
.field-grid.color-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.color-grid > label {
  min-width: 0;
  justify-content: space-between;
}
@media (max-width: 600px) {
  .field-grid.color-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.check-label {
  flex-direction: row;
  align-items: center;
  font-weight: 400;
  gap: 10px;
  padding: 10px 0;
}
.color-field {
  display: flex;
  align-items: center;
  gap: 12px;
}
.color-field input[type='text'] {
  font-family: ui-monospace, monospace;
  width: 110px;
}
.preview {
  position: sticky;
  top: 25px;
}
.preview-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: #8d9b81;
  margin: 0 5px 17px;
}
.preview-stage {
  background: radial-gradient(#dfe5d3 1px, transparent 1px);
  background-size: 14px 14px;
  border: 1px solid #e3e8d8;
  border-radius: 14px;
  min-height: 570px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.preview-caption {
  font-size: 10px;
  color: #95a389;
  text-align: center;
  line-height: 1.7;
  margin-top: 15px;
}
.preview iframe {
  width: 100%;
  height: 570px;
  border: 0;
  border-radius: 12px;
  background: white;
}
.code-box {
  font-family: ui-monospace, SFMono-Regular, monospace;
  background: #f3f6ee;
  color: #5e7853;
  font-size: 11px;
  line-height: 1.8;
  padding: 18px;
  border: 1px solid #e3e9da;
  border-radius: 10px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.docs {
  max-width: 850px;
}
.docs h3 {
  margin: 25px 0 9px;
}
.docs p,
.docs li {
  font-size: 12px;
  line-height: 1.85;
  color: #7a8c6e;
}
.docs code {
  background: #edf2e5;
  padding: 2px 5px;
  border-radius: 4px;
}
.split-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}
.client-card {
  padding: 22px;
}
.client-card .initial {
  background: #eef3e7;
  height: 42px;
  width: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  font-size: 19px;
  color: #6e885c;
  margin-bottom: 20px;
}
.client-card h3 {
  font-size: 15px;
}
.client-card p {
  font-size: 11px;
  color: #8fa080;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 26px;
  width: min(520px, calc(100vw - 30px));
  color: var(--ink);
  box-shadow: 0 30px 100px #15281b30;
}
dialog::backdrop {
  background: #122a2166;
  backdrop-filter: blur(3px);
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.modal-head h2 {
  margin: 0;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #244c37;
  color: white;
  padding: 14px 25px;
  border-radius: 10px;
  box-shadow: 0 5px 25px #12321d20;
  font-size: 12px;
  z-index: 100;
}
.login {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: #fafbf7;
}
.login-card {
  width: min(420px, 90%);
  margin: auto;
  padding: 50px 20px;
}
.login-card .brand-mark {
  margin-bottom: 35px;
}
.login-card h1 {
  font-size: 37px;
  margin-bottom: 20px;
}
.login-card form {
  margin-top: 32px;
}
.login-card .primary {
  width: 100%;
  justify-content: space-between;
  font-size: 12px;
  padding: 15px 18px;
  margin-top: 5px;
}
.login-card small {
  color: #a1ac98;
  font-size: 10px;
}
.login-art {
  background: #e7ecdf;
  padding: 55px 65px;
  position: relative;
  overflow: hidden;
  color: #4e6a45;
}
.login-art > span {
  font-size: 9px;
  letter-spacing: 2px;
}
.login-art h2 {
  font:
    400 52px Georgia,
    serif;
  line-height: 1.1;
  letter-spacing: -2px;
  margin-top: 25px;
}
.login-art p {
  font-size: 12px;
  line-height: 1.9;
  color: #829775;
}
.art-orbit {
  width: 340px;
  height: 340px;
  margin: 55px auto 25px;
  border: 1px solid #c5d2b7;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow:
    0 0 0 28px #dfe6d5,
    0 0 0 29px #ced9c1,
    0 0 0 70px #e4eadd,
    0 0 0 71px #d2dcc6;
}
.orbit-core {
  background: #406a4b;
  color: #dce6c9;
  height: 150px;
  width: 150px;
  border-radius: 32px;
  display: grid;
  place-items: center;
  font:
    italic 90px Georgia,
    serif;
  transform: rotate(-10deg);
  box-shadow: 0 20px 50px #2b52252b;
}
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  main {
    padding-top: 50px;
  }
  .chart {
    height: 220px;
  }
}
@media (max-width: 1200px) {
  .editor {
    grid-template-columns: 1fr 310px;
  }
  main {
    padding: 30px;
  }
  .topbar {
    padding: 0 30px;
  }
  .client-grid {
    grid-template-columns: 1fr 1fr;
  }
  .metric {
    padding: 17px;
  }
}
@media (max-width: 1000px) {
  .shell {
    grid-template-columns: 190px 1fr;
  }
  .sidebar {
    width: 190px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    font-size: 17px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .editor {
    grid-template-columns: 1fr;
  }
  .preview {
    position: static;
    max-width: 420px;
  }
  .top-status {
    display: none;
  }
  .split-panels {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .shell {
    display: block;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .brand {
    margin: 0 0 18px;
  }
  .nav-label,
  .sidebar-bottom .hosting,
  .sidebar-bottom > button,
  .account {
    display: none;
  }
  nav {
    flex-direction: row;
    overflow: auto;
    gap: 4px;
  }
  nav button {
    white-space: nowrap;
    padding: 10px;
  }
  .nav-icon {
    display: none;
  }
  .sidebar-bottom {
    padding: 0;
  }
  .topbar {
    height: 50px;
    padding: 0 20px;
  }
  main {
    padding: 27px 20px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  h1 {
    font-size: 27px;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 15px;
  }
  .metric strong {
    font-size: 24px;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .client-grid {
    grid-template-columns: 1fr;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    padding: 20px;
  }
  .login {
    grid-template-columns: 1fr;
  }
  .login-art {
    display: none;
  }
  th,
  td {
    padding: 14px;
  }
  .editor .panel-body {
    padding: 18px;
  }
}
