:root {
  --blue: #4285f4;
  --red: #ea4335;
  --yellow: #fbbc05;
  --green: #34a853;
  --text: #202124;
  --muted: #70757a;
  --line: #dadce0;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
}
a { color: #1a0dab; text-decoration: none; }
a:hover { text-decoration: underline; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 18px 0;
  font-size: 13px;
}
.top a { color: var(--text); margin: 0 8px; }
.top-right { display: flex; align-items: center; }
.signin {
  background: var(--blue);
  color: #fff !important;
  border-radius: 4px;
  padding: 9px 23px;
  font-weight: 600;
  margin-left: 12px;
  text-decoration: none !important;
}
.signin:hover { box-shadow: 0 1px 3px rgba(0,0,0,.24); }
.signin.full { width: 100%; border: 0; cursor: pointer; font-size: 14px; padding: 10px 16px; margin: 18px 0 0; }

.center {
  min-height: calc(100% - 160px);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 11vh;
}
.logo {
  font-size: 72px;
  font-weight: 500;
  letter-spacing: -2px;
  margin: 0 0 28px;
  line-height: 1;
  font-family: Arial, Helvetica, sans-serif;
}
.logo.small { font-size: 34px; letter-spacing: -1px; margin: 0 0 18px; }
.logo.tiny { font-size: 22px; letter-spacing: -0.5px; }
.logo .b { color: var(--blue); }
.logo .r { color: var(--red); }
.logo .y { color: var(--yellow); }
.logo .g { color: var(--green); }
.logo .gap { display: inline-block; width: 0.28em; }

.search { width: min(584px, 92vw); text-align: center; }
.box {
  display: flex;
  align-items: center;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 0 14px;
  box-shadow: none;
}
.box:hover, .box:focus-within {
  box-shadow: 0 1px 6px rgba(32,33,36,.28);
  border-color: transparent;
}
.box input {
  flex: 1;
  border: 0;
  outline: 0;
  font-size: 16px;
  height: 100%;
  background: transparent;
}
.icon { width: 20px; height: 20px; flex: none; }
.icon.mag { margin-right: 12px; }
.icon.mic { margin-left: 12px; }
.actions { margin-top: 28px; }
.actions button {
  background: #f8f9fa;
  border: 1px solid #f8f9fa;
  border-radius: 4px;
  color: #3c4043;
  font-size: 14px;
  padding: 8px 16px;
  margin: 0 6px;
  cursor: pointer;
}
.actions button:hover {
  box-shadow: 0 1px 1px rgba(0,0,0,.1);
  border-color: #dadce0;
}

.foot {
  position: sticky;
  top: 100%;
  background: #f2f2f2;
  color: var(--muted);
  font-size: 14px;
}
.foot > div { padding: 14px 30px; border-top: 1px solid #dadce0; }
.foot .row { display: flex; gap: 24px; }
.foot a { color: var(--muted); }

.auth {
  display: grid;
  place-items: center;
  background: #fff;
}
.card {
  width: min(440px, 92vw);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px 40px 36px;
}
.card h2 { font-weight: 400; font-size: 24px; margin: 0; }
.hint { color: var(--muted); margin: 8px 0 28px; }
.card label { display: block; font-size: 14px; margin-bottom: 14px; color: var(--muted); }
.card input {
  width: 100%;
  margin-top: 6px;
  font-size: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.back { margin-top: 24px; font-size: 14px; }

.admin { background: #f8f9fa; }
.admin-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.who { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.ghost {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
}
.admin-main { padding: 18px; }
.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}
.panel-head h1 { font-size: 18px; margin: 0 0 4px; font-weight: 500; }
.panel-head p { margin: 0; color: var(--muted); font-size: 13px; }
.vm-actions { display: flex; gap: 8px; }
.vm-actions button:not(.ghost) {
  background: var(--blue);
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 14px;
  cursor: pointer;
  font-weight: 600;
}
.console { position: relative; height: calc(100vh - 160px); min-height: 480px; background: #111; }
.console iframe { width: 100%; height: 100%; border: 0; background: #111; }
.mask {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(0,0,0,.72);
  font-size: 16px;
}
.hidden { display: none; }

@media (max-width: 640px) {
  .logo { font-size: 44px; }
  .center { padding-top: 8vh; }
  .panel-head { flex-direction: column; align-items: flex-start; }
}
