:root {
  --green-50: #f0fdf6;
  --green-100: #dcfce9;
  --green-200: #bbf7d0;
  --green-500: #22a65a;
  --green-600: #168447;
  --green-700: #126b3b;
  --ink: #10231a;
  --muted: #5f6f66;
  --line: #dfe8e2;
  --soft: #f7faf8;
  --danger: #c93c3c;
  --shadow: 0 20px 50px rgba(16, 35, 26, 0.09);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--ink);
  background: #fff;
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 320px;
  background: #fff;
  color: var(--ink);
}
a {
  color: inherit;
}
.icon {
  width: 1.2em;
  height: 1.2em;
  display: inline-block;
  flex: none;
}
button,
input,
textarea,
select {
  font: inherit;
}
.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 20;
  padding: 9px 12px;
  background: #fff;
  border: 2px solid var(--green-600);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus {
  transform: none;
}
.site-header {
  height: 72px;
  border-bottom: 1px solid rgba(223, 232, 226, 0.85);
  background: rgba(255, 255, 255, 0.94);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
}
.header-inner,
.footer-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  font-weight: 780;
  letter-spacing: -0.025em;
  font-size: 18px;
}
.brand-dot {
  color: var(--green-600);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  color: #fff;
  background: var(--green-600);
  box-shadow: 0 9px 24px rgba(22, 132, 71, 0.24);
}
.brand-mark .icon {
  width: 21px;
  height: 21px;
}
.site-header nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
  font-weight: 650;
}
.site-header nav > a:not(.button) {
  text-decoration: none;
  color: var(--muted);
}
.site-header nav > a:hover {
  color: var(--green-700);
}
.inline-form {
  display: inline;
}
.link-button {
  appearance: none;
  border: 0;
  background: none;
  color: var(--muted);
  font-weight: 650;
  cursor: pointer;
  padding: 8px;
}
.link-button:hover {
  color: var(--green-700);
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  appearance: none;
  border: 1px solid var(--green-600);
  border-radius: 11px;
  padding: 12px 17px;
  background: var(--green-600);
  color: #fff;
  text-decoration: none;
  font-weight: 730;
  line-height: 1.15;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(22, 132, 71, 0.15);
  transition:
    transform 0.18s,
    background 0.18s,
    box-shadow 0.18s;
}
.button:hover {
  background: var(--green-700);
  transform: translateY(-1px);
  box-shadow: 0 9px 22px rgba(22, 132, 71, 0.2);
}
.button:focus-visible,
a:focus-visible,
summary:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(34, 166, 90, 0.25);
  outline-offset: 2px;
}
.button-small {
  padding: 9px 13px;
  border-radius: 9px;
  font-size: 13px;
}
.button-wide {
  width: 100%;
  margin-top: 6px;
}
.button-quiet {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
  box-shadow: none;
}
.button-quiet:hover {
  background: var(--soft);
  color: var(--green-700);
  box-shadow: none;
}
.button-danger {
  background: #fff;
  color: var(--danger);
  border-color: #f1bcbc;
  box-shadow: none;
}
.button-danger:hover {
  background: #fff5f5;
  color: #a72020;
  box-shadow: none;
}
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.06fr 0.94fr;
  gap: 70px;
  align-items: center;
  padding: 90px 0 86px;
  background: radial-gradient(
    circle at 18% 10%,
    var(--green-50),
    transparent 38%
  );
}
.hero-copy {
  max-width: 660px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  color: var(--green-700);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.13em;
}
.hero h1,
.page-shell h1 {
  font-size: clamp(42px, 5.3vw, 70px);
  line-height: 1.03;
  letter-spacing: -0.055em;
  margin: 18px 0 23px;
}
.lede {
  font-size: 19px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 22px;
  margin: 32px 0 25px;
}
.text-link {
  font-size: 14px;
  font-weight: 750;
  color: var(--green-700);
  text-underline-offset: 4px;
}
.trust-line {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 13px;
}
.trust-line .icon {
  color: var(--green-600);
}
.boundary-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 26px;
  background: #fff;
  box-shadow: var(--shadow);
}
.boundary-head {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 5px var(--green-100);
}
.flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 13px;
  margin: 27px 0;
  padding: 21px;
  border-radius: 16px;
  background: var(--soft);
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 750;
}
.flow-node .icon {
  width: 24px;
  height: 24px;
  color: var(--green-700);
}
.flow-node.cloud {
  color: var(--green-700);
}
.flow-arrow {
  text-align: center;
  font-size: 10px;
  color: var(--muted);
}
.flow-arrow strong {
  display: block;
  color: var(--green-600);
  font-size: 23px;
  line-height: 1;
}
.boundary-rule {
  display: flex;
  gap: 13px;
  padding: 15px 0;
  border-top: 1px solid var(--line);
}
.boundary-rule > span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: var(--green-700);
  background: var(--green-50);
  flex: none;
}
.boundary-rule p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}
.boundary-rule strong {
  color: var(--ink);
  font-size: 14px;
}
.feature-band {
  padding: 80px max(20px, calc((100% - 1180px) / 2));
  background: var(--soft);
  border-block: 1px solid var(--line);
}
.feature-band > div:first-child {
  max-width: 620px;
}
.feature-band h2 {
  font-size: 36px;
  letter-spacing: -0.035em;
  margin: 12px 0 35px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature-grid article {
  padding: 27px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.feature-grid .icon {
  width: 26px;
  height: 26px;
  color: var(--green-600);
}
.feature-grid h3 {
  margin: 20px 0 9px;
  font-size: 17px;
}
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}
footer {
  min-height: 90px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}
.footer-inner > span:first-child {
  font-weight: 800;
  color: var(--ink);
}
.footer-inner a {
  text-underline-offset: 3px;
}
.page-shell {
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 76px 0 90px;
}
.page-shell.narrow {
  width: min(780px, calc(100% - 40px));
}
.page-shell h1 {
  font-size: clamp(40px, 5vw, 60px);
}
.prose-card {
  margin-top: 38px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 12px 35px rgba(16, 35, 26, 0.055);
}
.prose-card h2 {
  font-size: 19px;
  margin: 32px 0 10px;
}
.prose-card h2:first-child {
  margin-top: 0;
}
.prose-card p,
.check-list {
  color: var(--muted);
  line-height: 1.7;
  font-size: 15px;
}
.check-list {
  list-style: none;
  padding: 0;
}
.check-list li {
  position: relative;
  padding: 7px 0 7px 29px;
}
.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-600);
  font-weight: 900;
}
.auth-main {
  background: var(--soft);
}
.auth-wrap {
  min-height: calc(100vh - 162px);
  display: grid;
  place-items: center;
  padding: 50px 20px;
}
.auth-card {
  width: min(430px, 100%);
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow);
}
.auth-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--green-50);
  color: var(--green-700);
  margin-bottom: 22px;
}
.auth-icon .icon {
  width: 23px;
  height: 23px;
}
.auth-card h1 {
  font-size: 31px;
  letter-spacing: -0.035em;
  margin: 10px 0 8px;
}
.auth-card > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.stack-form {
  display: grid;
  margin-top: 28px;
}
.stack-form label,
.grid-form label {
  font-size: 12px;
  font-weight: 750;
  color: #435149;
  margin-bottom: 7px;
}
.stack-form input,
.grid-form input,
.grid-form textarea,
.grid-form select {
  width: 100%;
  border: 1px solid #cfdad3;
  border-radius: 9px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
  margin: 0 0 17px;
}
.grid-form textarea {
  resize: vertical;
  line-height: 1.5;
}
.form-note {
  font-size: 11px !important;
  line-height: 1.55;
  margin-top: 20px !important;
  text-align: center;
}
.alert {
  margin: 22px 0 0;
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 13px;
}
.alert-error {
  border: 1px solid #efc1c1;
  background: #fff5f5;
  color: #9c2929;
}
.alert-success {
  border: 1px solid var(--green-200);
  background: var(--green-50);
  color: var(--green-700);
}
.dashboard-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 48px 0 90px;
}
.dashboard-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
}
.dashboard-heading h1 {
  font-size: 38px;
  letter-spacing: -0.04em;
  margin: 8px 0;
}
.dashboard-heading p {
  margin: 0;
  color: var(--muted);
}
.new-client {
  position: relative;
}
.new-client > summary {
  list-style: none;
}
.new-client > summary::-webkit-details-marker,
.edit-details > summary::-webkit-details-marker {
  display: none;
}
.new-client[open] > summary {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}
.pop-form {
  position: absolute;
  right: 0;
  top: 43px;
  z-index: 5;
  width: 520px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px 0 16px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.grid-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 14px;
}
.grid-form label {
  display: block;
}
.grid-form .full {
  grid-column: 1/-1;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
  margin: 30px 0 18px;
}
.stats article {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.stats .icon {
  width: 23px;
  height: 23px;
  color: var(--green-600);
}
.stats div {
  display: flex;
  flex-direction: column;
}
.stats strong {
  font-size: 24px;
  line-height: 1;
}
.stats span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.privacy-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 17px;
  border: 1px solid var(--green-200);
  border-radius: 12px;
  background: var(--green-50);
  font-size: 12px;
  color: var(--green-700);
}
.privacy-strip .icon {
  width: 21px;
  height: 21px;
}
.privacy-strip p {
  margin: 0;
  flex: 1;
}
.privacy-strip a {
  font-weight: 750;
  white-space: nowrap;
}
.invite-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 23px;
  margin-top: 24px;
  border: 1px solid #aadfbe;
  border-radius: 15px;
  background: linear-gradient(110deg, var(--green-50), #fff);
}
.invite-banner h2 {
  font-size: 18px;
  margin: 5px 0;
}
.invite-banner p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.invite-banner code {
  padding: 13px 16px;
  border: 1px dashed var(--green-600);
  border-radius: 9px;
  background: #fff;
  color: var(--green-700);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
}
.client-list {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}
.client-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 35, 26, 0.045);
  overflow: hidden;
}
.client-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px 13px;
}
.title-row {
  display: flex;
  align-items: center;
  gap: 11px;
}
.client-head h3 {
  font-size: 20px;
  margin: 0;
}
.client-head p {
  color: var(--muted);
  font-size: 12px;
  margin: 6px 0 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border-radius: 999px;
  background: #f0f3f1;
  color: #53645b;
  font-size: 10px;
  font-weight: 800;
  text-transform: capitalize;
}
.badge > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ba8a0;
}
.badge-active {
  background: var(--green-50);
  color: var(--green-700);
}
.badge-active > span {
  background: var(--green-500);
}
.badge-retired,
.badge-archived,
.badge-disconnected {
  background: #f2f3f2;
  color: #59645e;
}
.count-pill {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.client-notes {
  margin: 0 24px 14px;
  padding: 12px 14px;
  background: var(--soft);
  border-radius: 9px;
  color: var(--muted);
  white-space: pre-wrap;
  font-size: 12px;
  line-height: 1.55;
}
.client-actions {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 24px 21px;
  border-bottom: 1px solid var(--line);
}
.edit-details {
  position: relative;
}
.edit-details > summary {
  font-size: 12px;
  font-weight: 730;
  color: var(--green-700);
  cursor: pointer;
}
.edit-details .grid-form {
  position: absolute;
  z-index: 4;
  left: 0;
  top: 29px;
  width: 540px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: var(--shadow);
}
.installations {
  display: grid;
  gap: 14px;
  padding: 20px 24px;
}
.installation-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.installation-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.installation-title {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}
.mini-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--green-50);
  color: var(--green-700);
  flex: none;
}
.installation-title h4 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.015em;
}
.server-location {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 7px;
}
.region-name {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 750;
}
.estimate-cue {
  padding: 3px 6px;
  border-radius: 999px;
  background: var(--green-50);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}
.installation-title code {
  display: block;
  max-width: 52vw;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
  font-size: 9px;
}
.facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0 13px;
  padding: 14px;
  background: var(--soft);
  border-radius: 10px;
}
.facts div {
  min-width: 0;
}
.facts dt {
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 5px;
}
.facts dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.history {
  font-size: 12px;
}
.history summary,
.danger-zone summary {
  cursor: pointer;
  color: var(--green-700);
  font-weight: 730;
}
.timeline {
  position: relative;
  list-style: none;
  padding: 5px 0 0 13px;
  margin: 11px 0;
}
.timeline:before {
  content: "";
  position: absolute;
  left: 3px;
  top: 9px;
  bottom: 8px;
  width: 1px;
  background: var(--line);
}
.timeline li {
  position: relative;
  padding: 5px 0 9px 15px;
}
.timeline-dot {
  position: absolute;
  left: -13px;
  top: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green-500);
  box-shadow: 0 0 0 3px #fff;
}
.timeline strong {
  display: block;
  font-size: 11px;
}
.timeline time {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}
.empty-inline {
  color: var(--muted);
  font-size: 11px;
}
.compact-action {
  margin-top: 12px;
}
.compact-action .button {
  font-size: 11px;
  padding: 7px 10px;
}
.empty-small {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
  background: var(--soft);
  border-radius: 12px;
  font-size: 12px;
}
.empty-small strong {
  color: var(--ink);
  margin-bottom: 5px;
}
.danger-zone {
  margin: 0 24px 22px;
  padding-top: 2px;
  font-size: 11px;
}
.danger-zone summary {
  color: #9e3636;
}
.danger-zone > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 11px;
  padding: 13px;
  background: #fff7f7;
  border: 1px solid #f5d5d5;
  border-radius: 10px;
}
.danger-zone p {
  margin: 0;
  color: #814545;
}
.empty-state {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 70px 24px;
  border: 1px dashed #cddbd2;
  border-radius: 18px;
  background: #fff;
}
.empty-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: var(--green-50);
  color: var(--green-700);
}
.empty-icon .icon {
  width: 25px;
  height: 25px;
}
.empty-state h2 {
  font-size: 19px;
  margin: 16px 0 7px;
}
.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.connect-server {
  position: relative;
}
.connect-server > summary {
  list-style: none;
}
.connect-server > summary::-webkit-details-marker {
  display: none;
}
.connect-form {
  position: absolute;
  top: 46px;
  right: 0;
  z-index: 6;
  width: min(560px, calc(100vw - 40px));
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px 0 16px 16px;
  background: #fff;
  box-shadow: var(--shadow);
}
.connect-form label,
.server-search label,
.workspace-controls label,
.workspace-action label,
.site-picker {
  display: block;
  color: #435149;
  font-size: 12px;
  font-weight: 750;
}
.connect-form > div,
.server-search > div {
  display: flex;
  gap: 9px;
  margin-top: 7px;
}
.connect-form input,
.server-search input,
.workspace-controls input,
.workspace-controls select,
.workspace-action input,
.workspace-action select,
.site-picker select {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid #cfdad3;
  border-radius: 9px;
  background: #fff;
  color: var(--ink);
}
.connect-form input,
.server-search input {
  flex: 1;
}
.connect-form p,
.terminal-form p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}
.server-search {
  max-width: 520px;
  margin: 24px 0 15px;
}
.server-grid {
  display: grid;
  gap: 18px;
}
.server-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(16, 35, 26, 0.045);
}
.server-card-head,
.server-identity,
.server-actions,
.workspace-heading {
  display: flex;
  align-items: flex-start;
}
.server-card-head,
.workspace-heading {
  justify-content: space-between;
  gap: 20px;
}
.server-identity {
  gap: 13px;
}
.server-identity h2 {
  margin: 0 0 3px;
  font-size: 21px;
  letter-spacing: -0.02em;
}
.server-facts {
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 1fr 0.8fr;
  gap: 16px;
  margin: 20px 0;
  padding: 15px;
  border-radius: 11px;
  background: var(--soft);
}
.server-facts dt,
.detail-list dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
}
.server-facts dd,
.detail-list dd {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.server-actions {
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.disconnect-details {
  margin-left: auto;
  position: relative;
}
.disconnect-details > summary {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.disconnect-details form {
  position: absolute;
  right: 0;
  z-index: 4;
  width: 330px;
  padding: 15px;
  border: 1px solid #f1caca;
  border-radius: 11px;
  background: #fff;
  box-shadow: var(--shadow);
}
.disconnect-details p {
  margin: 0 0 11px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}
.subtle-id {
  display: block;
  margin-top: 17px;
  color: var(--muted);
  font-size: 9px;
}
.account-card {
  max-width: 620px;
}
.table-wrap {
  margin-top: 22px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.owner-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.owner-table caption {
  padding: 17px;
  text-align: left;
  font-weight: 800;
}
.owner-table th,
.owner-table td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}
.owner-table th {
  color: var(--muted);
  background: var(--soft);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.owner-table td span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}
.owner-table code {
  color: var(--muted);
  font-size: 9px;
}
.table-empty {
  padding: 35px !important;
  color: var(--muted);
  text-align: center !important;
}
.owner-accounts {
  margin-top: 20px;
}
.owner-accounts > summary {
  color: var(--green-700);
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
}
.workspace-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 90px;
}
.back-link {
  color: var(--green-700);
  font-size: 12px;
  font-weight: 750;
  text-underline-offset: 3px;
}
.workspace-heading h1 {
  margin: 10px 0 3px;
  font-size: 34px;
  letter-spacing: -0.04em;
}
.workspace-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.workspace-tabs {
  display: flex;
  gap: 5px;
  margin-top: 26px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}
.workspace-tabs a {
  padding: 11px 14px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}
.workspace-tabs a[aria-current="page"] {
  border-color: var(--green-600);
  color: var(--green-700);
}
.workspace-content {
  padding: 24px 0;
}
.workspace-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.workspace-panel,
.workspace-result,
.workspace-controls,
.workspace-action {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.workspace-panel h2,
.workspace-result h3 {
  margin: 0 0 14px;
  font-size: 17px;
}
.workspace-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}
.detail-list {
  display: grid;
  gap: 13px;
  margin: 0;
}
.workspace-controls,
.workspace-action {
  display: flex;
  align-items: flex-end;
  gap: 11px;
  margin-bottom: 15px;
}
.workspace-controls label,
.workspace-action label {
  flex: 1;
}
.workspace-controls input,
.workspace-controls select,
.workspace-action input,
.site-picker select {
  display: block;
  width: 100%;
  margin-top: 6px;
}
.site-list {
  display: grid;
  gap: 11px;
}
.site-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}
.site-list h3 {
  margin: 0 0 4px;
  font-size: 14px;
}
.site-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}
.workspace-result {
  margin-top: 15px;
}
.workspace-result pre,
.code-editor {
  width: 100%;
  max-height: 560px;
  margin: 0;
  padding: 15px;
  overflow: auto;
  border: 1px solid #263b30;
  border-radius: 9px;
  background: #132019;
  color: #d8f4e2;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
}
.code-editor {
  resize: vertical;
}
.authorization-card {
  max-width: 560px;
}
.authorization-origin {
  padding: 12px 14px;
  overflow-wrap: anywhere;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
  color: var(--ink) !important;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px !important;
}
.authorization-button {
  width: 100%;
  margin-top: 8px;
}
.authorization-back {
  display: inline-block;
  margin-top: 18px;
}
.workspace-history {
  margin-top: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.workspace-history > summary,
.restart-details > summary {
  cursor: pointer;
  font-weight: 750;
}
.restart-details form {
  display: grid;
  gap: 10px;
  min-width: 250px;
  margin-top: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--green-50);
}
.restart-details select {
  display: block;
  width: 100%;
  margin-top: 5px;
}
.restart-details .confirm-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}
.restart-details .confirm-check input {
  margin-top: 2px;
}
.file-list {
  margin-bottom: 15px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.file-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  text-decoration: none;
}
.file-row:last-child {
  border-bottom: 0;
}
.file-row:hover,
.file-row:focus-within {
  background: var(--green-50);
}
.file-row strong,
.file-row button {
  min-width: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  color: var(--green-700);
  font: inherit;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.file-row small {
  color: var(--muted);
  font-size: 11px;
}
.compact-empty {
  margin-bottom: 15px;
}
@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-top: 65px;
  }
  .hero-copy {
    max-width: none;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-heading {
    flex-direction: column;
  }
  .new-client {
    width: 100%;
  }
  .new-client > summary {
    width: 100%;
  }
  .pop-form {
    position: static;
    width: 100%;
    margin-top: 8px;
    border-radius: 14px;
  }
  .stats {
    grid-template-columns: 1fr;
  }
  .invite-banner {
    align-items: flex-start;
    flex-direction: column;
  }
  .client-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .edit-details {
    width: 100%;
  }
  .edit-details .grid-form {
    position: static;
    width: 100%;
    margin-top: 10px;
  }
  .facts {
    grid-template-columns: 1fr 1fr;
  }
  .connect-server {
    width: 100%;
  }
  .connect-server > summary {
    width: 100%;
  }
  .connect-form {
    position: static;
    width: 100%;
    margin-top: 8px;
    border-radius: 14px;
  }
  .server-facts,
  .workspace-overview {
    grid-template-columns: 1fr 1fr;
  }
  .workspace-controls,
  .workspace-action {
    align-items: stretch;
    flex-direction: column;
  }
  .footer-inner > span:nth-child(2) {
    display: none;
  }
}
@media (max-width: 560px) {
  .header-inner,
  .footer-inner,
  .hero,
  .dashboard-shell,
  .workspace-shell {
    width: min(100% - 28px, 1180px);
  }
  .page-shell.narrow {
    width: calc(100% - 28px);
  }
  .site-header nav {
    gap: 10px;
  }
  .site-header nav > a:not(.button) {
    display: none;
  }
  .hero {
    padding: 48px 0;
  }
  .hero h1 {
    font-size: 42px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .flow {
    grid-template-columns: 1fr;
    gap: 7px;
  }
  .flow-arrow strong {
    transform: rotate(90deg);
  }
  .feature-band {
    padding: 58px 14px;
  }
  .prose-card,
  .auth-card {
    padding: 25px;
  }
  .dashboard-heading h1 {
    font-size: 31px;
  }
  .grid-form {
    grid-template-columns: 1fr;
  }
  .grid-form .full {
    grid-column: auto;
  }
  .client-head {
    padding: 19px 18px;
  }
  .client-actions,
  .installations {
    padding-left: 18px;
    padding-right: 18px;
  }
  .client-notes,
  .danger-zone {
    margin-left: 18px;
    margin-right: 18px;
  }
  .facts {
    grid-template-columns: 1fr;
  }
  .server-facts,
  .workspace-overview {
    grid-template-columns: 1fr;
  }
  .server-card-head,
  .workspace-heading {
    align-items: stretch;
    flex-direction: column;
  }
  .server-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .disconnect-details {
    margin-left: 0;
  }
  .disconnect-details form {
    position: static;
    width: 100%;
    margin-top: 8px;
  }
  .connect-form > div,
  .server-search > div {
    align-items: stretch;
    flex-direction: column;
  }
  .installation-top {
    align-items: flex-start;
  }
  .installation-title code {
    max-width: 55vw;
  }
  .danger-zone > div {
    align-items: stretch;
    flex-direction: column;
  }
  .privacy-strip {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .privacy-strip p {
    flex-basis: calc(100% - 35px);
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
/* The complete interface stays on the selected server's own origin. */
.full-panel-main { padding: 18px 24px 24px; }
.full-panel-shell { width: 100%; margin: 0 auto; }
.full-panel-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 12px; }
.full-panel-toolbar h1 { font-size: 22px; margin: 6px 0 2px; }
.full-panel-toolbar p, .full-panel-note { color: var(--muted, #586960); font-size: 12px; line-height: 1.6; margin: 0; }
.full-panel-note { margin-bottom: 12px; }
.full-panel-frame { display: block; width: 100%; height: calc(100dvh - 242px); min-height: 600px; border: 1px solid var(--line, #dce7e0); border-radius: 16px; background: #fff; }
@media (max-width: 700px) { .full-panel-main { padding: 14px 10px; } .full-panel-toolbar { align-items: flex-start; gap: 12px; } .full-panel-toolbar .server-actions { flex-direction: column; gap: 6px; } .full-panel-frame { min-height: 680px; border-radius: 10px; } }
