.ws-root {
  --ws-ink: #173e39;
  --ws-muted: #657c75;
  --ws-line: #dce7e1;
  --ws-green: #246b58;
  font:
    14px/1.55 system-ui,
    -apple-system,
    Segoe UI,
    sans-serif;
  color: var(--ws-ink);
}
.ws-root * {
  box-sizing: border-box;
}
.ws-root a {
  color: #216d59;
}
.ws-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.ws-btn {
  font: inherit;
  padding: 10px 15px;
  border: 1px solid var(--ws-line);
  border-radius: 8px;
  background: white;
  color: var(--ws-ink);
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.ws-btn.primary {
  background: var(--ws-green);
  color: white;
  border-color: var(--ws-green);
}
.ws-btn.danger {
  color: #a5362d;
}
.ws-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.ws-btn:focus-visible,
.ws-field input:focus-visible,
.ws-field select:focus-visible {
  outline: 3px solid #d7ac65;
  outline-offset: 2px;
}
.ws-panel {
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 13px;
  padding: 23px;
  margin-bottom: 19px;
}
.ws-panel h2,
.ws-panel h3 {
  margin: 0 0 12px;
}
.ws-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}
.ws-top h2 {
  font-size: 24px;
  margin: 0 0 6px;
}
.ws-top p,
.ws-muted {
  color: var(--ws-muted);
  margin: 0;
}
.ws-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.ws-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}
.ws-field.wide {
  grid-column: 1/-1;
}
.ws-field input,
.ws-field select,
.ws-field textarea {
  font: inherit;
  border: 1px solid var(--ws-line);
  border-radius: 7px;
  background: #fff;
  color: var(--ws-ink);
  padding: 11px;
  width: 100%;
}
.ws-field textarea {
  resize: vertical;
  min-height: 110px;
}
.ws-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 400;
}
.ws-check input {
  width: auto;
}
.ws-form .ws-actions {
  margin-top: 22px;
  justify-content: flex-end;
}
.ws-error {
  padding: 12px;
  background: #fff0ec;
  border: 1px solid #e9b8ad;
  border-radius: 7px;
  color: #973b2d;
  margin: 15px 0;
  white-space: pre-line;
}
.ws-info {
  background: #eef5f0;
  border: 1px solid #dce9df;
  border-radius: 8px;
  padding: 13px;
  margin: 14px 0;
}
.ws-tag {
  display: inline-block;
  padding: 3px 8px;
  background: #e5f0e9;
  border-radius: 5px;
  font-size: 11px;
}
.ws-code {
  font:
    700 36px ui-monospace,
    monospace;
  letter-spacing: 5px;
  padding: 25px;
  text-align: center;
  background: #eff5f0;
  border-radius: 10px;
  overflow-wrap: anywhere;
}
.ws-table-wrap {
  overflow: auto;
}
.ws-table {
  width: 100%;
  border-collapse: collapse;
  white-space: nowrap;
}
.ws-table td,
.ws-table th {
  padding: 12px;
  text-align: left;
  border-bottom: 1px solid var(--ws-line);
  font-size: 12px;
}
.ws-table th {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--ws-muted);
  letter-spacing: 0.08em;
}
.ws-table td pre {
  max-width: 450px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ws-tabs {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  padding: 15px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ws-line);
}
.ws-tabs button {
  border: 0;
  background: transparent;
  padding: 9px 13px;
  color: var(--ws-muted);
  font: inherit;
  cursor: pointer;
  border-radius: 7px;
}
.ws-tabs button.active {
  background: #e0eee6;
  color: var(--ws-ink);
  font-weight: 700;
}
.ws-permissions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  max-height: 380px;
  overflow: auto;
  padding: 12px;
  background: #f8faf8;
  border-radius: 9px;
  grid-column: 1/-1;
}
.ws-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px;
  border-bottom: 1px solid #e4ece6;
  font-size: 12px;
}
.ws-permission select {
  max-width: 120px;
  padding: 6px;
  border: 1px solid var(--ws-line);
  border-radius: 6px;
}
.ws-dialog {
  max-width: 850px;
  width: calc(100% - 30px);
  max-height: 92vh;
  border: 0;
  border-radius: 14px;
  padding: 0;
  box-shadow: 0 25px 120px #0004;
}
.ws-dialog::backdrop {
  background: #102f34a6;
}
.ws-dialog > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px;
  border-bottom: 1px solid var(--ws-line);
}
.ws-dialog header h3 {
  margin: 0;
  font-size: 21px;
}
.ws-dialog .ws-content {
  padding: 24px;
}
.ws-auth {
  min-height: 100vh;
  background: #f1f6f0;
  display: grid;
  place-items: center;
  padding: 24px;
}
.ws-auth-card {
  max-width: 530px;
  width: 100%;
  background: #fff;
  border: 1px solid #dce7e1;
  border-radius: 15px;
  padding: 35px;
  box-shadow: 0 20px 70px #193d3810;
}
.ws-auth-card h1 {
  font:
    35px/1.1 Georgia,
    serif;
  margin: 10px 0 20px;
}
.ws-auth-card .ws-field {
  margin-bottom: 16px;
}
.ws-auth-card .ws-btn {
  width: 100%;
  margin-top: 9px;
}
.ws-assistant {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 22px;
  align-items: start;
}
.ws-answer {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #fff;
  border: 1px solid var(--ws-line);
  border-radius: 10px;
  padding: 20px;
  max-height: 650px;
  overflow: auto;
  line-height: 1.75;
}
.ws-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.ws-card {
  border: 1px solid var(--ws-line);
  padding: 17px;
  border-radius: 9px;
  background: #fff;
  text-align: left;
  cursor: pointer;
  color: var(--ws-ink);
  font: inherit;
}
.ws-card b {
  display: block;
}
.ws-card small {
  color: var(--ws-muted);
}
.lagon-wp-front {
  margin: 0;
  background: #f5f8f4;
  font-family: system-ui, sans-serif;
}
.lagon-wp-header {
  padding: 17px 26px;
  background: #173e39;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.lagon-wp-header a {
  color: white;
  text-decoration: none;
}
.lagon-wp-header .ws-btn {
  color: #173e39;
}
.lagon-wp-main {
  max-width: 1400px;
  margin: auto;
  padding: 25px;
}
.ws-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  gap: 23px;
}
.ws-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  position: sticky;
  top: 15px;
  background: white;
  border: 1px solid var(--ws-line);
  padding: 12px;
  border-radius: 12px;
}
.ws-nav button {
  border: 0;
  border-radius: 7px;
  background: white;
  text-align: left;
  padding: 12px;
  color: #2c594b;
  font: inherit;
  cursor: pointer;
}
.ws-nav button.active {
  background: #e2f0e7;
  font-weight: 700;
}
.ws-mobile-sync {
  white-space: nowrap;
}
.ws-small {
  font-size: 11px;
}
.ws-source {
  background: #fbfcf9;
  border-left: 3px solid #54997b;
  padding: 12px;
  margin-top: 10px;
}
.ws-source p {
  margin: 7px 0;
}
.ws-progress {
  padding: 10px;
  color: #61776f;
}
.ws-hidden {
  display: none !important;
}
@media (max-width: 800px) {
  .ws-grid,
  .ws-assistant,
  .ws-layout {
    grid-template-columns: 1fr;
  }
  .ws-permissions {
    grid-template-columns: 1fr;
  }
  .ws-top {
    align-items: start;
    flex-direction: column;
  }
  .ws-cards {
    grid-template-columns: 1fr 1fr;
  }
  .ws-nav {
    flex-direction: row;
    flex-wrap: wrap;
    position: static;
  }
  .ws-auth-card {
    padding: 25px;
  }
  .lagon-wp-main {
    padding: 15px;
  }
  .lagon-wp-header {
    padding: 13px;
    flex-wrap: wrap;
  }
  .ws-code {
    font-size: 26px;
    letter-spacing: 3px;
  }
}

.ws-sync-times {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 35px;
  margin: 18px 0;
}
.ws-sync-times div {
  display: grid;
  gap: 5px;
}
.ws-sync-times dt {
  font-size: 12px;
  color: var(--ws-muted);
}
.ws-sync-times dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
}
.ws-tag.pending {
  background: #fff1d6;
  color: #7c5b20;
}
