:root {
  color-scheme: light;
  --ink: #202c29;
  --muted: #687670;
  --line: #e1e7e2;
  --brand: #1c644b;
  --paper: #f5f7f3;
  --nav: #182e26;
  --soft: #eef4ef;
  font:
    15px/1.55 "Segoe UI",
    system-ui,
    sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--brand);
  color: white;
  cursor: pointer;
  padding: 10px 16px;
  font-weight: 600;
}
button:hover {
  background: #124c38;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.secondary {
  background: white;
  border-color: var(--line);
  color: var(--ink);
}
.secondary:hover {
  background: var(--soft);
}
.danger {
  background: #f9e9e7;
  color: #a12d35;
  border-color: #efd0cc;
}
.danger:hover {
  background: #f2d5d1;
}
:focus-visible {
  outline: 3px solid #80ae99;
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 34px;
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 10px;
}
h2 {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.4px;
  margin-bottom: 18px;
}
h3 {
  font-size: 16px;
}
p {
  color: var(--muted);
  margin-bottom: 16px;
}
small {
  font-size: 12px;
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.7px;
  color: var(--brand);
  margin-bottom: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 19px;
  letter-spacing: -0.4px;
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  background: #9fcea9;
  color: #19372a;
  font:
    bold 30px/1 Georgia,
    serif;
  border-radius: 10px;
}
.row {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.row > div {
  flex: 1;
  min-width: 130px;
}
.spread {
  justify-content: space-between;
}
.badge {
  font-size: 11px;
  border: 1px solid #d3e1d5;
  color: var(--brand);
  background: #eef6ef;
  padding: 7px 11px;
  border-radius: 20px;
  white-space: nowrap;
}
.login-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.04fr 1fr;
}
.login-story {
  background: var(--nav);
  color: #f4f5eb;
  padding: 48px 10%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  position: relative;
  overflow: hidden;
}
.login-story:after {
  content: "";
  position: absolute;
  right: -200px;
  top: 35%;
  width: 440px;
  height: 440px;
  border: 1px solid #355046;
  border-radius: 50%;
  box-shadow:
    0 0 0 70px #ffffff02,
    0 0 0 140px #ffffff02;
  pointer-events: none;
}
.login-story > div {
  position: relative;
  z-index: 1;
}
.login-story .eyebrow {
  color: #b1d1b7;
}
.login-story h1 {
  font-size: clamp(32px, 4vw, 55px);
  letter-spacing: -1.8px;
  line-height: 1.15;
  margin: 25px 0;
}
.login-story p {
  color: #b3c3b9;
}
.login-story .login-foot {
  font-size: 12px;
  margin: 0;
}
.login-flow {
  display: flex;
  gap: 15px;
  align-items: center;
  margin-top: 38px;
  font-size: 12px;
}
.login-flow span {
  border: 1px solid #52695e;
  padding: 10px 14px;
  border-radius: 8px;
}
.login-flow span:nth-of-type(2) {
  background: #afceaa;
  color: #1b3729;
  border-color: #afceaa;
  font-weight: 700;
}
.login-flow b {
  color: #8ea896;
}
.login-side {
  display: grid;
  place-items: center;
  padding: 40px;
  background: #fafbf8;
}
.login-card {
  width: min(100%, 390px);
}
.login-card h2 {
  font-size: 29px;
  margin-bottom: 12px;
}
.login-card p {
  font-size: 14px;
}
.login-card form {
  margin-top: 30px;
}
.login-card form > button {
  width: 100%;
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
}
.login-note {
  font-size: 12px !important;
  text-align: center;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 28px;
}
.login-card [role="status"] {
  margin-top: 16px;
  color: #9b3334;
  min-height: 22px;
}
.password-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px;
}
.password-screen .brand-mark {
  margin-bottom: 25px;
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 238px;
  background: var(--nav);
  color: #c0cfc4;
  padding: 30px 18px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  z-index: 5;
}
.sidebar .brand {
  color: #f3f5ed;
  padding: 0 8px;
}
.sidebar-caption {
  font-size: 10px;
  letter-spacing: 1.8px;
  margin: 42px 12px 13px;
  color: #829b8b;
}
.nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  text-align: left;
  gap: 13px;
  background: transparent;
  color: #b8c9bc;
  padding: 12px;
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 5px;
}
.nav-item span {
  font:
    11px ui-monospace,
    monospace;
  color: #819b89;
}
.nav-item:hover {
  background: #284136;
}
.nav-item.active {
  background: #b6d5b1;
  color: #193427;
  font-weight: 650;
}
.nav-item.active span {
  color: #44694b;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 12px;
  padding: 22px 12px 0;
  border-top: 1px solid #355046;
}
.sidebar-bottom p {
  font-size: 11px;
  color: #809e89;
  margin: 5px 0;
}
.environment-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a9cea3;
  margin-right: 6px;
}
.workspace-body {
  margin-left: 238px;
  width: calc(100% - 238px);
}
.topbar {
  height: 76px;
  background: #fdfefb;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  font-size: 12px;
  color: var(--muted);
  gap: 10px;
}
.topbar button {
  font-size: 12px;
  padding: 7px 12px;
}
#session-user {
  color: var(--ink);
  font-weight: 600;
}
.content {
  padding: 36px;
  max-width: 1600px;
  margin: 0 auto;
}
.page-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.page-heading .eyebrow {
  margin-bottom: 7px;
}
.page-heading p:last-child {
  font-size: 14px;
  margin-bottom: 0;
}
.page-heading > .badge {
  margin-top: 16px;
}
.status-bar {
  font-size: 12px;
  margin: 22px 0 26px;
  padding: 10px 14px;
  border: 1px solid #d9e5db;
  background: #edf3ee;
  color: #355841;
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  padding: 12px 36px 24px;
  font-size: 11px;
  color: #7c8d81;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 26px;
}
.metrics article {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
}
.metrics span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}
.metrics strong {
  display: block;
  font-size: 35px;
  letter-spacing: -1px;
  line-height: 1.5;
  font-weight: 600;
}
.metrics small {
  font-size: 11px;
}
.metrics article:last-child strong {
  font-size: 23px;
  line-height: 2.3;
  color: var(--brand);
}
section {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  margin-bottom: 22px;
  min-width: 0;
}
section > p {
  font-size: 13px;
}
.welcome-panel {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  background: #e9efe1;
  border-color: #dce5d4;
  padding: 28px;
}
.welcome-panel h2 {
  font-size: 24px;
  margin-bottom: 12px;
}
.welcome-panel p {
  font-size: 13px;
}
.network-art {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font:
    12px ui-monospace,
    monospace;
}
.network-art span {
  padding: 10px 18px;
  border: 1px solid #c7d6bd;
  border-radius: 8px;
  background: #ffffff60;
}
.network-art span:nth-child(2) {
  background: var(--nav);
  color: #d7e8cf;
  border: none;
  box-shadow: 0 6px 20px #18312620;
}
.overview-service {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.overview-service:last-child {
  border-bottom: 0;
}
.transport-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  background: #edf3ee;
  border-radius: 10px;
  font:
    10px ui-monospace,
    monospace;
  color: var(--brand);
  flex-shrink: 0;
}
.overview-service > div:nth-child(2) {
  flex: 1;
}
.overview-service strong {
  font-size: 13px;
  font-weight: 600;
  display: block;
}
.overview-service small {
  display: block;
}
.service-state {
  font-size: 11px;
  padding: 4px 8px;
  background: #edf4ee;
  color: #386b45;
  border-radius: 6px;
}
.service-state.offline {
  background: #f5efdf;
  color: #806b3c;
}
.event-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
  font-size: 12px;
}
.event-row:last-child {
  border: 0;
}
.event-row span:last-child {
  color: var(--muted);
}
label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 16px 0 7px;
}
input,
select,
textarea {
  background: #fff;
  border: 1px solid #ced9cf;
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--ink);
  width: 100%;
  min-width: 0;
}
input::placeholder {
  color: #94a198;
  font-size: 12px;
}
input[type="checkbox"] {
  width: auto;
  vertical-align: middle;
  margin-right: 7px;
}
input[readonly] {
  background: #f0f3ef;
}
textarea {
  resize: vertical;
  font:
    13px/1.6 ui-monospace,
    monospace;
}
form > button {
  margin-top: 18px;
}
form > p {
  font-size: 12px;
  margin-top: 12px;
}
details {
  margin-top: 16px;
}
summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
details[open] > summary {
  margin-bottom: 15px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: #f5f7f4;
  border: 1px solid #e6ece5;
  border-radius: 8px;
  padding: 15px;
  font:
    12px/1.65 ui-monospace,
    monospace;
  max-height: 280px;
  overflow: auto;
}
.scroll {
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 12px;
}
th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: #f8faf6;
  font-weight: 600;
  white-space: nowrap;
}
th,
td {
  padding: 13px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
td {
  overflow-wrap: anywhere;
  max-width: 340px;
}
tr:hover td {
  background: #fafbf8;
}
.service-toolbar {
  display: flex;
  gap: 14px;
  margin: 20px 0;
}
.service-toolbar input {
  flex: 1;
}
.service-toolbar button {
  white-space: nowrap;
}
.endpoint {
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 16px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.endpoint > div:first-child {
  font-weight: 600;
  flex: 1;
  min-width: 170px;
}
.endpoint small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  margin-top: 5px;
}
.endpoint .row {
  gap: 7px;
}
.endpoint button {
  font-size: 11px;
  padding: 7px 10px;
}
.endpoint-description {
  font-weight: 400;
  margin: 8px 0 0;
  font-size: 12px;
  white-space: pre-wrap;
  max-width: 650px;
  overflow-wrap: anywhere;
}
.guidance-editor {
  margin: 8px 0 20px;
  padding: 10px 16px;
  background: #f8faf6;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.guidance-editor > summary {
  font-size: 11px;
  font-weight: 400;
}
.guidance-editor[open] {
  padding: 16px;
}
.credential-editor {
  margin: 18px 0;
  padding: 18px;
  background: #f7faf5;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.credential-editor p {
  font-size: 12px;
}
.search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}
.tool-search-result {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  margin-top: 16px;
}
.tool-search-result h3 {
  margin: 0 0 7px;
  font-size: 14px;
  overflow-wrap: anywhere;
}
.tool-search-result p {
  font-size: 12px;
  margin-bottom: 10px;
}
.search-description {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.search-warning {
  color: #906a27;
}
.tool-search-result button {
  font-size: 12px;
}
.tool-search-result p:first-of-type {
  color: var(--brand);
  font-size: 11px;
}
#tool-search-status,
#search-provider-status,
#search-settings-feedback {
  font-size: 12px;
  margin-top: 15px;
}
#search-provider-models {
  overflow-wrap: anywhere;
  font-size: 12px;
}
#search-settings-details {
  margin: 0;
}
#search-settings-details > summary {
  font-size: 18px;
}
#search-settings-section p {
  font-size: 12px;
}
#schema {
  max-height: 220px;
}
#tool-guidance {
  max-height: 180px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  max-width: 820px;
  width: calc(100% - 40px);
  max-height: 90vh;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 20px 90px #153d3340;
}
dialog::backdrop {
  background: #142a2566;
  backdrop-filter: blur(3px);
}
dialog section {
  border: 0;
  margin: 0;
  padding: 28px;
}
dialog .row.spread > h2 {
  margin: 0;
}
dialog .row.spread {
  margin-bottom: 22px;
}
#server-cancel {
  margin-left: 8px;
}
.empty-state {
  padding: 25px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
@media (max-width: 1100px) {
  .sidebar {
    width: 212px;
  }
  .workspace-body {
    margin-left: 212px;
    width: calc(100% - 212px);
  }
  .content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .metrics {
    gap: 10px;
  }
  .metrics article {
    padding: 16px;
  }
  .network-art {
    width: 180px;
  }
  .search-layout {
    grid-template-columns: 1fr;
  }
  .endpoint .row {
    width: 100%;
  }
}
@media (max-width: 760px) {
  .login-screen {
    grid-template-columns: 1fr;
  }
  .login-story {
    min-height: 300px;
    padding: 28px;
  }
  .login-story h1 {
    font-size: 32px;
    margin: 18px 0;
  }
  .login-story .login-flow,
  .login-story .login-foot,
  .login-story > div > p:last-of-type {
    display: none;
  }
  .login-story .eyebrow {
    margin-top: 25px;
    font-size: 9px;
  }
  .login-side {
    padding: 35px 24px;
  }
  .sidebar {
    position: relative;
    width: 100%;
    padding: 18px;
  }
  .sidebar .brand {
    padding: 0;
  }
  .sidebar-caption,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    display: flex;
    overflow: auto;
    margin-top: 16px;
    gap: 5px;
  }
  .nav-item {
    width: auto;
    flex-shrink: 0;
    margin: 0;
    font-size: 11px;
    padding: 8px;
  }
  .nav-item span {
    display: none;
  }
  .workspace {
    display: block;
  }
  .workspace-body {
    margin: 0;
    width: 100%;
  }
  .topbar {
    height: 58px;
    padding: 0 18px;
  }
  .content {
    padding: 24px 16px;
  }
  .page-heading .badge {
    display: none;
  }
  h1 {
    font-size: 27px;
  }
  .page-heading p:last-child {
    font-size: 12px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics strong {
    font-size: 30px;
  }
  .metrics article:last-child strong {
    font-size: 20px;
  }
  .welcome-panel {
    padding: 22px;
  }
  .welcome-panel h2 {
    font-size: 20px;
  }
  .network-art {
    display: none;
  }
  section {
    padding: 18px;
  }
  table {
    min-width: 580px;
  }
  .service-toolbar {
    flex-direction: column;
  }
  .endpoint {
    padding: 14px;
  }
  .workspace-footer {
    padding: 0 18px 20px;
  }
  .event-row {
    font-size: 11px;
  }
  dialog section {
    padding: 20px;
  }
  .topbar .row {
    gap: 8px;
  }
}
/* Access management uses bounded pickers so large MCP catalogs remain usable. */
.permission-list {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 12px;
  max-height: 255px;
  overflow: auto;
  background: #f9fbf7;
}
.permission-option {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-weight: 400;
  font-size: 12px;
  margin: 0;
  padding: 9px 0;
  border-bottom: 1px solid #e8ede6;
  overflow-wrap: anywhere;
}
.permission-option:last-child {
  border: 0;
}
.permission-option input {
  margin: 3px 0 0;
  flex-shrink: 0;
}
.key-actions {
  min-width: 215px;
}
.key-actions button {
  font-size: 11px;
  margin: 0 5px 5px 0;
  padding: 7px 9px;
}
#keys small {
  display: block;
  margin-top: 5px;
  font-size: 11px;
}
#key-filter {
  margin: 0 0 18px;
}
#key-scope {
  margin-top: 20px;
}
#key-scope p,
#key-admin-note,
#key-tools-count {
  font-size: 12px;
}
#key-services {
  margin-bottom: 18px;
}
.secret-actions {
  margin-top: 18px;
}
#key-secret {
  font-family: ui-monospace, monospace;
}
#key-secret-dialog {
  max-width: 610px;
}
#user-dialog,
#revoke-dialog {
  max-width: 560px;
}
#key-feedback,
#revoke-feedback,
#user-feedback {
  font-size: 12px;
  overflow-wrap: anywhere;
}

.help-steps {
  padding-left: 24px;
  color: var(--muted);
  font-size: 13px;
}
.help-steps li {
  padding: 7px 0;
}
.help-steps strong {
  color: var(--ink);
}
.help-source {
  font-size: 12px;
  color: var(--brand);
  text-decoration: underline;
}
.help-troubleshooting dt {
  font-weight: 600;
  font-size: 13px;
  margin-top: 18px;
}
.help-troubleshooting dd {
  font-size: 13px;
  color: var(--muted);
  margin: 7px 0 0;
}
#page-help code {
  font:
    12px ui-monospace,
    monospace;
  overflow-wrap: anywhere;
}
#page-help pre {
  max-height: none;
}
#help-config {
  font-size: 12px;
}
.key-argument-policy {
  margin: 24px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.argument-rule {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.argument-rule legend {
  padding: 0 6px;
  font-weight: 600;
}
.argument-rule textarea {
  width: 100%;
  box-sizing: border-box;
  resize: vertical;
}

.tool-argument-field {
  padding: 12px 16px;
  margin: 12px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcf8;
}
.tool-argument-field label {
  margin: 0 0 8px;
}
.tool-argument-field p {
  font-size: 12px;
  margin: 8px 0 0;
}
.tool-argument-field input[type="checkbox"] {
  margin-right: 8px;
}
#tool-count,
#tool-form-note {
  font-size: 12px;
  margin-top: 12px;
}
#tool-workspace > button {
  margin-top: 18px;
  margin-right: 8px;
}
.traffic-recording-state {
  padding: 12px 16px;
  border-radius: 8px;
  background: #edf4ee;
  color: #386b45;
  margin: 18px 0;
}
.traffic-recording-state.recording-disabled {
  background: #fff4dd;
  color: #806126;
}
.traffic-pagination {
  justify-content: center;
  margin-top: 20px;
  font-size: 12px;
}
#traffic small {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
}
#traffic-dialog {
  max-width: 1120px;
}
.traffic-flow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 20px;
}
.traffic-flow-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  min-width: 0;
  background: #fafcf8;
}
.traffic-flow-card h3 {
  font-size: 15px;
  margin-bottom: 12px;
}
.traffic-flow-card p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.traffic-payload-state {
  color: var(--muted);
}
.traffic-flow-card pre {
  max-height: 350px;
}
.traffic-flow-card details {
  margin-top: 12px;
}
@media (max-width: 760px) {
  .traffic-flow {
    grid-template-columns: 1fr;
  }
  #traffic-dialog section {
    padding: 18px;
  }
}

/* Kısa hücre metinleri harf ortasından bölünmesin (td'deki overflow-wrap:anywhere'e karşı). */
td.nowrap {
  white-space: nowrap;
  overflow-wrap: normal;
}

/* Araç çalışma alanı: açılır şema ve çağrı düğmesinden sonra gelen başlıklar bitişikti. */
details + h3,
#call + h3 {
  margin-top: 22px;
}
#result-raw {
  margin-top: 10px;
}
