:root {
  --blue: #1a73e8;
  --red: #db4437;
  --yellow: #f4b400;
  --green: #0f9d58;
  --text: #202124;
  --muted: #5f6368;
  --border: #dadce0;
  --bg: #f1f3f4;
  --card: #ffffff;
  --bluebar: #2f5aa6;
  --content-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: #ffffff;
}

.topbar {
  height: 64px;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
}

.brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: 0.1px;
  width: var(--content-width);
  margin: 0 auto;
}

.brand-text {
  margin-left: 8px;
  color: var(--muted);
  font-weight: 400;
}

.g-blue { color: #4285f4; }
.g-red { color: var(--red); }
.g-yellow { color: var(--yellow); }
.g-green { color: var(--green); }

.bluebar {
  background: linear-gradient(180deg, #3a67b3 0%, var(--bluebar) 100%);
  border-bottom: 1px solid #2a4d8d;
  padding: 0 24px;
}

.nav {
  display: flex;
  gap: 24px;
  font-size: 13px;
  height: 40px;
  align-items: center;
  max-width: var(--content-width);
  margin: 0 auto;
}

.nav a {
  text-decoration: none;
  color: #e6ecf7;
  padding: 0 2px;
  border-bottom: 2px solid transparent;
}

.nav a.active {
  color: #ffffff;
  border-bottom-color: #ffffff;
  font-weight: 500;
}

.page {
  max-width: 980px;
  margin: 26px auto 64px;
  padding: 0 24px;
}

.content {
  max-width: var(--content-width);
  margin: 0 auto;
}

.hero h1 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 500;
}

.subtext {
  margin: 0 0 6px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.6;
}

.subtext a {
  color: var(--blue);
  text-decoration: none;
}

.input-card {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #ffffff;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #f5f5f5;
  border-bottom: 1px solid var(--border);
}

.toolbar-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.select-btn {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  background: #ffffff;
  cursor: default;
}

.mini-btn {
  width: 16px;
  height: 16px;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  background: #ffffff;
}

.special-btn {
  padding: 4px 8px;
  font-size: 12px;
  border: 1px solid #bdbdbd;
  border-radius: 2px;
  background: #ffffff;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ea4335;
}

.status-dot.online {
  background: #34a853;
}

.btn {
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #f1f3f4;
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}

.btn:hover {
  background: #e8eaed;
}

.input-wrap {
  padding: 0;
  position: relative;
}

#logArea {
  width: 100%;
  min-height: 360px;
  border: none;
  outline: none;
  resize: vertical;
  padding: 14px;
  font-size: 14px;
  line-height: 1.6;
  font-family: "Roboto", sans-serif;
  color: var(--text);
  background: #ffffff;
}

#logArea::placeholder {
  color: #9aa0a6;
}

.helper {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: #b0b3b8;
}

.log-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.controls-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 720px) {
  .topbar {
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 16px;
  }

  .page {
    margin-top: 20px;
  }

  .bluebar {
    padding: 0 16px;
  }

  .nav {
    gap: 12px;
    flex-wrap: wrap;
  }

  .content {
    max-width: 100%;
  }
}
