:root {
  --ink: #1c1915;
  --muted: #5e564c;
  --line: #e4d8c6;
  --paper: #f6f1e7;
  --card: #fffdf8;
  --rust: #8d3b22;
  --rust-soft: #f3e4dc;
  --green: #1d6b45;
  --green-soft: #e5f2ea;
  --shadow: 0 16px 40px rgba(48, 32, 14, 0.06);
  --sans: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.5;
}
button, input { font: inherit; }
a { color: inherit; }

.app { display: flex; min-height: 100vh; }
.nav {
  width: 250px;
  flex: none;
  padding: 28px 18px;
  border-right: 1px solid var(--line);
  background: #efe7da;
  display: flex;
  flex-direction: column;
  gap: 22px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.brand { display: flex; gap: 12px; text-decoration: none; align-items: center; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--ink); color: #f6f1e7;
  font-family: var(--sans); font-weight: 650;
}
.brand strong { display: block; font-size: 15px; }
.brand small { color: var(--muted); font-size: 12px; }
#menu { display: flex; flex-direction: column; gap: 4px; }
#menu a {
  text-decoration: none;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--muted);
}
#menu a[aria-current="page"] { background: var(--card); color: var(--ink); box-shadow: var(--shadow); }
.logout { margin-top: auto; color: var(--muted); font-size: 14px; }

.view { flex: 1; padding: 40px 48px 80px; max-width: 1100px; }
.eyebrow {
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 12px;
  color: var(--rust);
  margin: 0 0 8px;
}
h1, h2, h3 { font-family: var(--sans); font-weight: 650; letter-spacing: 0; }
h1 { font-size: 46px; line-height: 1.05; margin: 0 0 12px; }
h2 { font-size: 28px; margin: 32px 0 10px; }
h3 { font-size: 20px; margin: 0 0 6px; }
.lead { font-size: 19px; max-width: 62ch; color: var(--ink); }
.muted { color: var(--muted); }
.stack { display: grid; gap: 14px; }
.grid-3, .grid-2 { display: grid; gap: 14px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: 1.2fr 0.8fr; }

.card, .server, .tier, .customer {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}
.card a, .customer { text-decoration: none; display: block; }
.card p a { display: inline; color: var(--rust); text-decoration: underline; }
.card:hover, .customer:hover, .server:hover { border-color: #c9b59a; }
.card.chosen { outline: 2px solid var(--green); }
.tree {
  background: var(--ink);
  color: #f6f1e7;
  border-radius: 16px;
  padding: 16px 18px;
  overflow: auto;
  font-family: Consolas, "Segoe UI", monospace;
  font-size: 14px;
  line-height: 1.6;
}
.kicker { font-size: 13px; color: var(--rust); margin: 0 0 6px; }
.pill {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 13px;
}
.pill.warn { background: var(--rust-soft); color: var(--rust); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0; }
.filters button, .gate button, form button {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: #f6f1e7; border-color: var(--ink); }
.server { display: grid; grid-template-columns: 150px 1fr auto; gap: 16px; align-items: center; }
.server.default { outline: 2px solid var(--green); }
.price { font-family: var(--sans); font-size: 18px; font-weight: 650; margin: 0; white-space: nowrap; }
.price span { font-family: var(--sans); font-size: 14px; color: var(--muted); }
.spec { margin: 0; color: var(--muted); font-size: 14px; }
.family { margin-top: 28px; }
.note, .callout {
  background: #fff8ee;
  border-left: 4px solid var(--rust);
  padding: 12px 14px;
  border-radius: 0 12px 12px 0;
}
.callout.green { background: var(--green-soft); border-color: var(--green); }
ul.clean { margin: 8px 0 0; padding-left: 18px; }
ul.clean li { margin: 6px 0; }
table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: 16px; overflow: hidden; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 13px; color: var(--muted); font-weight: 580; }
.check { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.check li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}
.check strong { display: block; }
.back { color: var(--muted); text-decoration: none; font-size: 14px; }
.sources { font-size: 14px; color: var(--muted); }
.sources a { color: var(--rust); }

.gate {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top, #fffaf2, transparent 50%),
    var(--paper);
}
.gate-card {
  width: min(420px, calc(100% - 32px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.gate-card h1 { font-size: 36px; }
form { display: grid; gap: 8px; }
label { font-size: 14px; color: var(--muted); }
input[type="password"] {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
}
.gate button, form button.solid {
  background: var(--ink);
  color: #f6f1e7;
  border-color: var(--ink);
  border-radius: 12px;
  margin-top: 8px;
}
.fejl { min-height: 1.2em; color: var(--rust); margin: 0; font-size: 14px; }

.flow { margin-top: 36px; }
.mock {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow);
  max-width: 640px;
}
.mock-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: #efe7da;
  border-bottom: 1px solid var(--line);
}
.dots::before { content: "● ● ●"; letter-spacing: 2px; color: #b7a898; font-size: 10px; }
.desk-body { display: grid; grid-template-columns: 160px 1fr; min-height: 280px; }
.desk-body aside { background: #f3eee6; padding: 14px; border-right: 1px solid var(--line); }
.desk-body aside p { margin: 0 0 8px; color: var(--muted); }
.desk-body aside .on {
  background: var(--card);
  color: var(--ink);
  border-radius: 8px;
  padding: 6px 8px;
}
.desk-chat, .tg-body, .slack-body { padding: 16px; display: grid; gap: 8px; align-content: start; }
.who, .from { margin: 0; font-size: 12px; color: var(--muted); }
.from.right { text-align: right; }
.msg { margin: 0; padding: 10px 12px; border-radius: 12px; max-width: 92%; }
.msg.in { background: #f3eee6; }
.msg.draft { background: #fff8ee; border: 1px solid #efd3b4; }
.msg.out { background: #d7ebdd; margin-left: auto; }
.wait { margin: 0; color: var(--rust); font-size: 13px; }
.tg { background: #e7f0f8; }
.tg-bar { background: #3e6f8e; color: #f4f8fb; }
.tg-bar .pill { background: rgba(255,255,255,0.2); color: #fff; }
.slack-body article { margin: 0; }
.slack-body article p { margin: 4px 0 0; }
.slack-body strong { font-size: 14px; }

@media (max-width: 900px) {
  .app { display: block; }
  .nav { width: auto; height: auto; position: static; }
  #menu { flex-direction: row; overflow: auto; }
  .logout { margin-top: 0; }
  .view { padding: 24px 16px 64px; }
  h1 { font-size: 34px; }
  .grid-3, .grid-2, .server, .desk-body { grid-template-columns: 1fr; }
}
